Telegram Alerts is a tool which send alerts on trades to Telegram
If you want to see this utility in action without installing it, join the demo group in Telegram : MT45Alerts
string directory=”Telegram Alerts/” IntegerToString(AccountInfoInteger(ACCOUNT_LOGIN)) “/signals”;
string filename=”Test.txt”;
string signal=”BUY EURUSD 1.20202 SL=1.201 TP=1.203″;
saveStringFile(signal,directory “/” filename);
bool saveStringFile(string s,string fileName)
{
int handle=FileOpen(fileName,FILE_WRITE|FILE_TXT);
if(handle==INVALID_HANDLE)
return(false);
FileWriteString(handle,s);
FileClose(handle);
return(true);
}
string directory=”Telegram Alerts/” IntegerToString(AccountInfoInteger(ACCOUNT_LOGIN)) “/signals”;
string filename=”Test.txt”;
string signal=”BUY EURUSD 1.20202 SL=1.201 TP=1.203″;
saveStringFile(signal,directory “/” filename);
bool saveStringFile(string s,string fileName)
{
int handle=FileOpen(fileName,FILE_WRITE|FILE_TXT);
if(handle==INVALID_HANDLE)
return(false);
FileWriteString(handle,s);
FileClose(handle);
return(true);
}