Hello @7041075956,
I want to clarify that what you are experiencing is not a glitch. It is actually a feature called Re-Entry Reverse, which you might be using in algotest. This feature reverses your initial position from selling options to buying options. To understand how the Re-Entry Reverse feature works, please refer to this URL https://docs.algotest.in/features/re-entry#re-asap--immediate-re-entry-reverse.