vushel:
where were my problems ?
'\end_of_program' - unbalanced left parenthesis C:\Program Files (x86)\MetaTrader 4\experts\My Expert Advisor.mq4 (112, 2)
this is my first EA ,
thanks :)
if(((((x) || x) && x) && BuyMarketCount(Symbol(),MagicNumber) == 0) //i censor the method
must be
if((((x) || x) && x) && BuyMarketCount(Symbol(),MagicNumber) == 0) //i censor the methodand x is not defined
angevoyageur:
must be
if i delete '(' the the compilor showes me thos errors :
Compiling 'My Expert Advisor.mq4'... 'BuyMarketCount' - function is not defined C:\Program Files (x86)\MetaTrader 4\experts\My Expert Advisor.mq4 (81, 102) 'SellMarketCount' - function is not defined C:\Program Files (x86)\MetaTrader 4\experts\My Expert Advisor.mq4 (84, 10) 'CloseAllSellOrders' - function is not defined C:\Program Files (x86)\MetaTrader 4\experts\My Expert Advisor.mq4 (86, 9) 'OpenBuyOrder' - function is not defined C:\Program Files (x86)\MetaTrader 4\experts\My Expert Advisor.mq4 (90, 19) 'CalcBuyStopLoss' - function is not defined C:\Program Files (x86)\MetaTrader 4\experts\My Expert Advisor.mq4 (99, 30) 'AdjustBelowStopLevel' - function is not defined C:\Program Files (x86)\MetaTrader 4\experts\My Expert Advisor.mq4 (100, 43) 'CalcBuyTakeProfit' - function is not defined C:\Program Files (x86)\MetaTrader 4\experts\My Expert Advisor.mq4 (102, 32) 'AdjustAboveStopLevel' - function is not defined C:\Program Files (x86)\MetaTrader 4\experts\My Expert Advisor.mq4 (103, 47) 'AddStopProfit' - function is not defined C:\Program Files (x86)\MetaTrader 4\experts\My Expert Advisor.mq4 (106, 9) 'else' - unexpected token C:\Program Files (x86)\MetaTrader 4\experts\My Expert Advisor.mq4 (109, 6) 'break' - 'break' or 'continue' used within some cycle only C:\Program Files (x86)\MetaTrader 4\experts\My Expert Advisor.mq4 (109, 11) 11 error(s), 0 warning(s)

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
where were my problems ?
'\end_of_program' - unbalanced left parenthesis C:\Program Files (x86)\MetaTrader 4\experts\My Expert Advisor.mq4 (112, 2)
this is my first EA ,
how i cancleing the SL OR TP when one of the command has been filled ?
thanks :)