Pages:
Actions
  • #1 by stevenhemingway on 08 Aug 2017
  • 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
  • #2 by MarkV on 08 Aug 2017
  • 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   
  • #3 by stevenhemingway on 09 Aug 2017
  • Hi Mark

    Yes, that should help.

    Thanks for your advice.

    Cheers

    Steven

Pages:
Actions