Hello,

Any idea how I might force a trade to be "Lapsed" so that it will still contribute to trade stats, PnL, etc.

The standard contractCheck() function doesn't work for me, so I am writing my own version.

When an option is externally assigned/exercised, by the broker, contractPostion() would return 0. Then I want to "lapse the open options trade", just like contractCheck(), then check the UL for a specific lot amount before I close the UL. Current contractCheck() blindly closes any and all UL, which is problematic for me.

I can't exitTrade() the options trade because it doesn't exist in the broker anymore.

If I cancelTrade() the options trade, it won't contribute to the various stats.

Thanks!

Last edited by SBGuy; 03/23/23 22:47.