I'm running this EA solo and haven't changed the code you mention.SteveHopwood wrote:It isn't. If this is the only EA you are demoing on the platform, then the problem is definitely at your end. The only potential is for ForceClose being somehow left set at 'true', but the codewebregs wrote:I'm having the same issue. When the EA is started it opens the two strongest and two weakest trades as per OOTB settings then once these are closed in profit it doesn't open anymore until I restart the EA. Can't find where this is set in the code (assuming it is)?resets the variable.Code: Select all
if (OrdersTotal() == 0) ForceClose = false;
If you are demoing different ea's on the same platform, then moveso that it is positioned above the OrdersTotal() conditional and addCode: Select all
//The next routine takes care of all trade closure possibilities CountOpenTrades();to see if this sorts out the problem.Code: Select all
if (OpenTrades == 0) ForceClose = false;
I see above some other comments on this issue so I'll keep monitoring my demo in light of these.