I've'implanted' the checks into your code. Hope it works.
It believes same magic number and same symbol only.
Additionally: You really ought to use the new style MQL4; it makes things easier and clearer, because right now you've got a lot local variables that overlay global variables, although they are intended to be the same I guess.
https://www.nigeriaforextrading.com/...4794220529.mq4