No "shift" parameter for the EMA/SMA indicator API?
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?
Replies
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
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
@PanagiotisCharalampous
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