Thank you. I mean I change the closing rule to my closing rule since the original one doesn't perform as I want.
I am not a programmer and trying to learn. I'll try to recode what you said because I'm not fully understand all you said. Thank you.
I made changed based on whroeder1's suggestion. But EA still not close the positions. I'm not sure if I've done it correctly. Any further recommend for this issue? Thanks.