Hi guys. I am after a code that buys 5 contracts every time the price drops <= 1% even before the daily candle closes. For example, if the FTSE100 opening price was 7500 then dropped to day lowest 7400 then closed at 7550. In this case the code should have bought 5 contracts when the price dropped to 7425 (1% drop from opening price), not waiting for the candle to close.
use the MTF (Multiple Time Frame support) and use, as default TF, one that is as low as you need (1 minute or 1 second); strategies are ALWAYS executed when a candle closes, but being executed every minute is a great advantage compared to once a day; the drawback is that the data history is still 200K (or whatever elese), but it’s 200K 1-minute bars, not Daily bars! .
when the daily candle closes place some pending orders (say5, or 10), one at 1% distance from each other, so that at any 1% drop they will enter a position; pending orders always last just 1 bar (in this case a whole day), so you can safely place them again and again each day.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.