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
About OHLC and OHL indicator alerts
Collapse
X
-
Hello ラリー,
There are 3 parts to a plot.
1. Add the plot series object with AddPlot().
2. Set the Value[0] for the plot on each bar in OnBarUpdate()
3. Return a public Series<double> so this can be access from another script
Below is a link to a forum post with details.
I'm trying to expose my variables to the strategy builder so everyone can have better use of the WaveTrend indicator (it has a lot of code). Explain this to me like I am 5 because this isnt the first time I've tried to figure it out and hit a wall. What is Series? I know its like an array that stores bars. Why not just call itChelsea B.NinjaTrader Customer Service
Comment
-
NinjaTrader_Jesse NinjaTrader_ChelseaB
Thank you for your reply.
I followed the link and added the plot in OnBarUpdate but the values are not showing as well.
What was different?
Comment
-
Hello ラリー,
Have you tried using a chart to make sure the indicator works first? This may relate to the settings you used in the market analyzer for the bar settings. Try using a chart and make sure it plots then use the same settings for the data series when configuring the indicator in the market analyzer.
JesseNinjaTrader Customer Service
Comment
-
Thank you for your reply.
Are you selecting enough data in the market analyzer for the indicator to calculate?
I set the time frame to 365 days and ran it again, but it is not displayed.
Do you see other indicators like the SMA working if you use similar settings?
Comment
-
Comment
-
Hello ラリー,
In the video you have not applied the custom indicator which contains your conditions, plots and alerts. You are manually applying system indicators and a custom column which reports ... The custom column can be removed completely because that is not how you select your indicator.
If you wanted to display a custom value in the analyzer and also trigger alerts you need to select the Indicator column and then the custom indicator that you made.
If you are having difficulty understanding the market analyzer indicator column I would suggest watching the video that covers using the market analyzer . https://ninjatrader.com/support/help...MarketAnalyzerJesseNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by pmachiraju, 11-01-2023, 04:46 AM
|
8 responses
149 views
0 likes
|
Last Post
by rehmans
Today, 06:44 PM
|
||
Started by mattbsea, Today, 05:44 PM
|
0 responses
5 views
0 likes
|
Last Post
by mattbsea
Today, 05:44 PM
|
||
Started by RideMe, 04-07-2024, 04:54 PM
|
6 responses
33 views
0 likes
|
Last Post
by RideMe
Today, 05:31 PM
|
||
Started by tkaboris, Today, 05:13 PM
|
0 responses
5 views
0 likes
|
Last Post
by tkaboris
Today, 05:13 PM
|
||
Started by GussJ, 03-04-2020, 03:11 PM
|
16 responses
3,283 views
0 likes
|
Last Post
by Leafcutter
Today, 04:14 PM
|
Comment