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

Multi time frame question

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

    Multi time frame question

    If I add additional time-frames do they fire (received) in the same sequence they are added? Also if i had no ticks for a time-frame I assume I get no entry as opposed to a zero entry.

    #2
    ct, as NinjaTrader is event based, so they would update when there is one, meaning the opening tick of a new bar would have been seen. Correct, if there are no ticks / trades, then you would not see an update, as bars are strictly build event based.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Bertrand

      Make perfect sense. So if I am using bar close and have multiple instruments then the actual sequence of the entries can be random, Correct?.

      What is the best way to determine the first entry a new bar? Will FirstTickOfBar only fire (be true) for the first tick of BarsInProgress == 0? It would appear in testing it does not but for every time frame.
      Last edited by ct; 10-17-2012, 03:10 AM.

      Comment


        #4
        Correct, the firing of the instrument events in realtime would depend on really when they update, that's the event driven character. FirstTickOfBar would fire for each series / BarsInProgress.
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Bertrand

          Thanks for the reply. stupid question time -

          How can you determine the OnBarClose setting in ninjascript?

          Comment


            #6
            You can check with CalculateOnBarClose. Called in backtesting / historical data, it would be 'true' only.
            BertrandNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Shansen, 08-30-2019, 10:18 PM
            24 responses
            940 views
            0 likes
            Last Post spwizard  
            Started by Max238, Today, 01:28 AM
            0 responses
            9 views
            0 likes
            Last Post Max238
            by Max238
             
            Started by rocketman7, Today, 01:00 AM
            0 responses
            4 views
            0 likes
            Last Post rocketman7  
            Started by wzgy0920, 04-20-2024, 06:09 PM
            2 responses
            28 views
            0 likes
            Last Post wzgy0920  
            Started by wzgy0920, 02-22-2024, 01:11 AM
            5 responses
            33 views
            0 likes
            Last Post wzgy0920  
            Working...
            X