Thanks in advance!
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
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.Paul H.NinjaTrader Customer Service
-
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.
Paul H.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by giulyko00, Yesterday, 12:03 PM
|
3 responses
12 views
0 likes
|
Last Post Today, 08:26 AM | ||
Started by habeebft, Today, 07:27 AM
|
1 response
14 views
0 likes
|
Last Post Today, 08:08 AM | ||
Hi
by AveryFlynn
Started by AveryFlynn, Today, 04:57 AM
|
1 response
12 views
0 likes
|
Last Post Today, 07:57 AM | ||
Started by Max238, Today, 01:28 AM
|
5 responses
39 views
0 likes
|
Last Post
by Max238
Today, 08:30 AM
|
||
Started by r68cervera, Today, 05:29 AM
|
1 response
10 views
0 likes
|
Last Post Today, 07:47 AM |
Comment