Thanks for your notes.
Since you are processing this logic in BarsInProgress 1 it is likely drawing at the low of the added series bar when it closes.
Ultimately, you would need to thoroughly test and debug your logic and compare it to a chart set to the added series to understand and confirm how it is behaving.
Once you understand how your logic is evaluating, you could try placing your logic in BarsInProgress 0 so it processes on the primary series to see if this suits your overall goal..
Comment