Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

backtesting

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

    backtesting

    Hi,

    my strategy has a function for setting a break-even trade. So, if the run-up has reached a certain ticks, the breakeven triggers and the trade exits at plus 1 tick when the price drops.
    I also use the trailtrigger.

    In my live stratgy ( live trading ) this works perfectly!

    However, since this week ( it did work for years! ) it does not show any Be or Trail trades!

    What can be the issue?

    kind regards,

    Rob

    #2
    Hi Rob, please it run with TraceOrders enabled to get a more detailed print in the output window. Also please include prints for debugging in your conditions in the script to adjust the stoploss, so you see exactly when it would be triggered. I take there are no errors in the NT log tab? Did you change anything on the setup like data connection, market or timeframe?
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Hi Bertrand,

      where do i find this Trace orders?
      I have never used this, nor changed it.

      Also, still same data, markets, timeframe etc. Also on other instruments ( gold etc ) it doesn't work. The strategy live does show the breakeven function correctly! That's the weird aspect here..

      Rob

      Comment


        #4
        Hi Rob, this would be enabled as part of your Initialize() method -



        Would the adjustment be set pretty tight so in backtesting it would mostly happen intrabar for your setups?
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Hi Bertrand.

          We still have the same problems concerning backtesting in the strategy-analyzer.
          We have done the things you've said but no solution.

          In brief the problems on the next instruments on backtesting in the strategy analyzer
          -6E, 6J, SI,ZB and GC - orderparameter "stoploss" does function
          -orderparameter "breakeven"doesn't function
          -orderparameter "trail" doesn't function.

          All parameters do function in the strategy in live trading.

          Hope you'll have a solution on this issue.

          Regards,

          Rob.

          Comment


            #6
            Hello robje737,

            Thank you for your update.

            May we review the conditions that trigger the breakeven and trail in your code? Are you using the Set methods or the Exit methods?

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by GussJ, 03-04-2020, 03:11 PM
            16 responses
            3,281 views
            0 likes
            Last Post Leafcutter  
            Started by WHICKED, Today, 12:45 PM
            2 responses
            19 views
            0 likes
            Last Post WHICKED
            by WHICKED
             
            Started by Tim-c, Today, 02:10 PM
            1 response
            9 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by Taddypole, Today, 02:47 PM
            0 responses
            5 views
            0 likes
            Last Post Taddypole  
            Started by chbruno, 04-24-2024, 04:10 PM
            4 responses
            53 views
            0 likes
            Last Post chbruno
            by chbruno
             
            Working...
            X