Topic: No New Trades Option (Question)
Hi Popov,
could you please teach us how to add an option (that can be turned on or off) to prevent the Portfolio EA opening new trades, so the EA will only close the remaining open trades?
Best regards.
Create and Test Forex Strategies
You are not logged in. Please login or register.
Forex Software → Expert Advisor Modifications → No New Trades Option (Question)
Hi Popov,
could you please teach us how to add an option (that can be turned on or off) to prevent the Portfolio EA opening new trades, so the EA will only close the remaining open trades?
Best regards.
Hi,
try it like this: put into variables this
input bool DoNotTrade = true;
Than in void void SetSignals(Signal &signalList[]) do this
signalList[i++] = GetExitSignal_00();
if(DoNotTrade)
signalList[i++] = GetEntrySignal_00();
this you have to put into each of your signals so if the variable is false the ea will not enter any position.
You also can add a button on chart that you can switch between on/off.
Thank you very much deadlef
I'll try it.
Forex Software → Expert Advisor Modifications → No New Trades Option (Question)
Powered by PunBB, supported by Informer Technologies, Inc.