How do I do a total refresh on the indicator so that only the current properties in my .cs file show up?
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
Removed Properties Still Showing Up
Collapse
X
-
Removed Properties Still Showing Up
I am in the process of developing an indicator. I have added and removed a few properties since I first compiled and tested the indicator on a chart. The problem is that the old properties are still showing up as indicator parameters when I add the new indicator to a chart. I assume they are being cached somewhere but can't find where that is.
How do I do a total refresh on the indicator so that only the current properties in my .cs file show up?Tags: None
-
nedrob519,
Thank you for your post.
There is a section in the bottom of the indicator labeled "NinjaScript Generated Code". This is where the different methods are created for calling the class and also the properties.
You would need to go through here and remove the old properties, however this is not supported programming with NinjaTrader.
The other work around is to take the logic you have now and create a new Indicator and copy and paste that logic over.
Out of curiosity, at the top of the class call for the indicator, is there a [Description()] syntax?
Let me know if I can be of further assistance.Cal H.NinjaTrader Customer Service
-
Yes, there is a description there:
[Description("Plots the open, high, low, halfback and prior session high and low values from the session starting on the current day.")]
public class aNedHalfBack : Indicator
Could this be an issue? I did update it during compiles.
I will also look at the ninja generated code as you suggested.
Comment
-
nedrob519,
I haven't run into that issue before.
I wouldn't expect it to be the cause either.
My suggestion would be to create a new indicator and transfer the logic over and re-compile the new one.
The generated code can be played with but also easily corruptible when changing items in itCal H.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Mestor, Today, 03:15 AM
|
0 responses
0 views
0 likes
|
Last Post
by Mestor
Today, 03:15 AM
|
||
Started by Mestor, 03-10-2023, 01:50 AM
|
11 responses
304 views
0 likes
|
Last Post
by z.franck
Today, 02:29 AM
|
||
Started by Padan, Today, 02:02 AM
|
0 responses
6 views
0 likes
|
Last Post
by Padan
Today, 02:02 AM
|
||
Started by bukowa, 11-09-2023, 06:07 PM
|
20 responses
407 views
0 likes
|
Last Post
by Adfra
Today, 01:36 AM
|
||
Started by yertle, Yesterday, 05:49 PM
|
2 responses
11 views
0 likes
|
Last Post
by yertle
Today, 12:12 AM
|
Comment