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 Haiasi, 04-25-2024, 06:53 PM
        2 responses
        16 views
        0 likes
        Last Post Massinisa  
        Started by Creamers, Today, 05:32 AM
        0 responses
        5 views
        0 likes
        Last Post Creamers  
        Started by Segwin, 05-07-2018, 02:15 PM
        12 responses
        1,786 views
        0 likes
        Last Post Leafcutter  
        Started by poplagelu, Today, 05:00 AM
        0 responses
        3 views
        0 likes
        Last Post poplagelu  
        Started by fx.practic, 10-15-2013, 12:53 AM
        5 responses
        5,407 views
        0 likes
        Last Post Bidder
        by Bidder
         
        Working...
        X