I made an EA with a logic that its entries only opens on new candles. I've also set a limit on how many orders should be only be open at the same time.
But with this, SOMETIMES there are times that there are more 3 orders open simultaneously. My code prohibits the EA from opening more entries IF there are already 3 orders from 3 different currency pairs, but it does not stop the EA from entering more than 3 if all unique charts has the same intention.
Would putting a different amount of delay/sleep for each chart work? Thanks in advance!
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
I made an EA with a logic that its entries only opens on new candles. I've also set a limit on how many orders should be only be open at the same time.
See this example portion of my code:
But with this, SOMETIMES there are times that there are more 3 orders open simultaneously. My code prohibits the EA from opening more entries IF there are already 3 orders from 3 different currency pairs, but it does not stop the EA from entering more than 3 if all unique charts has the same intention.
Would putting a different amount of delay/sleep for each chart work? Thanks in advance!