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!
See more
See less

Partner 728x90

Collapse

Changed Properties lost

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Changed Properties lost

    I know I am doing something silly, but just can't find it. When I go into properties of a indicator and make changes, when I leave NT and return the changed values are not saved. When I change values in one of the default indicators such as "SMA" the values are restored correctly. Suggestions for my silly mistake? Thanks in advance.

    #2
    orangepick,

    I am not sure I follow what you are trying exactly. There are default settings for all the indicators including the default indicators.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      for example the "SMA" indicator has a variable named "Period" in the parameters section. If I change it from the default to 200 for example and then I press "Apply". A 200 sma will appear on my chart. If I exit NT and select "Save All" and reopen NT, the 200 sma will appear fine. If I reopen Indicators and look at the variable "Period" it will have the value 200. This is all "working as expected".

      Now when I create my own Indicator and modify a variable it will only keep my changes until I exit NT, once I reopen NT, it reverts back to the default values for the variable I have changed. It is almost like my own created indicators will not store variable changes between sessions?

      I hope this is clearer, sorry for the confusion. Ideas?

      Comment


        #4
        orangepick,

        You will need to ensure your code for the parameters is proper. Please see the SMA indicator's Variables and Properties section of code for a template. It needs to look just like that. Also, please ensure you have the bottom section in your indicator labeled "NinjaScript generated code. Do not remove or modify" intact.
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by yertle, Yesterday, 08:38 AM
        7 responses
        28 views
        0 likes
        Last Post yertle
        by yertle
         
        Started by bmartz, 03-12-2024, 06:12 AM
        2 responses
        21 views
        0 likes
        Last Post bmartz
        by bmartz
         
        Started by funk10101, Today, 12:02 AM
        0 responses
        5 views
        0 likes
        Last Post funk10101  
        Started by gravdigaz6, Yesterday, 11:40 PM
        1 response
        9 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by MarianApalaghiei, Yesterday, 10:49 PM
        3 responses
        11 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Working...
        X