there isn't OnTick in the old MT4
void OnStart()
instead of
void OnTick()
working just fine (i used a script)
capilta:
Dear Guys,
Below code not work with new build. but it work on old MQL. in Alert Indi1DayMoArray[1] show nothing. but it should be show "08:00:59"
08:00:59 is shown. Code as provided, build 610.
2014.02.18 11:28:52.473 _testing_ EURUSD,M1: Alert: 08:00:59
I suggest you to initialize all your variables (mainly i and k aren't initialized in your code), see documentation :
Any variable can be initialized during definition. If a
variable is not initialized explicitly, the value stored in this variable can be
any. Implicit initialization is not used.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Dear Guys,
Below code not work with new build. but it work on old MQL. in Alert Indi1DayMoArray[1] show nothing. but it should be show "08:00:59"