Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

A question on DMI

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

    A question on DMI

    On the Market Analyzer sheet, I have 2 columns: one for +DMI and another for -DMI. Is it possible to color for instance +DMI IF it's greater than -DMI? Or alternatively create a column that compute the difference between the +DMI and -DMI and color whwn the difference is positive?

    Thanks

    #2
    Hi vitorleite, welcome to the NinjaTrader support forums! Yes, you could create an indicator for the DI + / DI - difference and set up a color condition in the Market Analyzer then when the values are < > 0. Here are great tutorials to help you getting start in custom coding indicators in NinjaScript - http://www.ninjatrader-support.com/H...verview18.html

    Comment


      #3
      er....I'm a novice, you know? Can you help on this one?
      Originally posted by NinjaTrader_Bertrand View Post
      Hi vitorleite, welcome to the NinjaTrader support forums! Yes, you could create an indicator for the DI + / DI - difference and set up a color condition in the Market Analyzer then when the values are < > 0. Here are great tutorials to help you getting start in custom coding indicators in NinjaScript - http://www.ninjatrader-support.com/H...verview18.html

      Comment


        #4
        Hi, for example if you create a new custom indicator, this will the call in the OnBarUpdate() to calculate the difference of the DIPlus and DIMinus -

        Code:
        [SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]double[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][SIZE=2] myDmiValue = DM(Close, 10).DiPlus[[/SIZE][/SIZE][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]0[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][SIZE=2]] - DM(Close,10).DiMinus[[/SIZE][/SIZE][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080][SIZE=2][COLOR=#800080]0[/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][SIZE=2]];[/SIZE][/SIZE]
        [SIZE=2][SIZE=2][/SIZE][/SIZE]


        Then you can plot the myDmiValue and uses the indicator to setup custom color conditions in the Market Analyzer - http://www.ninjatrader-support.com/H...onditions.html

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Today, 05:17 AM
        0 responses
        41 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        124 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        64 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        41 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        46 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X