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
Error on indicator can not save workspace
Collapse
X
-
Ok I figured what the issue is but I don't know how to solve this
I have 1 indicator getting information from another indicator
public Series<int> SeriesIMySeries;
The issue is this.
If I have the Series private my other indicator can not access the Series.
If I have the Series public the indicator works but if I save workspace I get this error.
There was an error reflecting type in NinjaTrader.NinjaScript.Indicators.MyIndicator.
-
Hello ballboy11,
Thank you for your notes.
A Plot is a public series. ArePlotsConfigurable controls if plots can be configured in the indicator dialog and would not be set individually.
Please note Plots are ONLY visible from the UI property grid when AddPlot() is called from State.SetDefaults. If your indicator or strategy dynamically adds plots during State.Configure, you will NOT have an opportunity to select the plot or to set the plot configuration via the UI.
You could use AddPlot() within State.Configured and make that plot transparent using Brushes.Transparent. This would hide it from the UI, the Data Box, and the Chart.
Here is a Help Guide link about how AddPlot may be used - https://ninjatrader.com/support/help...8/?addplot.htm
Or, you could refer to the following example that demonstrates making a public Series<bool> to have your indicator calculate non-plotted values that you may want to access when using this indicator inside of another indicator or strategy - https://ninjatrader.com/support/help...alues_that.htm
Please let us know if we may further assist.Brandon H.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Tin34, Today, 03:30 AM
|
2 responses
21 views
0 likes
|
Last Post
by Tin34
Today, 04:11 AM
|
||
Started by sastrades, Yesterday, 09:59 AM
|
2 responses
33 views
0 likes
|
Last Post Today, 04:06 AM | ||
Started by ETFVoyageur, Today, 12:52 AM
|
1 response
18 views
0 likes
|
Last Post Today, 03:36 AM | ||
Started by lollers, Today, 03:26 AM
|
0 responses
19 views
0 likes
|
Last Post
by lollers
Today, 03:26 AM
|
||
Started by aliyahany, Today, 03:16 AM
|
0 responses
4 views
0 likes
|
Last Post
by aliyahany
Today, 03:16 AM
|
Comment