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 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 :

          BertrandNinjaTrader Customer Service

          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 Waxavi, Today, 02:10 AM
              1 response
              16 views
              0 likes
              Last Post NinjaTrader_LuisH  
              Started by Kaledus, Today, 01:29 PM
              5 responses
              13 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Started by Waxavi, Today, 02:00 AM
              1 response
              12 views
              0 likes
              Last Post NinjaTrader_LuisH  
              Started by alifarahani, Today, 09:40 AM
              5 responses
              23 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Started by gentlebenthebear, Today, 01:30 AM
              3 responses
              17 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Working...
              X