Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error

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

    Error

    HI
    I have an indicator and in State.Configure I have set this value to 1 - but I still get this error on every re compile.
    The indicator works but I can't understand how/why I am getting this message.
    thanksClick image for larger version

Name:	Screenshot 2022-07-14 085618.jpg
Views:	120
Size:	14.2 KB
ID:	1208407

    #2
    Mindset Some thoughts:
    • Do you set a default value at declaration? Is it 1?
    • Have you tried setting it in State.SetDefaults?
    • Does the Property have bounded values?
    Thanks.
    Last edited by jeronymite; 07-13-2022, 09:08 PM.
    Multi-Dimensional Managed Trading
    jeronymite
    NinjaTrader Ecosystem Vendor - Mizpah Software

    Comment


      #3
      Hello Mindset,

      Thanks for your post.

      This error message means that the ShowLevel property in your script is being set to a value of 0. To resolve this error, you could need to assign that property to a value of 1 or greater in your script.

      Default property values should be assigned in OnStateChange() when the State is State.SetDefaults. Please try setting the value for that property in the State.SetDefaults section of your script.

      Does that resolve the error message?

      If not, please attach your script to your reply so that I may investigate this matter further.

      Let me know if I may assist further.
      <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

      Comment


        #4
        I rewrote the code and the error message seems to have gone now.
        thanks

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        579 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        334 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        554 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        551 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X