ATR Error

Created at 24 Apr 2024, 07:53
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
GB

gbg561

Joined 05.04.2024

ATR Error
24 Apr 2024, 07:53


Hi

Hope someone can help. Trying to use the ATR in a scalping strategy but keep getting error CS1501 “No overload method” for: 

 {
            _ema = Indicators.ExponentialMovingAverage(MarketSeries.Close, 5);
            _atr = Indicators.AverageTrueRange(14);
        }

 

Any ideas?

Thanks


@gbg561
Replies

PanagiotisCharalampous
25 Apr 2024, 05:57

Hi there,

There is no AverageTrueRange method taking only one parameter. Check what parameters are required in the link below

https://help.ctrader.com/ctrader-automate/references/Indicators/AverageTrueRange

Best regards,

Panagiotis


@PanagiotisCharalampous