- ago
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
1
246
Solved
4 Replies

Closed

Bookmark

Sort
Glitch8
 ( 9.89% )
- ago
#1
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.
0
Best Answer
- ago
#2
Is it possible to have an example of Directional Movement code c# ?
0
- ago
#3
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; } }
0
Glitch8
 ( 9.89% )
- ago
#4
We can’t share that source code but we’ll try and publish a blog post explaining this in more detail soon!
0

Closed

Bookmark

Sort