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 pmachiraju, 11-01-2023, 04:46 AM
        8 responses
        148 views
        0 likes
        Last Post rehmans
        by rehmans
         
        Started by mattbsea, Today, 05:44 PM
        0 responses
        5 views
        0 likes
        Last Post mattbsea  
        Started by RideMe, 04-07-2024, 04:54 PM
        6 responses
        33 views
        0 likes
        Last Post RideMe
        by RideMe
         
        Started by tkaboris, Today, 05:13 PM
        0 responses
        5 views
        0 likes
        Last Post tkaboris  
        Started by GussJ, 03-04-2020, 03:11 PM
        16 responses
        3,283 views
        0 likes
        Last Post Leafcutter  
        Working...
        X