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

OnMarketData() & CalculateOnBarClose

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

    OnMarketData() & CalculateOnBarClose

    Hi,

    Can someone please validate the following;

    When setting CalculateOnBarClose = false, the OnBarUpdate() is called on each new bid Tick, or for either a new Bid / Ask tick?

    I know OnMarketData() is called for either.

    Thanks
    Anthony
    mrlogik
    NinjaTrader Ecosystem Vendor - Purelogik Trading

    #2
    Is called for each new tick. But not for bid/ask.

    Comment


      #3
      Thanks Dierk,

      To clarify, we're working on a bid chart; is each new tick defined as a bid tick? What constitutes a new tick?

      Thanks again.
      mrlogik
      NinjaTrader Ecosystem Vendor - Purelogik Trading

      Comment


        #4
        NT6.5 does not support bid charts.

        Comment


          #5
          Dierk,

          I'm confused.

          You wrote some time ago that its hard coded to "bid".

          Can you please clarify?
          mrlogik
          NinjaTrader Ecosystem Vendor - Purelogik Trading

          Comment


            #6
            Charts are built off ticks. If a provider does not support "ticks" for currencies, then NT generates ticks from the bid. However, NT charts always are built from ticks.

            Comment


              #7
              Okay.

              How does a tick correlate to the a bid price change or an ask price change?

              Also, does MB support "ticks" for currencies, or are you creating a chart based on the Bid price?

              Thanks again.
              mrlogik
              NinjaTrader Ecosystem Vendor - Purelogik Trading

              Comment


                #8
                If an FX provider does not support a last traded price event --> As a bid price event comes in, NT throws this event and duplicates it as a last price event at the core level. Any object downstream using last price behaves as expected off of this last price event that was generated by the bid price event.

                I believe we do get a last event from MBT but they tie it back to bid as well.
                RayNinjaTrader Customer Service

                Comment


                  #9
                  Dierk,

                  Thanks for taking the time to provide such a helpful answer.

                  I under stand now.

                  Anthony
                  mrlogik
                  NinjaTrader Ecosystem Vendor - Purelogik Trading

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by nleitman, Today, 11:46 AM
                  7 responses
                  18 views
                  0 likes
                  Last Post NinjaTrader_ChelseaB  
                  Started by cmtjoancolmenero, Today, 01:09 PM
                  1 response
                  8 views
                  0 likes
                  Last Post NinjaTrader_ChelseaB  
                  Started by DanielRaz, Today, 12:54 PM
                  1 response
                  11 views
                  0 likes
                  Last Post NinjaTrader_ChelseaB  
                  Started by Russ Moreland, 04-24-2024, 12:54 PM
                  2 responses
                  19 views
                  0 likes
                  Last Post JosephDavidsona  
                  Started by truepenny, Today, 03:45 AM
                  5 responses
                  27 views
                  0 likes
                  Last Post NinjaTrader_RyanS  
                  Working...
                  X