- Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes
- EA dosn't work on VPS
- [WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you.
-
Why did you post your MT4 question in the MT5 General section instead of the MQL4 section, (bottom of the Root page?)
General rules and best pratices of the Forum. - General - MQL5 programming forum?
Next time post in the correct place. The moderators will likely move this thread there soon. -
It is being called every tick. It is your Bars-prev_calculated that is the problem; it is zero after the initial run, so your loop does nothing.
How to do your lookbacks correctly #9 - #14 & #19 -
On MT4: Unless the current chart is that specific symbol(s)/TF(s) referenced, you must handle 4066/4073 errors before accessing candle/indicator values.
Download history in MQL4 EA - Forex Calendar - MQL4 programming forum - Page 3 #26 № 4 2019.05.20
-
Why did you post your MT4 question in the MT5 General section instead of the MQL4 section, (bottom of the Root page?)
General rules and best pratices of the Forum. - General - MQL5 programming forum?
Next time post in the correct place. The moderators will likely move this thread there soon. -
It is being called every tick. It is your Bars-prev_calculated that is the problem; it is zero after the initial run, so your loop does nothing.
How to do your lookbacks correctly #9 - #14 & #19 -
On MT4: Unless the current chart is that specific symbol(s)/TF(s) referenced, you must handle 4066/4073 errors before accessing candle/indicator values.
Download history in MQL4 EA - Forex Calendar - MQL4 programming forum - Page 3 #26 № 4 2019.05.20
Don't double post! You already had this thread open.
General rules and best pratices of the Forum. - General - MQL5 programming forum 2017.07.19
Do not double Post!!!
You have already been told and yet You duplicate this topic again.
I have deleted your duplicated topic.
You are copying the whole M5 history for each and every tick, this is not performant:
ArrayCopySeries(time1,MODE_TIME,NULL,PERIOD_M5);
If your indicator is working on a different timeframe than M5, you need to handle history-not-found errors.
I think it is easier to drop the ArrayCopySeries approach and use iBarShift to get the matching M5 bar index.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use