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 lorem, Yesterday, 09:18 AM
    4 responses
    13 views
    0 likes
    Last Post lorem
    by lorem
     
    Started by Spiderbird, Today, 12:15 PM
    0 responses
    5 views
    0 likes
    Last Post Spiderbird  
    Started by cmtjoancolmenero, Yesterday, 03:58 PM
    12 responses
    42 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by FrazMann, Today, 11:21 AM
    0 responses
    6 views
    0 likes
    Last Post FrazMann  
    Started by geddyisodin, Yesterday, 05:20 AM
    8 responses
    52 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Working...
    X