I'm developing an automated momentum-based strategy on a 1 minute candle chart with the CalculateOnBarClose parameter set on false. The problem I'm encountering is that if my Profit Target is reached within a few seconds and the buy/sell criteria are still valid, the system will trigger a second, third, etc order in a row. I'd like to add a simple parameter that allows the code to trigger ONLY ONE order per minute.
How could this be achieved? Thanks a lot for any suggestions.
Comment