Standard Deviation indicator has changed?

Created at 18 Jul 2013, 23:30
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!
ER

ErykSosenka

Joined 22.09.2012

Standard Deviation indicator has changed?
18 Jul 2013, 23:30


Hi,


after the recent update the standard deviation indicator seems to have changed. I used to run it with 4 parameters but now it only accepts 3? Both the in-platform reference material and the website /api/indicators/standarddeviation still show the below, but the compiler fails:

 

Examples
private StandardDeviation _standardDeviation;
protected override void Initialize()
{           
    _standardDeviation = Indicators.StandardDeviation(MarketSeries.Close, 14, 2, MovingAverageType.Simple);
}
public override void Calculate(int index)
{
    double result = _standardDeviation.Result[index];
}


please advise if the functionality / result has now also changed as a result ? If it has please let me know how can I get the same results with the new indicator as I used to get with (xxxx,4,2,xxxx)?

 

Thanks


@ErykSosenka
Replies

cAlgo_Fanatic
19 Jul 2013, 09:56

We apologize for this inconvenience.  You can use this code instead in order to get the same results as before:

//...
_standardDeviation = Indicators.StandardDeviation(MarketSeries.Close, 14, MovingAverageType.Simple);
//...
double result = _standardDeviation.Result[index] * 2;
//...




@cAlgo_Fanatic