I want to block my EA after 2 or 3 consecutive trade, or put am max operation limit like max trade in an hour is 3 or max trade in a day is 5...or in a specific candle
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.
How i can do it?
with something like that??
static datetime LastClosedBar =D'1980.01.1'
LastClosedBar = Time[0];