@laudable222 You should insert it exactly where I show in my example. You need to type the EXACT name of the symbol, and the type ' = 1 ' (without quotes). And don't forget to click on 'update' at the bottom of tha window. Otherwise it won't be saved.
HI.
you should filter your strategy for open positions by "If position" block in Mt5 or "If trade" block in MT4.
if you did that then i see your algorithm have a problem with the close position.
can you share your prj?