Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator to multiple Input alignment

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

    Indicator to multiple Input alignment

    Hello.
    I done indicator where I use 2 Instrument.
    My Indicator draw lines only for main Input and skip lines aligned for second Instrument.
    Eg main instrument bars: 20:33, 20:34, 20:36
    second instrument bars: 20:33,20:35,20:36
    Indicator contain only 20:33,20:34 and 20:36, and 20:35 is skipped...
    It's possible for multiple alignment?

    #2
    skuvv, can you please clarify what you mean by "it's possible for multiple alignment"?

    If I understand your question correctly, it is possible to check if a bar exists for two different instruments with the following code:
    Code:
    OnBarUpdate()
    {
       if (BarsInProgress == 1 && Times[0][0] == Times[1][0])
       {
           // the bar exists for both instruments
       }
    }
    AustinNinjaTrader Customer Service

    Comment


      #3
      No, I mean that both instruments has different bar but Indicator draw only for main instrument.
      See my picture:
      On cursor cross hair there is no indicator bar.
      Upper graph is main
      Attached Files

      Comment


        #4
        skuvv, can you please explain a bit more? If you are running the indicator on the main instrument, it will only plot on main instrument updates. Would you be willing to post the code so we can take a look?
        AustinNinjaTrader Customer Service

        Comment


          #5
          I sent code in PM.
          Is any news for my question?

          Comment


            #6
            Skuvv,

            Austin only works weekends. Can you please send the code and issue to support at ninjatrader dot com with attn: Brett so that I may follow up with you.

            Thanks You.
            BrettNinjaTrader Product Management

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Hwop38, 05-04-2026, 07:02 PM
            0 responses
            160 views
            0 likes
            Last Post Hwop38
            by Hwop38
             
            Started by CaptainJack, 04-24-2026, 11:07 PM
            0 responses
            308 views
            0 likes
            Last Post CaptainJack  
            Started by Mindset, 04-21-2026, 06:46 AM
            0 responses
            245 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by M4ndoo, 04-20-2026, 05:21 PM
            0 responses
            349 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by M4ndoo, 04-19-2026, 05:54 PM
            0 responses
            179 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Working...
            X