Email notifications work fine, check your email MT4/5 settings.
You go to MT4/5 >> Tools >> Options >> Email tab and you fill in the necessary details for your email and server, in order to receive your email notifications. Below is an example of the details that are required and a list of the most popular email providers and their SMTP settings.
In the SMTP server field you need to put your email provider’s SMTP address, you can see most of the popular providers below.
In the SMTP login field you need to put your full email, for example:johnsmith@gmail.com
In the SMTP password field, you need to put your email’s password.
In the From and To fields, you need to put your full name a comma and then your email again, for example: John Smith, johnsmith@gmail.com
I am trying to code my system however after compiling it returns the "not all control paths return a value" ---------------------------------- string buyorder() { if((iMA(Symbol(),PERIOD_CURRENT,200,0,MODE_SMA,PRICE_MEDIAN,1)-(10*Point))<=iLow(Symbol(),0,1)&& (iMA(Symbol(),PERIOD_CURRENT,200,0,MODE_SMA,PRICE_MEDIAN,1)+(10*Point))>=iLow(Symbol(),0,1)&& (((iMA(Symbol(),PERIOD_CURRENT,200,0,MODE_SMA,PRICE_MEDIAN,2)-(10*Point))<=iLow(Symbol(),0,2)&& (iMA(Symbol(),PERIOD_CURRENT,200,0,MODE_SMA,PRICE_MEDIAN,2)+(10*Point))>=iLow(Symbol(),0,2)) ||iLow(Symbol(),0,2)>=iMA(Symbol(),PERIOD_CURRENT,200,0,MODE_SMA,PRICE_MEDIAN,2)))
string buyorder(){ <<<<<<<< function returns a string.
if(condition) statement;
<<<<<<<<<<<<<<<<<<<<<<<<<<< what are you returning here?
} <<<<<<<<<<<<<<<<<<<<<<<<<< end of function.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Please help me solve the problem
Please search for other related posts besides the ones below.
----------------------------------
string buyorder()
{
if((iMA(Symbol(),PERIOD_CURRENT,200,0,MODE_SMA,PRICE_MEDIAN,1)-(10*Point))<=iLow(Symbol(),0,1)&&
(iMA(Symbol(),PERIOD_CURRENT,200,0,MODE_SMA,PRICE_MEDIAN,1)+(10*Point))>=iLow(Symbol(),0,1)&&
(((iMA(Symbol(),PERIOD_CURRENT,200,0,MODE_SMA,PRICE_MEDIAN,2)-(10*Point))<=iLow(Symbol(),0,2)&&
(iMA(Symbol(),PERIOD_CURRENT,200,0,MODE_SMA,PRICE_MEDIAN,2)+(10*Point))>=iLow(Symbol(),0,2))
||iLow(Symbol(),0,2)>=iMA(Symbol(),PERIOD_CURRENT,200,0,MODE_SMA,PRICE_MEDIAN,2)))
return("Please_Buy");
}
Please edit your (original) post and use the CODE button (or Alt+S)! (For large amounts of code, attach it.)
General rules and best pratices of the Forum. - General - MQL5 programming forum #25 (2019)
Forum rules and recommendations - General - MQL5 programming forum (2023)
Messages Editor
Example
string test="5+7";
i want the result be 12 in integer
how can i sum two integers that in same string ?
Example
string test="5+7";
i want the result be 12 in integer
operator