Thanks
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
A question on DMI
Collapse
X
-
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?
ThanksTags: None
-
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
-
er....I'm a novice, you know? Can you help on this one?
Originally posted by NinjaTrader_Bertrand View PostHi 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
-
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
50 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
126 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
69 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
42 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
46 views
0 likes
|
Last Post
|

Comment