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 MacDad, 02-25-2024, 11:48 PM
|
7 responses
158 views
0 likes
|
Last Post Today, 10:23 PM | ||
Started by Belfortbucks, Today, 09:29 PM
|
0 responses
7 views
0 likes
|
Last Post
by Belfortbucks
Today, 09:29 PM
|
||
Started by zstheorist, Today, 07:52 PM
|
0 responses
7 views
0 likes
|
Last Post
by zstheorist
Today, 07:52 PM
|
||
Started by pmachiraju, 11-01-2023, 04:46 AM
|
8 responses
151 views
0 likes
|
Last Post
by rehmans
Today, 06:44 PM
|
||
Started by mattbsea, Today, 05:44 PM
|
0 responses
6 views
0 likes
|
Last Post
by mattbsea
Today, 05:44 PM
|
Comment