Announcement

Collapse
No announcement yet.

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.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    43 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    27 views
    0 likes
    Last Post PaulMohn  
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    163 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    98 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    158 views
    2 likes
    Last Post CaptainJack  
    Working...
    X