PDA

View Full Version : Prior Day Values for ADX, +DMI, and -DMI


TrendTracker
05-11-2010, 11:44 AM
I am doing a set of calculations that require prior day values for ADX, +DMI, and -DMI. I can get the prior day value of ADX by using "ADX(period)[1]". Is their a similar way of getting prior day values for +DMI and -DMI, or do I have to go through the same set of calculations used in the NinjaScript code for the DM indicator?

Thanks in advance.

Bob

NinjaTrader_RyanM
05-11-2010, 11:59 AM
Hello TrendTracker,

You can reference other indicator values if they're plots. ADX is a plot so that will work.

+DMI and -DMI are available as plots as part of the DM indicator. You can access them through:

DM(14).DiPlus[0]
DM(14).DiMinus[0]