Script can't open position on broker with suffix

 

I am not very familiar with coding

I have a script to force open 2 position or make 2 pending order on certain price


Problem 1 :

I can't use that script on broker with suffix, eg : eurusdb. That script make looping, so my position become more than 2.

but i can use on broker with symbol like, eg : eurusd or eurusd. (with dot on suffix)

What I must change on that script? 


Problem 2 :

I want open 2 position on certain pair, but the script sometimes just open one position.

How to check that pair have 2 position? So if I just have one position, that script make one position again


Thank you

Files:
 
spirit:


I can't use that script on broker with suffix, eg : eurusdb. That script make looping, so my position become more than 2.

but i can use on broker with symbol like, eg : eurusd or eurusd. (with dot on suffix)

What I must change on that script?

I see nothing wrong on the script. It doesn't care about the adornments. Therefor the problem is with your account. Did you log in with the investor password?


 
The script makes loop on symbol eurusdb, so it makes position continously until I close mt4
Reason: