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

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.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by sidlercom80, 10-28-2023, 08:49 AM
            168 responses
            2,262 views
            0 likes
            Last Post sidlercom80  
            Started by Barry Milan, Yesterday, 10:35 PM
            3 responses
            10 views
            0 likes
            Last Post NinjaTrader_Manfred  
            Started by WeyldFalcon, 12-10-2020, 06:48 PM
            14 responses
            1,429 views
            0 likes
            Last Post Handclap0241  
            Started by DJ888, 04-16-2024, 06:09 PM
            2 responses
            9 views
            0 likes
            Last Post DJ888
            by DJ888
             
            Started by jeronymite, 04-12-2024, 04:26 PM
            3 responses
            41 views
            0 likes
            Last Post jeronymite  
            Working...
            X