在我的MQL4代码中,我能够轻松地将纯文本从mt4发送到电报。然而,我在向代码中添加电报符号时遇到了困难,因此它在电报中输出。我已经搜索了很多东西,我找到的都是使用php和/或python的示例。尝试使用普通unicode和字节,但均无效。请参阅下面的代码
if(selSig==1)
{
string msg=StringFormat("u'\U00002757' The New Signal\n --------- \nSymbol: %s\nTimeframe:
%s\nType: Sell\nPrice: %s\nTake Profit: %s\nStop Loss: %s\nTime: %s",
_Symbol,
func_timeFrameToString(_Period),
DoubleToString(sigEntry,_Digits),
DoubleToString(sigTp,_Digits),
DoubleToString(sigSl,_Digits),
TimeToString(time[0]));
int res=bot.SendMessage(InpChannelName,msg);
Print(msg);
if(res!=0)
Print("Error: ",GetErrorDescription(res));
}
}
任何链接或线程的帮助都将不胜感激
目前没有回答
相关问题 更多 >
编程相关推荐