Pages:
Actions
  • #1 by PFawcettZ on 23 Apr 2023
  • Hi

    I'm aware there is an option to display minimum amounts in the settings menu but I would like a trigger action that can place my money where there is a significant amount of money whilst still viewing all amounts. In this example I wish to lay on the back side where a minimum of £100 exists; 

    Does anyone know how to express this within the price field within a trigger? 

    Any help will be much appreciated. 

  • #2 by Tim (WellDoneSoft) on 23 Apr 2023
  • There are back_amount and lay_amount trigger variables.
    Also you can use sum of 3 best ones while you placing at "best price":
    back_amount + back_amount2 + back_amount3
  • #3 by PFawcettZ on 23 Apr 2023
  • So if best back price is at 3 how do I request the trigger to go in with a lay at say 3.75 if this is the only price with £100 or over as a total amount- this would be 5 ticks below the 3 best prices?

    what expression would I use in this instance please? 
  • #4 by PFawcettZ on 23 Apr 2023
  • sorry 2.75 lol
  • #5 by PFawcettZ on 23 Apr 2023
  • Hi...........
    Was hoping for a response back on this. Is this trigger expression/variable possible? 
  • #6 by MarkV on 23 Apr 2023
  • Hi
    It's much easier to stick with the best 3 prices because all the variables are available in MFP and you can just write conditions to check the amounts offered as Tim suggests.

    If you want to check amounts offered outside of best 3 prices it needs a lot of conditions to check each price backwards:

    LAY at r_ticks(back_price, -3)
    selections trigger expression b_offered_r_ticks(back_price, -3) is greater than 100
    OR
    LAY at r_ticks(back_price, -4)
    selections trigger expression b_offered_r_ticks(back_price, -4) is greater than 100
    etc..

    Attached is a trigger which will scan the prices downwards from best back price looking for a specified amount.
    When it finds the amount it will write the price to a user variable "tonup"

    The trigger will cycle though the prices downwards to a maximum number of ticks you can set
    in the constant and then it will start scanning again from back price

    There is also a constant for the amount to look for.

    Add your lay trigger below this and use tonup for the price.

    For this to work you need to turn on Download All Price Offers in the settings.

    Please test in test mode.    
  • #7 by PFawcettZ on 23 Apr 2023
  • Hi Guys

    Thank you for the trigger, much appreciated. Ill give it a go. 
Pages:
Actions