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

My Code NT8 works only for one bar then stops

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

    My Code NT8 works only for one bar then stops

    Hi everyone,

    My indicator lasts only for the length of one bar then it disappears
    it only get back to work (for another bar) if i press F5

    please advice

    #2
    Hello xamer,

    Thanks for opening the thread.

    Is this an issue that is also observable in a system indicator? If so, could you provide more detail on how I can observe this as well?

    If the issue is only with your code, that indicator will have to be debugged to understand the issue at hand. Without the full code I’m unable to test on my end. Additionally, debugging customer code escapes the scope of services we may provide.

    First, I would check to see if there are any errors in the log tab of the Control Center.

    Next, I would recommend to debug your script with Prints to observe any values that your variables are passing that would break the logic.

    I would further suggest to comment out sections of the code to simplify the running logic until the code works, and then to uncomment sections until a problematic section of code is identified.

    We have some further tips on debugging found here:



    As well as additional tips for writing NinjaScript code here:



    If you have any additional questions on any errors received or about NinjaScript code in general, please don't hesitate to ask.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by DJ888, 04-16-2024, 06:09 PM
    3 responses
    10 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by RookieTrader, Today, 07:41 AM
    0 responses
    3 views
    0 likes
    Last Post RookieTrader  
    Started by maybeimnotrader, Yesterday, 05:46 PM
    1 response
    18 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by Perr0Grande, Yesterday, 08:16 PM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by f.saeidi, Yesterday, 08:12 AM
    3 responses
    27 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X