Forum

Confused, my EA and scripts work correctly in Demo but not in Live account.

I did run this script to check: if (! AccountInfoInteger ( ACCOUNT_TRADE_EXPERT )) Alert ("Automated trading is forbidden for the account ", AccountInfoInteger ( ACCOUNT_LOGIN ), " at the trade server side"); and got no error message. When the EA detects an Open position, (in demo) it

What is the code to identify current time frame in MT4?

Such as If (Timeframe==Period_H1) then.... For some reason I can't search the documentation for MT4 anymore. Wish they would fix it

Delete this post

solution found

Search not working correctly anymore at mql4.com

a month or 2 ago, I could use Search and find results in all categories but now I get no results under Documentation, Book, or Technical Analysis . I have tried different browsers too

Trouble understanding Return(0);

I have a working EA and want to add this code I found in an old article so no new trades open on Friday . What I don't understand is how the Return(0); operates here (and can't search for it) because it's not in a function but an "if" statement. Where does it return to? It also looks like there's a