code of Bollinger bands

Created at 30 Jun 2020, 23:26
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!
EY

eynt

Joined 08.05.2020

code of Bollinger bands
30 Jun 2020, 23:26


Is there a way to get the code of Bollinger bands?

 

Thank


@eynt
Replies

firemyst
01 Jul 2020, 03:53

The gist of it:

 

double maResultIndex = _movingAverage.Result[altIndex];
double sd = StandardDeviation * _standardDeviation.Result[altIndex];

Main[index] = maResultIndex;
Top[index] = maResultIndex + sd;
Bottom[index] = maResultIndex - sd;

 


@firemyst

eynt
01 Jul 2020, 09:55

RE:

Thank you

Is there a way to get the full indicator code?


@eynt

firemyst
02 Jul 2020, 03:22

RE: RE:

yuval.ein said:

Thank you

Is there a way to get the full indicator code?

You have to ask Spotware for that.

But in all seriousness, just Google it.

You take the latest value of the sma. That's the middle line.

The top and bottom lines are the standard deviations.

So you can easily code it yourself :-)


@firemyst