Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Is there anyway to simulate partial fills on a Playback connection

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

    Is there anyway to simulate partial fills on a Playback connection

    Hello:

    I am wondering if there is a way to simulate partial fills on a playback connection. I set the Tools -> Options -> Trading -> Simulator- Force Partial Fills to true but i am guessing this is only when using the simulation data feed.

    Thanks

    #2
    Hello ntram,

    Thank you for your inquiry.

    Enforce partial fills are for all simulated orders (orders placed on the Sim101 account).

    Playback/Market Replay allows you to replay past data as if it were running realtime. If you see the partial fill occur at a certain time in real time, you could try replicating the behavior at that specific time when connected to Playback. You won't be able to "force" any partial fills to occur with Market Replay data since the results follow the data (i.e. if it did not occur in real time, it would not occur during the replay either).

    Please let us know if you have any further questions.

    Comment


      #3
      Hello Gaby,

      Thank you for your response. I am just not able to simulate a partial fill in my playback, even though partial fills happen on live data. Perhaps, there is a different way to solve my problem. When my strategy triggers an entry, in the OnExecutionUpdate method, I create an OCO for a profit target and a stop loss. I only have one order/position at any time, so whenever the target or stop is triggered, my position should be flat. The issue i am having when there is a partial fill is the quantity of the OCO seems to get messed up and i am always left with yet another open position. I use the SubmitOrderUnmanaged methods to place my orders.

      Looking at the logs a little more, i am wondering what the quantity parameter in the OnExecutionUpdate actually mean. In the logs, i see there is a quantity and a Filled value.

      Appreciate any help.


      Thanks
      Last edited by ntram; 05-19-2024, 09:23 AM. Reason: Looked at the logs and saw 2 values quantity and filled

      Comment


        #4
        Hello ntram,

        Thank you for your response.

        In order to better understand how the code is working, it will be necessary to use Print to see how the conditions are evaluating and enable TraceOrders to see if orders are being submitted, ignored, rejected, or cancelled.

        Below is a link to a forum post that demonstrates using prints to understand behavior and includes a link to a video recorded using the Strategy Builder to add prints.


        Enable TraceOrders, print the time of the bar and all values used in the conditions that submit entry orders. Include labels for all values and comparison operators.

        Let me know if you need any assistance creating a print or enabling TraceOrders.

        Save the output from the output window to a text file and provide this with your reply.

        I'll be happy to assist with analyzing the output.​

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Yesterday, 05:17 AM
        0 responses
        62 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        134 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        75 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        45 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        50 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X