Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Stops operating properly after 7-8 trades

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

    Strategy Stops operating properly after 7-8 trades

    I have been working on modifying a strategy to use both time and tick data series, with the time series acting as the primary (30m) and the secondary is a 150 tick series of the same instrument.

    Once I got the strategy going, I began running into an odd issue where the strategy will trade for 5-9 trades, then simply stop. I noticed this because I back-tested from the last two weeks, then incrementally pushed the start date back, and noticed very quickly that no matter how much time I added, the strategy was only executing 5-9 trades depending on the start date. It becomes obvious when you add two weeks and the trades taken in the back two weeks drop off after moving up the start date. The conditions to enter the trade shouldn't have been altered simply because the strategy is processing more time.

    Is this some weird bug I have stumbled upon?

    #2
    Click image for larger version

Name:	11_16_screenshot.png
Views:	248
Size:	264.6 KB
ID:	1131808Click image for larger version

Name:	12_1_screenshot.png
Views:	250
Size:	218.5 KB
ID:	1131809Click image for larger version

Name:	10_19_screenshot.png
Views:	251
Size:	301.2 KB
ID:	1131810Click image for larger version

Name:	11_2_screenshot.png
Views:	247
Size:	293.5 KB
ID:	1131811

    Comment


      #3
      When I hook up with the debugger, and start stepping through, as far as I can see the data is at least valid, I havent tried seeing if the data is not updating or something along those lines. Whatever is going on its certainly a weird situation. I am hopping I just am using something wrong and this is a known side-effect.

      Comment


        #4
        Is there anyway to delete the post, I figured out the issue.

        Comment


          #5
          Hello BraisedInBlue,

          Thanks for posting.

          Instead of deleting the thread, could you share your solution so that other users browsing the forum that may have similar issues can have a hint at what the underlying issue was?

          We look forward to assisting.

          Comment


            #6
            Ultimately it was a bug in my strategy, that boiled down to a data comparison that I thought was apples to apples in the secondary times series (var > rollingAvgVar) where the rolling average was updated based on the 30 min bar, and the var was tick data based.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by CarlTrading, 03-31-2026, 09:41 PM
            1 response
            80 views
            1 like
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            40 views
            0 likes
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            64 views
            2 likes
            Last Post CaptainJack  
            Started by CarlTrading, 03-30-2026, 11:51 AM
            0 responses
            64 views
            0 likes
            Last Post CarlTrading  
            Started by CarlTrading, 03-30-2026, 11:48 AM
            0 responses
            54 views
            0 likes
            Last Post CarlTrading  
            Working...
            X