Hello,
I already searched the forum and found a link - however, it is broken.
Where do I get the right code for the DMI Oscillator? When activating it on the platform, there are always three values: +DI, -DI, ADX
In the library I found these 6 methods:
double[] adx(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
double adx(Instrument instrument, Period period, OfferSide side, int timePeriod, int shift)
Calculates Average Directional Movement Index for bar specified with shift parameter.
double[] adx(Instrument instrument, Period period, OfferSide side, int timePeriod, long from, long to)
---------------------------------------
double[] dmi(Instrument instrument, Period period, OfferSide side, int timePeriod, Filter filter, int numberOfCandlesBefore, long time, int numberOfCandlesAfter)
double dmi(Instrument instrument, Period period, OfferSide side, int timePeriod, int shift)
double[] dmi(Instrument instrument, Period period, OfferSide side, int timePeriod, long from, long to)
Now, my questions are as follows:
1. If I want to implement it in the strategy as I see it visually on the platform (with +DI, -DI and ADX), do I have to use 2 methods?
2. If so, which method stands for +DI and -DI?
I'd be thankful if someone could post the right code here. I think this would be useful for future questions, also.