Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multidata indicator abort problem

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

    Multidata indicator abort problem

    Since Ninja does not allow "Hidden" data (like, if I want to see only an indicator on another data series I cannot Hide the data bar, only make them Transparent), I tried to make an indicator that Adds a dataseries of a different data type than the primary bars and then use only conditional background color changes based on the dataseries 2 data, thinking that would not distort the spacing of the primary bars the way adding a visible second dataset does. I made sure to use BarsInProgress to make the calcs conditional, but Ninja aborts, saying it encountered an error and needs to shut down. Is it even possible to do this? I made the invisible data minute bars and put the indicator on volume bars. Can I not mix types, even using the check (BarsInProgress == 1) before running any of the data2 code?

    #2
    Hello Tarkus11,

    Can you please clarify what you're looking to do?

    You can use DataSeries, which are synced to bars and do not plot. I'm not sure if this fits what you're looking for with "hidden".
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_RyanM View Post
      Hello Tarkus11,

      Can you please clarify what you're looking to do?

      You can use DataSeries, which are synced to bars and do not plot. I'm not sure if this fits what you're looking for with "hidden".
      Thank you RyanM.

      For a simple example, let's say I wanted to copy the SMA to do the following:
      Use a second dataseries that is Add-ed, not displayed as the data source,
      Conditionally change the background color of the primary data depending on whether the unseen data makes the SMA slope upward or downward.

      The Add-ed data that will change the panel color will be minute data while the primary data will be Tick or Volume.

      I have tried a more complicated version of this and NT is aborting.

      Comment


        #4
        Yes, this is possible. One thing you should look out for is the different format in TimeStamps between time based charts and tick or volume. NinjaTrader stamps bars when they will end, so your minute bar time stamps project into the future. Your tick and volume time stamps will be according to the time of the last trade.

        To debug your more complicated version:
        Start simple and verify behavior at each step to make sure it works properly.

        Please let us know the error message you're getting and share the code you're using to see it.
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_RyanM View Post
          Yes, this is possible. One thing you should look out for is the different format in TimeStamps between time based charts and tick or volume. NinjaTrader stamps bars when they will end, so your minute bar time stamps project into the future. Your tick and volume time stamps will be according to the time of the last trade.

          To debug your more complicated version:
          Start simple and verify behavior at each step to make sure it works properly.

          Please let us know the error message you're getting and share the code you're using to see it.
          Ah - I see. So that means I will run in synchronization problems - so I will have to address it more like the "Correlation" and/or "Spread" indicators.

          Thanks. That makes it clearer.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          608 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          355 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          105 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          560 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          561 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X