Hi,
is it possible to have Indicator returning more that one value ?
Classical example Stoch K & D or Macd : Macd + Sygnal + Histogram etc
I have some indicators that have 10-12 values calculated in the same FOR / LOOP
Best regards
is it possible to have Indicator returning more that one value ?
Classical example Stoch K & D or Macd : Macd + Sygnal + Histogram etc
I have some indicators that have 10-12 values calculated in the same FOR / LOOP
Best regards
Rename
In our indicator framework you can associate indicators, see the Companions feature mentioned in the IndicatorBase class.
Technically you could also use a separate “factory” class to calculate a group of associated indicators all at once and store them in the BarHistory Cache where the individual indicator classes can pull them from. This is what Directional Movement (ADX, ADXR, DI+, DI-) does.
Technically you could also use a separate “factory” class to calculate a group of associated indicators all at once and store them in the BarHistory Cache where the individual indicator classes can pull them from. This is what Directional Movement (ADX, ADXR, DI+, DI-) does.
Is it possible to have an example of Directional Movement code c# ?
It's described in this API reference. Here's characteristic example:
CODE:
//return companion indicators public override List<string> Companions { get { List<string> c = new List<string>(); c.Add("ADXR"); c.Add("DIPlus"); c.Add("DIMinus"); return c; } }
We can’t share that source code but we’ll try and publish a blog post explaining this in more detail soon!
Your Response
Post
Edit Post
Login is required