Author Topic: Remember lay price - so can enter at same price  (Read 265 times)

Tags:
  • All members
  • Posts: 106
  • Karma: +1/-0
Remember lay price - so can enter at same price
« on: Wed, 03 April, 2019, 11:42 »
Hi,

How do I write a trigger to remember my last matched lay price on the 1st fav?

When trading , I am laying the fav but I may need to take a stoploss on the trade. In that case I want to fill another unmatched lay bet at the same price.

For example I lay at 2 and then price goes to 1.97. I will then scratch  the trade and want to enter another lay bet at 1.97 unmatched on the 1st fav again. I will keep repeating this process until I made profit or close at a loss 10 seconds before the off.


  • All members
  • Posts: 106
  • Karma: +1/-0
Re: Remember lay price - so can enter at same price
« Reply #1 on: Wed, 03 April, 2019, 11:44 »
I created the scratch trade logic , need to remember the price and enter market again at that price.

  • Moderator
  • Posts: 4363
  • Karma: +249/-10
  • Gender: Male
*
Re: Remember lay price - so can enter at same price
« Reply #2 on: Wed, 03 April, 2019, 12:32 »
hi
bm_layp = the last matched lay price.
bm_laya = the last matched bet amount.

mcbee
Please read the following  disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.

  • All members
  • Posts: 106
  • Karma: +1/-0
Re: Remember lay price - so can enter at same price
« Reply #3 on: Wed, 03 April, 2019, 14:35 »
H Mcbee,

how do i get the attached to only , action laying in my second block if and when my first lay is traded out?

  • Moderator
  • Posts: 4363
  • Karma: +249/-10
  • Gender: Male
*
Re: Remember lay price - so can enter at same price
« Reply #4 on: Wed, 03 April, 2019, 14:55 »
hi
Continue trading trigger.
and selections number of matched back bets is equal to bm_laynum

but your backing trigger will only place 1 bet.

mcbee
Please read the following  disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.

  • All members
  • Posts: 106
  • Karma: +1/-0
Re: Remember lay price - so can enter at same price
« Reply #5 on: Thu, 04 April, 2019, 14:11 »
Thanks Mcbee,

Added, however it’s not filling the second lay bet once the first bet is scratched? Any idea why?

  • Moderator
  • Posts: 4363
  • Karma: +249/-10
  • Gender: Male
*
Re: Remember lay price - so can enter at same price
« Reply #6 on: Thu, 04 April, 2019, 18:21 »
hi
look at the condition in the Continue trading trigger , time to learn some more.


mcbee
Please read the following  disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.