Announcement

Collapse
No announcement yet.

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 cmoran13, 04-16-2026, 01:02 PM
        0 responses
        43 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        25 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        162 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        98 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        157 views
        2 likes
        Last Post CaptainJack  
        Working...
        X