1、NormalizeDouble():将浮点数四舍五入到指定的精度。 2、StringFormat(): 根据预设格式将数字转换为字符串。 3、IntegerToString(): 将整数转换为字符串。 4、DoubleToString()/DoubleToStr(): 将double类型浮点数转换为字符串。 5、StringToDouble()/StrToDouble(): 将数字的字符串转换为double类型。 6、St...
String containing a symbol representation of a number with the specified accuracy. Example: Print("DoubleToString(120.0 + M_PI) : ",DoubleToString(120.0+M_PI)); Print("DoubleToString(120.0 + M_PI,16) : ",DoubleToString(120.0+M_PI,16)); Print("DoubleToString(120.0 + M_PI,-16) : "...
StringTrimRight 在字符串的右边切断线路供应字符,空间和标号 字符串函数 StrToDouble 转换数字代表字符串到双精度类型 函数转换 StrToInteger 转换包含字符值代表字符串到整数类型的值 函数转换 StrToTime 转换"yyyy.mm.dd hh:mi" 格式字符串到日期时间类型 函数转换 StructToTime MqlDate Time结构类型...
while(FileIsEnding(h) == false) { string readValue = FileReadString(h); if(i == 0) 下单量 = StringToDouble(readValue); if(i == 1) 止盈点数 = StringToInteger(readValue); if(i == 2) 止损点数 = StringToInteger(readValue); i++; } } } else { // 程序外部修改了参数情况 int h...
void PlaySound(string filename) 本函数播放一个声音文件。文件必须放在 terminal_dir\sounds 目录或子目录内。 参数: filename - 音频文件名称。 示例: if(IsDemo()) PlaySound("alert.wav"); Back to Top MarketInfo() – 获取市场相关信息 double MarketInfo(string symbol, int type) ...
Print("一个点价格:" + DoubleToStr(MarketInfo(Symbol(),MODE_POINT), Digits)); Print("小数位数:" + MarketInfo(Symbol(), MODE_DIGITS)); Print("点差: " + MarketInfo(Symbol(), MODE_SPREAD)); Print("止损离市价多少个点:" + MarketInfo(Symbol(), MODE_STOPLEVEL)); ...
string DoubleToStrMorePrecision(double number, int precision);string IntegerToHexString(int integer_...
FileReadNumber109FileReadString从当前文件位置读取字串符110FileSeek文件指针移动110FileSize文件大小111FileTell文件指针的当前位置111FileWrite写入文件112FileWriteArray一个二进制文件写入数组112FileWriteDouble一个二进制文件以浮动小数点写入双重值113FileWriteInteger一个二进制文件写入整数值113FileWriteString当前文件位置函数...
AccountName()AccountInfoString(ACCOUNT_NAME); AccountNumber()AccountInfoInteger(ACCOUNT_LOGIN); AccountProfit()AccountInfoDouble(ACCOUNT_PROFIT); AccountServer()AccountInfoString(ACCOUNT_SERVER); AccountStopoutLevel()AccountInfoDouble(ACCOUNT_MARGIN_SO_SO); ...
此构造函数重置string类型的所有结构成员,并正确初始化动态数组的对象。对象指针在MQL4中,可以动态创建...