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

Confused about Tick vs Bid vs Ask vs Last

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

    Confused about Tick vs Bid vs Ask vs Last

    Hello,

    Below my knowledge about these terms. Someone with knowledge about these terms, could you please tell me below definitions are correct or not?

    1. Ask is the best price for buyers
    2. Bid is best price for sellers
    3. Last is the last traded price which can be any price, it does not have to be equal current bid or ask.

    We can add additional data series in NT's strategies via AddDataSeries method. With this method we can add tick, bid, ask, last data series. If all my definitions is right, what is the mean tick and tick data data series (bid, ask and last are also tick data series, aren't they?) and when i need one of them how i will decide to choose the right one in my strategy?

    All helpful info/link will be appreciated.

    Thanks,
    Aytac

    #2
    Hello aytacasan, and thank you for your question. To your first two questions, limit or MIT orders can only be placed at the market price or better (better following the adage "buy low, sell high"), and stop orders can only be placed at the market price or worse. Since the ask price is above the market price and the bid price is below ("ask - above, bid below"), this means that ask prices are going to be useful for profit targets for orders entered on the long or buy side of the market, and stop loss orders entered on the short or sell side of the market.

    So you are correct on points one and two, but hopefully that gives you some insight as far as why this is the case.

    To your third question, the last traded price is either the bid or the ask price, depend on which was submitted most recently. I typically refer to this as though it was a separate price and call this price the market price, as when you submit market orders your goal will be to place the order as close to this price as possible, and entering a price different from this constitutes slippage.

    To your fourth question, please see this publicly available link for general information, as "tick series" is a term that is used in a lot of different ways, http://www.investopedia.com/terms/t/tickindex.asp . In NinjaTrader, this can also refer to a bar interval type, such as a 150 Tick bar.

    Please let us know if there are any other ways we can help.
    Jessica P.NinjaTrader Customer Service

    Comment


      #3
      Hello Jessica,

      I really appreciate your detailed explanations. But because of i did not ask clearly my fourth question there is misunderstanding. Sorry about that, i want to clarify my question and ask some other questions again related with forth question;

      I asked fourth question about strategy testing via strategy analyzer. You know that when we do back-test we can only use OHLCV data. If we want to use ticks for test strategy we have some solutions on NT. Some of them, chang order fill resolution from standard to high or add tick data series and simulate tick by tick test via code (actually orders opening/closing from selected tick price vs bar's open/close price). And when i talk about tick data series actually talk about the second approach.

      1. When i set order fill resolution to high NT probably using tick data at background but which is using?
      AddDataSeries(BarPeriodType.Bid, 1)
      AddDataSeries(BarPeriodType.Ask, 1)
      AddDataSeries(BarPeriodType.Tick, 1)
      AddDataSeries(BarPeriodType.Last, 1)

      2. AddDataSeries(BarPeriodType.Tick, 1) and AddDataSeries(BarPeriodType.Last, 1) are the same thing?

      3. Is this assumption correct? When we test strategy that open/close orders with limit orders and/or using stoploss/takeprofit limit orders we can use both Bid/Ask data series for better back-test. And when our orders type only market orders add last data series is best solution.

      4. NT have any other option for do realistic/tick by tick strategy back-tests?

      Thanks,
      Aytac
      Last edited by aytacasan; 02-23-2017, 04:04 PM.

      Comment


        #4
        Thank you for this clarification. I will answer your questions slightly out of order.

        2. Yes
        1. Because of 2, you can omit either the Tick or Last series
        3. The High Fill Resolution feature will allow you to add a Tick (Last) series without any custom coding for the purpose of backtesting. You will not have to enter a BarsInProgress index in your trades to use this series.
        Jessica P.NinjaTrader Customer Service

        Comment


          #5
          You are so fast Jessica, because of that you posted your answers before i added plus one question please answer this question too.

          Comment


            #6
            To your 3rd question, I'm not really sure what's meant by better backtesting here, but you will want to review this chart for information regarding how virtual bars are built.

            Jessica P.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by DanielTynera, Today, 01:14 AM
            0 responses
            2 views
            0 likes
            Last Post DanielTynera  
            Started by yertle, 04-18-2024, 08:38 AM
            9 responses
            40 views
            0 likes
            Last Post yertle
            by yertle
             
            Started by techgetgame, Yesterday, 11:42 PM
            0 responses
            12 views
            0 likes
            Last Post techgetgame  
            Started by sephichapdson, Yesterday, 11:36 PM
            0 responses
            2 views
            0 likes
            Last Post sephichapdson  
            Started by bortz, 11-06-2023, 08:04 AM
            47 responses
            1,615 views
            0 likes
            Last Post aligator  
            Working...
            X