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.htmlBertrandNinjaTrader Customer Service
-
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.htmlBertrandNinjaTrader 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 Today, 06:43 PM | ||
Started by jeronymite, 04-12-2024, 04:26 PM
|
3 responses
44 views
0 likes
|
Last Post
by jeronymite
Yesterday, 10:10 PM
|
||
Started by Barry Milan, Yesterday, 10:35 PM
|
7 responses
20 views
0 likes
|
Last Post Today, 06:16 PM | ||
Started by AttiM, 02-14-2024, 05:20 PM
|
10 responses
180 views
0 likes
|
Last Post
by jeronymite
Today, 06:11 PM
|
||
Started by DanielSanMartin, Yesterday, 02:37 PM
|
2 responses
13 views
0 likes
|
Last Post Today, 05:26 PM |
Comment