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 Jimmyk, 01-26-2018, 05:19 AM
            6 responses
            835 views
            0 likes
            Last Post emuns
            by emuns
             
            Started by jxs_xrj, 01-12-2020, 09:49 AM
            6 responses
            3,291 views
            1 like
            Last Post jgualdronc  
            Started by Touch-Ups, Today, 10:36 AM
            0 responses
            11 views
            0 likes
            Last Post Touch-Ups  
            Started by geddyisodin, 04-25-2024, 05:20 AM
            11 responses
            62 views
            0 likes
            Last Post halgo_boulder  
            Started by Option Whisperer, Today, 09:55 AM
            0 responses
            9 views
            0 likes
            Last Post Option Whisperer  
            Working...
            X