You didn't try to use that code because it does not compile.
Your code | iATR - Technical Indicators - MQL4 Reference |
---|---|
iATR( _Symbol, ATR_PERIOD, MA_PERIOD ); | double iATR( string symbol, // symbol int timeframe, // timeframe int period, // averaging period int shift // shift ); |
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 folks,
I would like to get the value of the Average True Range Indicator (ATR).
I tried to use the following code, but the value is different when I checked with the indicator.