3、IntegerToString(): 将整数转换为字符串。 4、DoubleToString()/DoubleToStr(): 将double类型浮点数转换为字符串。 5、StringToDouble()/StrToDouble(): 将数字的字符串转换为double类型。 6、StringToTime()/StrToTime(): 将格式为“yyyy.mm.dd hh:mi”的字符串转换为日期时间类型 7、TimeToString()/Ti...
TIME_DATE gets result as "yyyy.mm.dd", TIME_MINUTES gets result as "hh:mi", TIME_SECONDS gets result as "hh:mi:ss". Returned value String. Example: stringvar1=TimeToStr(TimeCurrent(),TIME_DATE|TIME_SECONDS); See also PrintFormat(),StrToTime(),StringToTime()...
double free=AccountFreeMargin(); Comment("账户自由保证金 ",DoubleToStr(free,2),"\n","Current time is ",TimeToStr(TimeCurrent())); Back to Top Print() – 输出文本信息 void Print(...) 本函数可以向智能交易日志输出文本信息。参数可以是任意类型,最多64个。
StringToShortArray 符号-wise复制字符串到短整型数组的选定部分 函数转换 StringToTime 转换包括 "yyyy.mm.dd [hh:mi]"格式的时间或者日期字符串到日期时间型 函数转换 StringToUpper 通过存储位置把已选字符串的所有交易品种转为资本 字符串函数 StringTrimLeft 在字符串的左边切断线路供应字符,空间和标号...
49、me(),TIME_DATE|TIME_SECONDS);公用函数 Common Functionsvoid Alert( . ) 弹出一个显示信息的警告窗口: 输入参数. - 任意值,如有多个可用逗号分割 示例:if(Close0SignalLevel)Alert(Close price coming , Close0,!);string ClientTerminalName()返回客户终端名称示例:Print(Terminal name is ,ClientTerminal...
24、一个可见柱169WindowHandle169WindowIsVisible图表在子窗口中可见170WindowOnDropped170WindowPriceMax170WindowPriceMin171WindowPriceOnDropped171WindowRedraw172WindowScreenShot172WindowTimeOnDropped173WindowsTotal指标窗口数173WindowXOnDropped173WindowYOnDropped174Obsolete functions过时的函数175MetaQuotes Language 4 (...
[]开盘价 53 Point点值 53 Time[]开盘时间 53 Volume[]成交量 54 Program Run程序运行 56 Program Run程序运行 56 Imported functions call输入函数调用 57 Runtime errors运行错误 57 Account information账户信息 68 AccountBalance( )账户余额 68 AccountCredit( )账户信用点数 68 AccountCompany( )账户公司名 ...
Stringconstants字符串常量 15 Colorconstants颜色常数 16 Datetimeconstants日期时间常数 16 Operations&Expressions操作表达式 17 Expressions表达式 17 Arithmeticaloperations算术运算 17 Assignmentoperation赋值操作 17 Operationsofrelation操作关系 18 Booleanoperations布尔运算 18 ...
use CopyClose,CopyHigh,CopyLow,CopyOpen,CopyTime, CopyTickVolume AccountBalance()AccountInfoDouble(ACCOUNT_BALANCE); AccountCredit()AccountInfoDouble(ACCOUNT_CREDIT); AccountCompany()AccountInfoString(ACCOUNT_COMPANY); AccountCurrency()AccountInfoString(ACCOUNT_CURRENCY); ...
Comment("账户自由保证金",DoubleToStr(free,2),"\n","Current time is ",TimeToStr(TimeCurrent())); 5、ObjectGet目标属性 double ObjectGet( string name, int index) 函数返回指定物件的属性。检查错误,查看GetLastError()函数。 参见ObjectSet()函数。 参量: name -物件名称。 index -物件属性索引。它可...