Can anyone please help?
-
for(int iBar = Bars-1-MathMax(lookback, prev_calculated); iBar >= 0; --iBar) ⋮ int index_atr_tf1 = iBarShift(NULL,i_tf1_open,Time[iBar],false);
Do not post code that will not even compile. MT5 has no predefined variables Bars and Time[].
-
int i_tf1_open = 60; //TF 1= hour chart int i_tf2_open = 1440; int i_tf3_open = 240; //TF3 = 4H int i_tf4_open = 10080; //TF4 = Weekly int i_tf5_open = 43200; //TF4 = Weekly
Do not hard code constants. Use the ENUM_TIMEFRAMES enumerations
ironhak #:
Can anyone please help?
Can anyone please help?
I'm only a beginner and what I'm reading might be outdated so just FYI.
Anyhow I think MQL4 only allows 8 Buffers and you have 15. I assume you meant to post in MQL4 forum section ?
Anyhow
Hope this helps.
https://docs.mql4.com/customind
@Agent86 #: I'm only a beginner and what I'm reading might be outdated so just FYI. Anyhow I think MQL4 only allows 8 Buffers and you have 15.
MQL allows for 512 buffers — IndicatorBuffers - Custom Indicators - MQL4 Reference
Hi everyone, I'm really sorry this was a mql4 code, I posted on the wrong section. Anyway I managed to reduce the lag thank.
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
Hi everyone, I managed to build an indicator that fully fits my needs, unfortunately it makes mt4 massively lag which is quite a problem. Can someone help me identify why that's the case? Thank's.