Announcement

Collapse
No announcement yet.

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.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    54 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    130 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    71 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    44 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X