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

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:	93
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.
      Brandon H.NinjaTrader Customer Service

      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 benmarkal, Yesterday, 12:52 PM
        3 responses
        22 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by helpwanted, Today, 03:06 AM
        1 response
        18 views
        0 likes
        Last Post sarafuenonly123  
        Started by Brevo, Today, 01:45 AM
        0 responses
        11 views
        0 likes
        Last Post Brevo
        by Brevo
         
        Started by aussugardefender, Today, 01:07 AM
        0 responses
        6 views
        0 likes
        Last Post aussugardefender  
        Started by pvincent, 06-23-2022, 12:53 PM
        14 responses
        244 views
        0 likes
        Last Post Nyman
        by Nyman
         
        Working...
        X