Is this possible
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
Collapse
X
-
Hello salaksi1,
The easiest way to do that would be with the right click -> Alerts in the analyzer. After adding two columns with the variations of the indicator you wanted to check you can open the alerts menu to form a cross over condition using those two columns. https://ninjatrader.com/support/help...nt8/alerts.htm
Alternatively you would need to create an indicator with a Plot and then assign the plot a value. For example 0 if no crossover is found and 1 if a crossover is found. The MA can then use the indicator column to display that result.JesseNinjaTrader Customer Service
-
Hello salaksi1,
I am not aware of a video of creating an indicator, you can use the NinjaScript editor to view the code of existing indicator or generate new indicators with plots.
If you generate a new indicator using the editor and add a plot during the wizard screens that will set up the script for you. After that you would just need to add the code you want to OnBarUpdate to plot a value. https://ninjatrader.com/support/help...ghtsub=addplot
For use with the market analyzer you generally need to plot a specific value, for example 0 for not found or 1 for found.
You can use the CrossAbove or CrossBelow methods to detect the crossing: https://ninjatrader.com/support/help...sub=crossabove
JesseNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by ghoul, Today, 06:02 PM
|
3 responses
14 views
0 likes
|
Last Post Today, 06:43 PM | ||
Started by jeronymite, 04-12-2024, 04:26 PM
|
3 responses
44 views
0 likes
|
Last Post
by jeronymite
Yesterday, 10:10 PM
|
||
Started by Barry Milan, Yesterday, 10:35 PM
|
7 responses
20 views
0 likes
|
Last Post Today, 06:16 PM | ||
Started by AttiM, 02-14-2024, 05:20 PM
|
10 responses
180 views
0 likes
|
Last Post
by jeronymite
Today, 06:11 PM
|
||
Started by DanielSanMartin, Yesterday, 02:37 PM
|
2 responses
13 views
0 likes
|
Last Post Today, 05:26 PM |
Comment