Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Can NT do "intra-bar" backtesting??

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

    Can NT do "intra-bar" backtesting??

    Hello,

    If we write a backtest code in NT that says: Place a Buy order "at market" price if the current price exceeds the previous bar's high price by 1 tick. We also want to run this backtest on "daily" bars (Candlesticks). Let's assume yesterday's daily bar high price was 1.3542 (say on the Euro FX futures). Lets also assume that today's bar (the actual entry bar) high was 1.3630 and today's bar low was 1.3498, and hence today there was a break of yesterday's bar high price.

    Our question for NinjaTrader support staff is as follows: In the NT backtest report will today's BUY entry order be reported at exactly 1.3543 ?? (note that this entry represents a 1 tick break of yesterdays high price).

    In the above example, at what price will NT's backtesting engine report the BUY entry at exactly? We need NT staff to tell us the exact entry price that we would see reported in the backtest performance report??

    Thank you in advance.

    Kind regards,

    Rod

    #2
    Hi Rod, a market order would be filled at the next bar open, as it's essentially the first tradable price after the condition hit - you can however add finer series to your strategy to simulate getting intrabar fills :

    You can submit orders to different Bars objects. This allows you the flexibility of submitting orders to different timeframes. Like in live trading, taking entry conditions from a 5min chart means executing your order as soon as possible instead of waiting until the next 5min bar starts building. You can achieve this by
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Haiasi, Today, 06:53 PM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by ScottWalsh, Today, 06:52 PM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by ScottW, Today, 06:09 PM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by ftsc2022, 10-25-2022, 12:03 PM
    5 responses
    256 views
    0 likes
    Last Post KeyonMatthews  
    Started by Board game geek, 10-29-2023, 12:00 PM
    14 responses
    244 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Working...
    X