[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 30
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
Apologies for being off topic. Please advise if anyone knows an EA that would close
I would like to ask you if you know an Expert Advisor which will close all positions in your account once the total TP and SL have been reached. I am grateful in advance.
Apologies for being off topic. Please advise if anyone knows an EA that would close
I would like to ask you if you know an Expert Advisor which will close all positions in your account once the total TP and SL have been reached. Thanks in advance.
Once all of the take and loss has been reached, the positions will all be closed anyway. Please state the question more precisely
I have a problem I press the compile button and get 2 errors:
1. In the line:
int Fun_Error(int Error) // Error handling function
'(' - function definition unexpected C:\Users\Paul\Desktop\Heiniken M.mq4 (209, 14)
2. In the line:
default: Alert('An unidentified error has occurred', Error); // Other options
'Error' - variable not defined C:\Users\Pàâåë\Desktop\Heiniken M.mq4 (242, 53)
I have a question - is Fun_Error() a standard function or it needs to be written (I took this part of code from another EA)?
The 2nd error follows from the first one, I cannot understand what may be the problem((.
change the variable name to err for example
change the variable name to e.g. err
now it can't find err(
I wanted my Expert Advisor to send a small report to the mail at 8 and 11:30 a.m., like this
if(Hour()==8 && Time[z]!= LastTimeHS)
SendMail(""," Balanse "+AccountBalance()+" "+AccountCurrency()+
" \n Total Orders " +OrdersHistoryTotal()+
" \n Open Orders "+OrdersTotal()+
" \n Orders Profit "+AccountProfit()+
" \n Equity " +AccountEquity()+" "+AccountCurrency());
LastTimeHS = Time[z];
return;
if(Hour()==11 && Minute()==30 && Time[z]== LastTimeHS)
SendMail(""," Balanse "+AccountBalance()+" "+AccountCurrency()+
" \n Total Orders " +OrdersHistoryTotal()+
" \n Open Orders "+OrdersTotal()+
" \n Orders Profit "+AccountProfit()+
" \n Equity " +AccountEquity()+" "+AccountCurrency());
LastTimeHS = 0;
return;
This code cuts off Expert Advisor for some reason (I put it in the wrong place, at the beginning) and sends e-mail every 5 minutes (seems to be on every new candle). Please help me to understand what I messed up, I can't understand what's wrong...
Once all the take and loss has been reached, all the positions will be closed anyway. You might want to be a little more specific.
Let's say I have 5 different positions open (they have no TP and SL), once the total profit will be +$100 or -$100, I need to close all orders, regardless
whether they are on the plus side or the minus side