Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Prior Day Values for ADX, +DMI, and -DMI

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Prior Day Values for ADX, +DMI, and -DMI

    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

    #2
    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]
    Last edited by NinjaTrader_RyanM1; 05-12-2010, 12:58 PM. Reason: Simpler solution
    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by op1031, Yesterday, 05:16 PM
    1 response
    8 views
    0 likes
    Last Post NT-Roland  
    Started by sinpeople, Today, 07:20 AM
    1 response
    3 views
    0 likes
    Last Post NT-Roland  
    Started by Frank1000, Today, 03:05 AM
    1 response
    7 views
    0 likes
    Last Post NT-Roland  
    Started by ntdev, Today, 01:14 AM
    4 responses
    16 views
    0 likes
    Last Post ntdev
    by ntdev
     
    Started by ct, Today, 02:22 AM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Jason  
    Working...
    X