Download MetaTrader 5
To add comments, please log in or register
Find out how social trading can improve your profits
LanceHardwood
36
LanceHardwood 2016.02.03 12:07 

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)

John Townsend
83
John Townsend 2016.02.04 09:05  
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
Biantoro Kunarto
13804
Biantoro Kunarto 2016.02.04 09:11  
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
/
To add comments, please log in or register