Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy won't backtest...

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

    Strategy won't backtest...

    I have a strategy written, it's a little complex, runs on tick bars with a data Added for minute bars, defaults to calculate on bar close =true. The idea is to have "look inside bar backtesting" and a backtest that is exactly the same as running the strategy on realtime tick bars. It works exactly as planned going forward on Market Replay data on a chart but when backtested it gets no trades... Any clues as to what I'm doing wrong here?

    #2
    If you can provide simple as possible isolated cases we can provide some further support. Please try using some print functions in backtesting to see what is going on. TraceOrders will be helpful too.


    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Also: pls check for funny messages in the logs

      Comment


        #4
        I have print messages for every variable, it gives me a snapshot of the entire strategy in the Output window every tick when running on charted tick data but nothing shows up during a backtest. I added TraceOrders to the strategy and nothing shows up also...

        Setting the minimum bars before beginning execution of code is a little sticky, it would be straightforward if I could use the Added data for that but I have to use the primary data and guess how many ticks will go by before I have enough minute bars to start....

        Nothing is showing up in the log.

        I'll provide some code after awhile...

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by bortz, 11-06-2023, 08:04 AM
        47 responses
        1,608 views
        0 likes
        Last Post aligator  
        Started by jaybedreamin, Today, 05:56 PM
        0 responses
        9 views
        0 likes
        Last Post jaybedreamin  
        Started by DJ888, 04-16-2024, 06:09 PM
        6 responses
        19 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by Jon17, Today, 04:33 PM
        0 responses
        6 views
        0 likes
        Last Post Jon17
        by Jon17
         
        Started by Javierw.ok, Today, 04:12 PM
        0 responses
        16 views
        0 likes
        Last Post Javierw.ok  
        Working...
        X