Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Custom indicators disappearing from tabbed charts not in focus at time of live login.

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

    Custom indicators disappearing from tabbed charts not in focus at time of live login.

    Two computers. Same custom Ninjascript indicators.

    On both, custom Ninjascript indicators disappear from tabbed charts not in focus/Not selected at time of live login or whenever reloading historical data while logged into a live connection.

    When not logged onto live data, no issues displaying custom indicators.
    Each indicator is set to calculate on bar close.

    There is no error reported in Log Tab.

    Have to hit F5 for each chart that is missing custom indicator to reload Ninjascript.

    The built in indicators display on all charts after Live Login. (such as MA's and Bollinger Bands)

    What might be the issue?

    NinjaTrader 8.1.2.1 64-bit
    Last edited by DmanX; 03-15-2024, 08:27 AM.

    #2
    Here's an example of the custom NinjaScript indicator:


    Click image for larger version

Name:	image.png
Views:	140
Size:	217.4 KB
ID:	1295950​What in this would make it not repaint after either a logon to a live feed or Reload of historical data while logged on?

    What am I missing here?

    I've built all my custom indicators based off of what you see here.

    Comment


      #3
      Hello DmanX,

      The indicator would be reloaded.

      Have you added prints to confirm on which bars the condition is evaluating as true after the script reloads?


      Please provide the output from prints showing which bars the condition has evaluated as true. (Right-click output window > save as)

      If you click on the chart does the bar coloring show?
      Chelsea B.NinjaTrader Customer Service

      Comment


        #4
        Hello,

        On the active tabs, everything works fine. Loads new data and paints all bars that need to be painted. In fact when I boot up NT8, all tabs including non-selected/inactive tabs paint all bars that need to be painted.

        It's only when logging into a connection for live data or after reloading historical data, do the non-active/non-selected tabs at the time of either event, fail to display the painted bars.

        I tried debugging with print. Print shows everything working as normal.

        Only way to get the bars to show on the inactive tabs when selected is to hit F5 to reload ninja script
        Last edited by DmanX; 03-15-2024, 03:34 PM.

        Comment


          #5
          Update:

          I noticed something. When I log on using the "LIVE" connection, things seem to work well and my problem is solved.

          I was logging on the old way where I would configure a connection and enter in my Continuum credentials. I guess that old way is deprecated.

          Comment


            #6
            Hello DmanX,

            There is a IsSuspendedWhileInactive setting but this wouldn't be causing the entire indicator to disappear from the chart on previous bars.. It would only keep this from actively updating in real-time until the chart is active.

            If the bars are updating as shown from prints in OnBarUpdate() this could be a rendering issue.

            With the connection type, if you are connected with either connection and receiving real-time data (showing changing ask and bid prices), then the script should be processing.
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              Meant to get back to this thread a while ago.

              Thank you.

              Setting IsSuspendedWhileInactive​ to false; sorted out the issue.

              I also cleaned up my custom indicators by Setting PaintPriceMarkers to False; and also removing the following;

              DisplayInDataBox = true;
              DrawOnPricePanel = true;
              DrawHorizontalGridLines = true;
              DrawVerticalGridLines​ = true;
              ScaleJustification = NinjaTrader.Gui.Chart.ScaleJustification.Right;


              Everything running smoothly.

              Thank again for that information!

              -D

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              673 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              379 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              111 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              578 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              582 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X