Some indicators don't have DataSeries or Bars parameter in definition, why?
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?
Replies
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
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