View Full Version : A question on DMI
vitorleite
02-16-2009, 06:26 AM
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
NinjaTrader_Bertrand
02-16-2009, 06:39 AM
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/HelpGuideV6/Overview18.html
vitorleite
02-16-2009, 06:54 AM
er....I'm a novice, you know? Can you help on this one?
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/HelpGuideV6/Overview18.html
NinjaTrader_Bertrand
02-16-2009, 07:32 AM
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 -
double myDmiValue = DM(Close, 10).DiPlus[0] - DM(Close,10).DiMinus[0];
Then you can plot the myDmiValue and uses the indicator to setup custom color conditions in the Market Analyzer - http://www.ninjatrader-support.com/HelpGuideV6/CreatingColorConditions.html