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 cmtjoancolmenero, Yesterday, 03:58 PM
|
6 responses
28 views
0 likes
|
Last Post Today, 08:55 AM | ||
Started by gbourque, Today, 06:39 AM
|
2 responses
14 views
0 likes
|
Last Post
by gbourque
Today, 07:05 AM
|
||
Started by rexsole, Today, 08:39 AM
|
0 responses
4 views
0 likes
|
Last Post
by rexsole
Today, 08:39 AM
|
||
Started by trilliantrader, Yesterday, 03:01 PM
|
3 responses
31 views
0 likes
|
Last Post Today, 08:28 AM | ||
Started by Brevo, Today, 01:45 AM
|
1 response
14 views
0 likes
|
Last Post Today, 08:14 AM |
Comment