I have tried so many things. I'm trying to make my strategy move the stop loss or take profit. It seems like no matter what I do I can't get it to do it.
To give a clear example, I'm trying to make it so that if a candle has less than N percent top wick, and closes above the sell entry, it exits the trade. I have it properly detecting the candle has less than N percent and needs to exit, but it closes over my entry and fits the percent requirement, and nothing happens. There's a few more of similar conditions i'm trying to do, but if someone could help me with just that part that'd be incredible.

Comment