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
Such as If (Timeframe==Period_H1) then.... For some reason I can't search the documentation for MT4 anymore. Wish they would fix it
solution found
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
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