The code works well when I use only the stop order. It places the stop market order 1 tick below Low[1].
The code doesn't work when I apply both of the actions. Any time I take an entry, the position is automatically closed. I assume that is because there is an error and the strategy builder is rejecting my orders. However, if the conditions for entry are still met, the strategy will continue to open new positions and automatically close them until the conditions are no longer met.
The take profit order is designed to be The Entry Price + 3* ATR (ex. if I enter long at 4000 and the ATR is 5, the TP would be placed at 4015).
How can I apply both of these orders with the strategy builder? It is essentially the same thing as using an ATM strategy based on the variables of Low[1] and ATR.
Comment