It "should" kick out of the start() if it's not a new candle on the TF
that I have the EA on (currently D1). But it's not exiting out of start. It's still
running the rest of the code in start. Am I missing something? It does it for whomever's
code for new bar I try.
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.
Wackena, I take it 60 is one hour. change for other time frames, ie 15 for 15 minutes, 240 for 4 hours, etc. Am I correct?
Yes, buy only if you use sufficient chart timeframe. Example: Max m value on M30 chart is M=30.
Wackena
Got it. m <= current tf on chart.
BTW, I see the variable g, but what is it used for? I don't see it used anywhere else in the calculations. But I'm guessing for hours left?
Yes, g is for hour ouput.
I use this code to comment remaining Bar time on chart with hour, minute, second.
Wackena / et al,
Where am I going wrong here? Take a look at this code:
It "should" kick out of the start() if it's not a new candle on the TF that I have the EA on (currently D1). But it's not exiting out of start. It's still running the rest of the code in start. Am I missing something? It does it for whomever's code for new bar I try.
THANKS IN ADVANCE FOR ALL YOUR HELP!!!!!!
Try this: I've not tested this, I hope it works.