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:	91
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 Jon17, Today, 04:33 PM
        0 responses
        1 view
        0 likes
        Last Post Jon17
        by Jon17
         
        Started by Javierw.ok, Today, 04:12 PM
        0 responses
        5 views
        0 likes
        Last Post Javierw.ok  
        Started by timmbbo, Today, 08:59 AM
        2 responses
        10 views
        0 likes
        Last Post bltdavid  
        Started by alifarahani, Today, 09:40 AM
        6 responses
        41 views
        0 likes
        Last Post alifarahani  
        Started by Waxavi, Today, 02:10 AM
        1 response
        20 views
        0 likes
        Last Post NinjaTrader_LuisH  
        Working...
        X