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
Saving indicator settings multiple workspaces
Collapse
X
-
Hello habibalex,
An indicator with properly serialized inputs will have all parameters saved with the workspace.
Are you finding that you are setting parameters, saving the workspace, and then after closing and re-opening the workspace the parameters are different?
Are you asking if indicator settings can be saved with a template to be applied to a new chart?Chelsea B.NinjaTrader Customer Service
-
Are you finding that you are setting parameters, saving the workspace, and then after closing and re-opening the workspace the parameters are different?
These are the in the Properties section, is there a way I can check to make sure they are serialized correctly?
Code:[XmlIgnore] [Display( Name = "Scale", GroupName = "A settings",Description="Colors for bar.")] public float Scale{ get { return scale;} set{ scale = value;} } [XmlIgnore] [Display( Name = "Use Outline", GroupName = "A settings",Description="Outlines everything.")] public bool UseOutline{get;set;}
Comment
-
I think I needed to see what this was, I kept looking for properties
Comment
-
Hello habibalex,
I would expect the Scale float to be saved with the workspace but not the UseOutline bool which has XmlIgnore().
Workspaces and templates are xml files. If XmlIgnore is used, these values will not be saved.
May I confirm the Scale float value is not being saved?
If yes, may I test this on my end?
To export a NinjaTrader 8 NinjaScript do the following:- Click Tools -> Export -> NinjaScript...
- Click the 'add' link -> check the box(es) for the script(s) you want to include
- Click the 'Export' button
- Enter a unique name for the file in the value for 'File name:'
- Choose a save location -> click Save
- Click OK to clear the export location message
By default your exported file will be in the following location:- (My) Documents/NinjaTrader 8/bin/Custom/ExportNinjaScript/<export_file_name.zip>
Below is a link to the help guide on Exporting NinjaScripts.
The Browseable attribute prevents the input from showing in the Indicator property grid at all. Basically this will hide that input in the parameters window completely when set to false.Chelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by KonAdams, Today, 10:53 PM
|
0 responses
1 view
0 likes
|
Last Post
by KonAdams
Today, 10:53 PM
|
||
Started by JGriff5646, Today, 10:02 PM
|
0 responses
10 views
0 likes
|
Last Post
by JGriff5646
Today, 10:02 PM
|
||
Started by AdamDJ8, Today, 09:18 PM
|
0 responses
5 views
0 likes
|
Last Post
by AdamDJ8
Today, 09:18 PM
|
||
Started by knowmad, Today, 03:52 AM
|
2 responses
33 views
0 likes
|
Last Post
by knowmad
Today, 09:03 PM
|
||
Started by ETFVoyageur, Today, 07:05 PM
|
0 responses
11 views
0 likes
|
Last Post
by ETFVoyageur
Today, 07:05 PM
|
Comment