No "shift" parameter for the EMA/SMA indicator API?

Created at 15 Nov 2020, 15:02
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!
CA

caglar_G

Joined 20.09.2020

No "shift" parameter for the EMA/SMA indicator API?
15 Nov 2020, 15:02


I was browsing through the API for the Simple and Exponential moving averages and it struck me that I couldn't find an option to add a specific shift?
Can anyone confirm and is there an alternative/workaround?


@caglar_G
Replies

PanagiotisCharalampous
16 Nov 2020, 10:39

Hi caglar_G,

There is no option for the shift in the API at the moment, but it is not hard to implement it yourself.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

firemyst
13 Apr 2021, 05:40

RE:

PanagiotisCharalampous said:

Hi caglar_G,

There is no option for the shift in the API at the moment, but it is not hard to implement it yourself.

Best Regards,

Panagiotis 

Join us on Telegram

Just wanted to follow up on this as I was looking for this parameter today as well, and it's not there (yet?) with the latest cTrader release.

Is it on a road map to implement natively? Seems like an easy job that shouldn't take a @Spotware programmer more than half a day since it's basically 1 important line of code similar to:

Result[index + Shift] = _movingAverage.Result[index];

THank you. :-)

 


@firemyst

PanagiotisCharalampous
13 Apr 2021, 09:56

Hi firemyst,

No there is still no such option.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous