Thanks in advance!
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Market Analyzer showing stochastic K line and D line difference
Collapse
X
-
Market Analyzer showing stochastic K line and D line difference
Hi, I am wondering if we can create a column in the market analyzer which will analyze the difference between the stochastic K line and D line. For example, the column would plot green if the K line is above the D, and would plot red if K is below D.
Thanks in advance!Tags: None
-
Hello jipsonmv,
Thanks for your post.
I would recommend creating this as an Indicator and then applying to the Market analyzer using the market analyzers Indicator column.
The indicator would need to provide a transparent plot that provides the signal of +1 when K>D and a -1 when K<D. In the market analyzer, you would use the +1 or -1 in the "cell conditions" to create the Red or green cell color, indicating those states of the K and D line relationship.
To create an indicator I would recommend using the Ninjscript Editor's indicator wizard which will help you set-up the indictor structure, including the transparent plot. Here is a link to the help guide of the indicator wizard: https://ninjatrader.com/support/help...?ns_wizard.htm
Once the structure is completed you would then need to work in the OnBarUpdate() section to add the code the evaluates the K & D and provides the +1 or -1 output to the plot.
Here is a publically available link to the Ninjascript editor webinar recording which may be helpful: https://youtu.be/H7aDpWoWUQsLast edited by NinjaTrader_PaulH; 08-05-2021, 08:00 AM.
-
Hi, Thanks for responding. I checked out the link to create an indicator and the webinar. I don't have enough knowledge to make an indicator using that wizard. Is there anything else I can do to get it happened? An indicator like the MACD difference line would be good, as it plots positive when macd is above the average vice versa.Originally posted by NinjaTrader_PaulH View PostHello jipsonmv,
Thanks for your post.
I would recommend creating this as an Indicator and then applying to the Market analyzer using the market analyzers Indicator column.
The indicator would need to provide a transparent plot that provides the signal of +1 when K>D and a -1 when K<D. In the market analyzer, you would use the +1 or -1 in the "cell conditions" to create the Red or green cell color, indicating those states of the K and D line relationship.
To create an indicator I would recommend using the Ninjscript Editor's indicator wizard which will help you set-up the indictor structure, including the transparent plot. Here is a link to the help guide of the indicator wizard: https://ninjatrader.com/support/help...?ns_wizard.htm
Once the structure is completed you would then need to work in the OnBarUpdate() section to add the code the evaluates the K & D and provides the +1 or -1 output to the plot.
Here is a publically available link to the Ninjascript editor webinar recording which may be helpful: https://youtu.be/H7aDpWoWUQs
Thanks
Comment
-
Hello jipsonmv,
Thanks for your reply.
If you would like something created for you, we can provide a link to 3rd party programmers in the NinjaTrader Ecosystem.
For a non-programming solution, all I can suggest would be to create the condition in the strategy builder and have the strategy builder draw on the chart when the conditions are met. For example you can color the background of the chart when K > D and a different color when K < D.
Here are the educational resource available on the strategy builder:
Free live webinar every other Thursday at 4:00 PM EST, through this link to all webinars: https://ninjatrader.com/PlatformTraining
Previous recording of the Strategy Builder 301 webinar: https://youtu.be/HCyt90GAs9k?list=PL...auWXkWe0Nf&t=2
Help guide for the strategy builder: https://ninjatrader.com/support/help...gy_builder.htm
While a strategy is not ideal, because you have to enable it each day, it would be the only way to do this (provide charted indication of K > d and K < D) without programming a custom solution.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, 03-13-2026, 05:17 AM
|
0 responses
86 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
151 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
79 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
53 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
61 views
0 likes
|
Last Post
|

Comment