The answer is in the last line of your question.
Ahmet Metin Yilmaz:
The answer is in the last line of your question.
The answer is in the last line of your question.
Could you explain please?
if ordersymbol is the chart symbol ATR returns different from zero
Ahmet Metin Yilmaz:
if ordersymbol is the chart symbol ATR returns different from zero
if ordersymbol is the chart symbol ATR returns different from zero
Is there a way to get ATR values for symbols others than the current graph?
- Why did you post your MT4 question in the Root / MT5 EA
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. -
double ATR = iATR(orderSymbol, PERIOD_M15, 5, 0);
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
William Roeder:
- Why did you post your MT4 question in the Root / MT5 EA
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. - 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
Thanks a lot!
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
Hello,
Could you explain to me why this code sometimes return ATR=0?
orderSymbol can be different from graph than the one the EA is attached to.