I was wanting to use this for Horse Racing.
My point would be to have it so the trigger only worked on the first 3 favourites in the betting, in a horse racing win market and it worked by:
1. Takes the last traded price for each of the selections and remembers it, not sure if saving them in a temporary list is best, at the off (when/just as the market turns in-play).
2. It backs any of the first 3 favourite selections if the price drops by 3 or a predetermined number of ticks (variable) then lays/greens up 2 ticks or a predetermined number of ticks lower (variable).
3. Once the green up has happened, and as long as the market has not been in-play for longer than a minute it repeats (logs current price of those 3 horses - only the 3 favourites at the off again at the new price, then looks to see if price drops by 3 ticks...works its magic)
4. It can trade all 3 of them individually/at the same time, if the criteria makes the selection(s) eligable.
5. The trigger should only run for up to 1 minute after going in-play (the minimum time it takes to run a race - 5f). If there is a way to change this to adapt to the length of the race then that would be brilliant!
Might be worth having a variable which allows you to determine how many times per selection you want the trigger to fire, eg. you only want to do 1 trade per horse or 2 trades per horse.
I only want to trade the first 3 favourites determined at the off, at any point in a race.