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 AttiM, 02-14-2024, 05:20 PM
    11 responses
    184 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by fernandobr, Today, 09:11 AM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by timmbbo, Today, 08:59 AM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by KennyK, 05-29-2017, 02:02 AM
    2 responses
    1,281 views
    0 likes
    Last Post marcus2300  
    Started by itrader46, Today, 09:04 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Working...
    X