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
    BertrandNinjaTrader Customer Service

    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
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by ghoul, Today, 06:02 PM
        3 responses
        14 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by jeronymite, 04-12-2024, 04:26 PM
        3 responses
        44 views
        0 likes
        Last Post jeronymite  
        Started by Barry Milan, Yesterday, 10:35 PM
        7 responses
        20 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by AttiM, 02-14-2024, 05:20 PM
        10 responses
        180 views
        0 likes
        Last Post jeronymite  
        Started by DanielSanMartin, Yesterday, 02:37 PM
        2 responses
        13 views
        0 likes
        Last Post DanielSanMartin  
        Working...
        X