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?
Last traded price x seconds ago condition
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
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
You do not have the required permissions to view the files attached to this post.
