Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

backtests do not take into consideration chronology of trades inside a bar?

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

    backtests do not take into consideration chronology of trades inside a bar?

    Hello,

    I programmed my strategy in Ninja, and I first ran a backtest today, and I dont understand the results of the backtest. For instance, I got a buy signal in the ES yesterday (July 15th), buying at 1089, at 14:40, and this is right; but then there is also a stop loss hit at 1086.75 at 14:40. This is wrong, because once the market hit 1089 yesterday, it never came back to 1086.75; the lowest was 1088.50. I am running the strategy on 5 min charts, and the bar that triggered the signal has a low at 1086, but this was the start of the move, not the end of the move...

    How can I resolve this problem? With such a logic in the simulator, it is impossible to backtest any strategy... My data feed is zenfire. Would imported tick by tick data solve the problem?

    Thank you,
    Guillaume

    #2
    Guillaume, please take a look at the reference sample we have titled backtesting NinjaScript Strategies with an intrabar granularity.
    AustinNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by 00nevest, 04-27-2024, 02:27 PM
    3 responses
    27 views
    0 likes
    Last Post 00nevest  
    Started by Newtrader101, Today, 07:36 AM
    0 responses
    2 views
    0 likes
    Last Post Newtrader101  
    Started by 21laienoch, Today, 07:25 AM
    0 responses
    7 views
    0 likes
    Last Post 21laienoch  
    Started by burtoninlondon, 04-28-2024, 12:38 AM
    1 response
    17 views
    0 likes
    Last Post burtoninlondon  
    Started by MacDad, 02-25-2024, 11:48 PM
    8 responses
    176 views
    0 likes
    Last Post NinjaTrader_Erick  
    Working...
    X