Topic: Disable entry or exit signal for single strategy EAs
Hello everyone,
Sometimes when I want to replace an EA with an updated strategy, the old EA may still have an open position running.
I don't like closing positions prematurely or just removing the EA from the chart, because the strategy may have its own exit conditions.
How can I modify the source code to disable the entry signal, so new trades are not opened, but the EA still manages the opened position?
On the other hand, sometimes I want to disregard the exit signal for a certain strategy and simply allow the TP or SL orders to close the trade. So how can I deactivate the exit signal in this scenario?
I learned how to do this with a portfolio EA using the double slash infront of the signalList[i++] lines, but how is this done with a single strategy EA?