Author Topic: New Selection Variables  (Read 929 times)

Tags:
  • All members
  • Posts: 4
New Selection Variables
« on: 08 Aug 2017, 12:58 »
Hi

I would like to use the new selection variables tradedh_{price} and tradedl_{price} in a trigger, but instead of adding the price from the outset I would like it to be taken from actual_sp, for example I would like to lay a horse when a minimum of £10 has been traded at double the actual BSP, something like tradedh_(actual_sp-1)*2, is there anyway I can get MF Pro to do this.

Thanks

Steven

  • Moderator
  • Posts: 3597
*
Re: New Selection Variables
« Reply #1 on: 08 Aug 2017, 18:05 »
Hi
I've done some quick tests using a specified number of ticks higher than actual_sp and it works well
it may be you need a valid price because if you multiply actual_sp you may not have a valid tick increment

so what I tested was 30 ticks higher than actual sp:
s_1_tradedh_r_ticks(s_1_actual_sp,30)
as soon as the selection drifted above sp+30ticks this starts to increment 

you may need a condition to check the market is inplay, or actual_sp is greater than 0 because when actual_sp is 0 it will take all prices above 0 on that selection

hope this helps   
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: 4
Re: New Selection Variables
« Reply #2 on: 09 Aug 2017, 12:11 »
Hi Mark

Yes, that should help.

Thanks for your advice.

Cheers

Steven


 

Please note, BetFair is seems to be currently OFFLINE