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:	244
Size:	264.6 KB
ID:	1131808Click image for larger version

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

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

Name:	11_2_screenshot.png
Views:	244
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 NullPointStrategies, Yesterday, 05:17 AM
            0 responses
            70 views
            0 likes
            Last Post NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            143 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            76 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            47 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            51 views
            0 likes
            Last Post TheRealMorford  
            Working...
            X