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

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:	43
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

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by fx.practic, 10-15-2013, 12:53 AM
            5 responses
            5,404 views
            0 likes
            Last Post Bidder
            by Bidder
             
            Started by Shai Samuel, 07-02-2022, 02:46 PM
            4 responses
            95 views
            0 likes
            Last Post Bidder
            by Bidder
             
            Started by DJ888, Yesterday, 10:57 PM
            0 responses
            8 views
            0 likes
            Last Post DJ888
            by DJ888
             
            Started by MacDad, 02-25-2024, 11:48 PM
            7 responses
            160 views
            0 likes
            Last Post loganjarosz123  
            Started by Belfortbucks, Yesterday, 09:29 PM
            0 responses
            9 views
            0 likes
            Last Post Belfortbucks  
            Working...
            X