EA works on demo but not on real account

 

I need your help. ..

I am a newbie and I have written an EA which works fine on the demo account. Today I used a real account and I took error 4051 and no trade was placed, while at the same time, the EA was placing trades on the demo account...

any help???

 
mairoulii, there may be tons of reasons. For example on demo accounts brokers usually set minstoplevel to 0 and on real account its much more, which may cause your orders not placed. Your EA may be over optimised to demo data. etc etc.
 

where can I read information about that???

 

well, i used MarketInfo() and I found that my parameters are ok... no problem with stoplevel neither with lots. I cannot understand why it works on demo account and on real accounts throws error 4051..,.

 
send a screenshoot from journal and experts tab please here
 

I am a newbie and I don't know where to find journal and experts tab... Can you please help me?

Reason: