Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Merging of strategies has P and L issues

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

    Merging of strategies has P and L issues

    I have been backtesting on about 8 weeks data- tweaking a strategy that I realized was biased toward longs and the shorts were letting the side down in terms of profit. So I split them and came up with totally independent way of judging shorts and made it profitable.
    Today I have merged both into one strategy.
    I cant work out how to have a separate profit and stop loss for longs and shorts.
    I tried this in the wizard~ strategy- unrealized P n L set to currency == numeric value
    after this I either put a positive number for a profit target~ 1250 as one condition or as a separate condition- a negative number for a stop loss~ -200.
    In backtesting I wasn't able to achieve the same total profit as the two separate strategies put together because for some reason my stoplosses were smashed through.
    I have basically set up a total of 4 conditions just to handle profit and stop loss for the strategy.
    What am I doing wrong?
    \Thanks
    raycam

    #2
    raycam, you would need to tie the long and short entries to the corresponding long and shorts targets / stops together via the 'from entry signal' parameters. You can set those directly on the 'Stops and Targets' screen in the wizard -

    BertrandNinjaTrader Customer Service

    Comment


      #3
      Thanks- I will give it a go!
      raycam

      Comment


        #4
        Yes yes yes! it worked perfectly. Thank you.

        Comment


          #5
          Great raycam, thanks for reporting back.
          BertrandNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by kaywai, 09-01-2023, 08:44 PM
          5 responses
          601 views
          0 likes
          Last Post NinjaTrader_Jason  
          Started by xiinteractive, 04-09-2024, 08:08 AM
          6 responses
          22 views
          0 likes
          Last Post xiinteractive  
          Started by Pattontje, Yesterday, 02:10 PM
          2 responses
          17 views
          0 likes
          Last Post Pattontje  
          Started by flybuzz, 04-21-2024, 04:07 PM
          17 responses
          230 views
          0 likes
          Last Post TradingLoss  
          Started by agclub, 04-21-2024, 08:57 PM
          3 responses
          17 views
          0 likes
          Last Post TradingLoss  
          Working...
          X