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

What Bars does EnterLong() use for market price? What about Ask/Bid?

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

    What Bars does EnterLong() use for market price? What about Ask/Bid?

    When running back tests, my primary Bars are 1 minute bars with LAST price.
    I added 1 tick bars to the data series..

    Question 1: Does the 1 tick bars data series use LAST by default? I see a way to specify ASK, BID, or LAST, but I don't know which one is used by default. https://ninjatrader.com/support/help...r_handling.htm

    Question 2: When I EnterLong(), is the price that is used the LAST of the primary bars? Wouldn't it make more sense to use the ASK for the Market order when backtesting?

    #2
    Hello stokhastic,

    Based on the description, that would be the Last price being used.

    The platforms input series are very specific as you noted there are ways to specifically choose ask or bid in addition to last data. The series you apply the strategy too will be the series the strategy ultimately uses and also what secondary series would inherit from if it is not specifically said that you want ask or bid data. If the primary is Last data, the secondary series would also use Last data.

    When you enter long this will depend on what series called OnBarUpdate at that time. If the primary series called OnBarUpdate, the Primaries Last price would be used / a market order would be submitted and filled around that price. If the secondary called OnBarUpdate, the order would instead submit to the second series which may be Last or whatever you specified for that series.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by warreng86, 11-10-2020, 02:04 PM
    7 responses
    1,360 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by Perr0Grande, Today, 08:16 PM
    0 responses
    5 views
    0 likes
    Last Post Perr0Grande  
    Started by elderan, Today, 08:03 PM
    0 responses
    9 views
    0 likes
    Last Post elderan
    by elderan
     
    Started by algospoke, Today, 06:40 PM
    0 responses
    10 views
    0 likes
    Last Post algospoke  
    Started by maybeimnotrader, Today, 05:46 PM
    0 responses
    14 views
    0 likes
    Last Post maybeimnotrader  
    Working...
    X