Last traded price x seconds ago condition

We were all new to Bet Angel once. Ask any question you like here and fellow forum members promise not to laugh. Betfair trading made simple.
Post Reply
arfa17
Posts: 19
Joined: Sun Jun 27, 2010 10:39 am

I am setting a condition based on the last traded price x seconds ago. I only want the bet to trigger if no bet has been placed on the selection in the last 600 seconds at a price lower than the current back price.

I have set a condition that the last traded price 600 seconds ago must be lower than the current back price.

Does 'last traded price 600 seconds ago' mean all trades within the last 600 seconds or is this only the exact last traded price exactly 600 seconds ago? If it's only exactly 600 seconds ago then this condition seems pretty pointless, is there an option to do from 0-600 seconds ago or would I literally have to create 600 conditions for each second to cover this?
sniffer66
Posts: 1836
Joined: Thu May 02, 2019 8:37 am

Yes, it's exactly 600s ago, but looks like an SV using a range calc would do it.
Save your LTP value to a History list every 1s. Then constantly store a value called LTP_Min, with the minimum value found in the last 600s in the History List . Then compare LTP_Min to the current price. It will update dynamically for the last 600s every time you save LTP_Min


Capture.JPG
You do not have the required permissions to view the files attached to this post.
Post Reply

Return to “Bet Angel for newbies / Getting started”