28 lines
No EOL
1.2 KiB
MQL5
28 lines
No EOL
1.2 KiB
MQL5
//+------------------------------------------------------------------+
|
|
//| SendStatus |
|
|
//| Copyright 2017, Ricardo de Jong |
|
|
//| http://www.companyname.net |
|
|
//+------------------------------------------------------------------+
|
|
|
|
void OnStart()
|
|
{
|
|
SendStatus();
|
|
}
|
|
//+------------------------------------------------------------------+
|
|
//| |
|
|
//+------------------------------------------------------------------+
|
|
void SendStatus() //The name of the function for sending account information
|
|
{
|
|
// SendMail function
|
|
|
|
double AccountBalance=AccountInfoDouble(ACCOUNT_BALANCE);
|
|
double AccountEquity=AccountInfoDouble(ACCOUNT_EQUITY);
|
|
double AccountProfit=AccountInfoDouble(ACCOUNT_PROFIT);
|
|
|
|
string sp="|"; // Using this as a spacer
|
|
|
|
string header=(AccountBalance+sp+AccountEquity+sp+AccountProfit); // Using only the e-mail header information, no use for subtext.
|
|
|
|
SendMail(header,"");
|
|
}
|
|
//+------------------------------------------------------------------+ |