Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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 FilesPaul H.NinjaTrader Customer Service
Comment
-
Guys, we had a request for adding an option to the DMIOscillator to toggle if the bars should be painted or not, allowing for better usage with our custom studies that would attempt to change the bar color dynamically. The changed study allowing this is attached.Attached FilesBertrandNinjaTrader Customer Service
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:
Code:DrawDiamond("diamond", true, 0,[I][B] High[0] + 3 * TickSize[/B][/I], Color.Blue)
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:
Code:DrawDiamond("diamond", true, 0,[I][B] High[0] + 3 * TickSize[/B][/I], Color.Blue)
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 mly916, Today, 09:48 PM
|
0 responses
8 views
0 likes
|
Last Post
by mly916
Today, 09:48 PM
|
||
Started by Mikey_, Today, 09:21 PM
|
0 responses
10 views
0 likes
|
Last Post
by Mikey_
Today, 09:21 PM
|
||
Started by cre8able, Today, 05:53 PM
|
3 responses
13 views
0 likes
|
Last Post
by cre8able
Today, 09:20 PM
|
||
Started by Aryan Kumar, Today, 09:04 PM
|
0 responses
4 views
0 likes
|
Last Post
by Aryan Kumar
Today, 09:04 PM
|
||
Started by yertle, Yesterday, 05:49 PM
|
3 responses
16 views
0 likes
|
Last Post
by Mindset
Today, 08:38 PM
|
Comment