3、IntegerToString(): 将整数转换为字符串。 4、DoubleToString()/DoubleToStr(): 将double类型浮点数转换为字符串。 5、StringToDouble()/StrToDouble(): 将数字的字符串转换为double类型。 6、StringToTime()/StrToTime(): 将格式为“yyyy.mm.dd h
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个。
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() ...
use CopyClose,CopyHigh,CopyLow,CopyOpen,CopyTime, CopyTickVolume AccountBalance()AccountInfoDouble(ACCOUNT_BALANCE); AccountCredit()AccountInfoDouble(ACCOUNT_CREDIT); AccountCompany()AccountInfoString(ACCOUNT_COMPANY); AccountCurrency()AccountInfoString(ACCOUNT_CURRENCY); ...
49、me(),TIME_DATE|TIME_SECONDS);公用函数 Common Functionsvoid Alert( . ) 弹出一个显示信息的警告窗口: 输入参数. - 任意值,如有多个可用逗号分割 示例:if(Close0SignalLevel)Alert(Close price coming , Close0,!);string ClientTerminalName()返回客户终端名称示例:Print(Terminal name is ,ClientTerminal...
Comment("账户自由保证金",DoubleToStr(free,2),"\n","Current time is ",TimeToStr(TimeCurrent())); 5、ObjectGet目标属性 double ObjectGet( string name, int index) 函数返回指定物件的属性。检查错误,查看GetLastError()函数。 参见ObjectSet()函数。 参量: name -物件名称。 index -物件属性索引。它可...
Stringconstants字符串常量 15 Colorconstants颜色常数 16 Datetimeconstants日期时间常数 16 Operations&Expressions操作表达式 17 Expressions表达式 17 Arithmeticaloperations算术运算 17 Assignmentoperation赋值操作 17 Operationsofrelation操作关系 18 Booleanoperations布尔运算 18 ...
24、一个可见柱169WindowHandle169WindowIsVisible图表在子窗口中可见170WindowOnDropped170WindowPriceMax170WindowPriceMin171WindowPriceOnDropped171WindowRedraw172WindowScreenShot172WindowTimeOnDropped173WindowsTotal指标窗口数173WindowXOnDropped173WindowYOnDropped174Obsolete functions过时的函数175MetaQuotes Language 4 (...
StrToDouble, Symbol, TerminalCompany, TerminalName, TerminalPath, TimeCurrent, TimeDay, TimeDayOfWeek...