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:	38
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 birdog, 02-02-2023, 09:32 AM
        11 responses
        149 views
        0 likes
        Last Post birdog
        by birdog
         
        Started by sambathraj, Today, 07:46 PM
        0 responses
        17 views
        0 likes
        Last Post sambathraj  
        Started by topa11, Today, 12:52 PM
        2 responses
        35 views
        0 likes
        Last Post topa11
        by topa11
         
        Started by torento, Yesterday, 05:43 PM
        4 responses
        88 views
        0 likes
        Last Post torento
        by torento
         
        Started by sprks7979, Today, 05:59 PM
        0 responses
        34 views
        0 likes
        Last Post sprks7979  
        Working...
        X