Some indicators don't have DataSeries or Bars parameter in definition, why?

Created at 09 Oct 2021, 21:22
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!
DA

daystake

Joined 15.11.2020

Some indicators don't have DataSeries or Bars parameter in definition, why?
09 Oct 2021, 21:22


Need to get indicator values for another symbol-timeframe. But not all indicators have DataSeries or Bars parameter in definition.

OK:

MovingAverage(DataSeries source, int periods, MovingAverageType maType)

BollingerBands(DataSeries source, int periods, double standardDeviations, MovingAverageType maType)

AcceleratorOscillator(Bars bars)

MISSING:

Alligator(int jawsPeriods, int jawsShift, int teethPeriods, int teethShift, int lipsPeriods, int lipsShift)

AverageDirectionalMovementIndexRating(int periods)

CenterOfGravity(int length)

 

Am I missing something?

How can I get Alligator values for another symbol-timeframe?


@daystake
Replies

amusleh
11 Oct 2021, 06:47

Hi,

Some of the built-in indicators support multi time frame some other doesn't.

You can create a suggestion for it if you want to or you can also develop a multi time frame version for those indicators.


@amusleh

firemyst
23 Oct 2021, 18:06

RE:

pvu84pvu said:

Need to get indicator values for another symbol-timeframe. But not all indicators have DataSeries or Bars parameter in definition.

OK:

MovingAverage(DataSeries source, int periods, MovingAverageType maType)

BollingerBands(DataSeries source, int periods, double standardDeviations, MovingAverageType maType)

AcceleratorOscillator(Bars bars)

MISSING:

Alligator(int jawsPeriods, int jawsShift, int teethPeriods, int teethShift, int lipsPeriods, int lipsShift)

AverageDirectionalMovementIndexRating(int periods)

CenterOfGravity(int length)

 

Am I missing something?

How can I get Alligator values for another symbol-timeframe?

To answer your first question, probably inexperience and lack of forward planning in their leadership team that develops built in indicators.

For instance, the Alligator is essentially 3 moving averages, so it's no more difficult for their indicator-team to add in a data-source to the Alligator indicator than it apparently is for the same team to add the "shift" parameter to their MovingAverage indicator (notice you can add "shift" to the Alligator, but not the MA?? Like that makes any sense?) .

It's API inconsistency at its finest.

 

 


@firemyst

amusleh
25 Oct 2021, 09:48

Hi,

Please create a suggestion for this and then our team will add the data series parameters.

And as I said on my previous post, you can easily develop a custom version of these indicators that will be able to get a data series parameter.


@amusleh