MQL4 ORDERS WONT OPEN

 

hi i have a roblem with my ea. i programmed it and it works perfectly in strate tester but not in live demo.

i have checked live trading allowed, pressed the button that allows trading, and i have checked auto trading allowed when my ea... what am i doing wrong!!!

the orders wont open, but it gives me a notifications that my price target hit

(there might be something wrong with the global variables)

 
LanceHardwood:

hi i have a roblem with my ea. i programmed it and it works perfectly in strate tester but not in live demo.

i have checked live trading allowed, pressed the button that allows trading, and i have checked auto trading allowed when my ea... what am i doing wrong!!!

the orders wont open, but it gives me a notifications that my price target hit

(there might be something wrong with the global variables)

Do you have error handling set up?  

Refer https://docs.mql4.com/check/getlasterror

Set  up your "getlasterror" handling on your MT4 system calls, use "Print" or MessageBox to display error codes, look them up in the MT4 Reference and go from there ...

HTH

John  

GetLastError - MQL4 Documentation
GetLastError - MQL4 Documentation
  • docs.mql4.com
GetLastError - MQL4 Documentation - MQL4 Documentation
 
LanceHardwood:

hi i have a roblem with my ea. i programmed it and it works perfectly in strate tester but not in live demo.

i have checked live trading allowed, pressed the button that allows trading, and i have checked auto trading allowed when my ea... what am i doing wrong!!!

the orders wont open, but it gives me a notifications that my price target hit

(there might be something wrong with the global variables)

You must show your code, we can't help you without the code