Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multi-Time Frame BarUpdate, Entries and Exits

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

    #16
    David,

    When using Calculate On Bar Close = false, Close[0] will give you the last traded price (current tick) regardless of the bar type you are using. This is because the bar has not technically closed and will continue to update as you receive new ticks in your range chart.
    MatthewNinjaTrader Product Management

    Comment


      #17
      Ah,I see... one other thing, consider

      EMA(BarsArray[2], 8)[0]

      This will calculate the EMA 8 of barObject 2, my 20 minute bars. However it will calculate on the Close Price. How would I declare the same thing but for it to calculate on the Opening Price and declaring the BarsArray to use also?

      Thanks

      David

      Comment


        #18
        Matthew???

        Any ideas on my previous question??

        Thanks

        David

        Comment


          #19
          Hi David, to use the open price of the 20 min added series please use Opens then in your EMA call :

          Comment


            #20
            Hi, I don't really follow?

            are you saying...

            EMA(Opens[2][0], 8)[0]

            ???

            thanks

            David

            Comment


              #21
              David,

              If used as an input for an indicator, you need to pass in the series opens.

              For Opens, this is done with a single bracket [ ], not double [ ] [ ].

              Example:
              double myEMA = EMA(Opens[2], 8)[0]
              Ryan M.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

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