Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
DMI Oscillator & DMI Stochastic(S&C Jan 2013)
Collapse
X
-
Hello Trader333,
Thanks for your post.
You would need to review the code of the indicator and look for the statements that begin with DrawArrow and add the statements for the market analyzer output.
To assist I have modified the DMI indicator in post 13 and commented the lines that were added to facilitate output to the market analyzer.
In summary, I added a data series and captured the signals (next to the drawArrow statements) in the dataseries and made the dataseries publicly available. The example indicator can be added to the Market Analyzer and the plot to show is labeled DmiSEArrows. +1 = Up Arrow, -1 = Down Arrow, 0 = no arrow.
Please let me know if I can be of further assistance.Attached Files
Comment
-
DMI stochastic extreme diamonds
Hello
Does anyone know how to change the position of the diamonds that the dmi Stochastic extreme plots on the chart? Sometimes the diamonds completely cover the small candles on the chart so I can't identify the shape of the candle. I've played with some of the settings but I can't get all diamonds to move vertically either up or down?
Appreciate your assistance
Thank you
Comment
-
Hello,
There are two ways that you can get around this. The easiest way would be to change the Z-order of the drawing objects drawn by the strategy. You can do this by selecting any of the diamonds, then holding the Shift key and scrolling your mouse wheel up or down.
If you can access and edit the code, then you could accomplish what you are looking for by adding "+/- X * TickSize" after the value being used for "y" in the constructor of DrawTriangle(), with X being any number of ticks away from the specified point. For example, you could do something like the following:
orCode:DrawDiamond("diamond", true, 0,[I][B] High[0] + 3 * TickSize[/B][/I], Color.Blue)
Please let me know if I can assist further.Code:DrawDiamond("diamond", true, 0,[I][B] Low[0] - 2 * TickSize[/B][/I], Color.Blue)Dave I.NinjaTrader Product Management
Comment
-
Originally posted by NinjaTrader_Dave View PostHello,
There are two ways that you can get around this. The easiest way would be to change the Z-order of the drawing objects drawn by the strategy. You can do this by selecting any of the diamonds, then holding the Shift key and scrolling your mouse wheel up or down.
If you can access and edit the code, then you could accomplish what you are looking for by adding "+/- X * TickSize" after the value being used for "y" in the constructor of DrawTriangle(), with X being any number of ticks away from the specified point. For example, you could do something like the following:
orCode:DrawDiamond("diamond", true, 0,[I][B] High[0] + 3 * TickSize[/B][/I], Color.Blue)
Please let me know if I can assist further.Code:DrawDiamond("diamond", true, 0,[I][B] Low[0] - 2 * TickSize[/B][/I], Color.Blue)
Hello Dave,
Thank you for the reply. I tried ''selecting any of the diamonds, then holding the Shift key and scrolling your mouse wheel up or down''. The diamonds did not move when I did this?
Unfortunately I don't know anything about programing or scripts so I'm not sure what to do with the code you supplied? Is there a way to add this feature of moving the diamonds into the parameters window of the DMIStochasticExtreme indicator? See attached screenshot
Appreciate your assistance
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
672 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
379 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
111 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
577 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
582 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment