// Convert timeframe to the int value (number of seconds in 1 Day): tf = timeframe.in_seconds(i_tf) plot(tf) 返回值 timeframe的一根K线中的秒数的 int 表示形式。 参数 timeframe(simple string) 时间周期。可选。默认值为timeframe.period。 备注 对于timeframe>= '1M' 函数根据一个月中的 ...
int init() {string short_name;IndicatorBuffers(1);SetIndexStyle(0,DRAW_LINE);SetIndexBuffer(0,VixBuffer);//SetIndexBuffer(1,TempBuffer);short_name="Ultimate Divergence ("+VIX_Period+")";IndicatorShortName(short_name);SetIndexLabel(0,short_name); SetIndexDrawBegin(0,VIX_Period);return(0...
case STRING_T: val = new string_value(this->to_string()); break; default: CONVERT_ERROR(); break; } return val; } gc_ptr<value> int_value::operator-() const { return new int_value(-_val); } VALUE_IO_TEMPLATE(int_value) VALUE_OP_TEMPLATE_C(int_value, *, int_value) VALUE_...
() const override; virtual std::string to_string() const override; virtual gc_ptr<value> operator-() const override; virtual gc_ptr<value> convert(int type) const override; virtual gc_ptr<value> operator*(const value &val) const override; virtual gc_ptr<value> operator/(const value &...
pine str.tonumber(string) 返回值如果包含有效数字,为字符串的浮点型,否则为na。 参数 string (series string) int或float的字符串表现形式。 str.format 将格式字符串和值转换为格式化字符串。格式字符串可以包含文字文本和每个要格式化的值的大括号{}中的一个占位符。每个占位符包括将替换它的必需参数的指数(...
b2h -- convert binary to decimal USAGE: b2h [-h] binarynum OPTIONS: -h help text EXAMPLE: b2h 111010 will return 58 HELP exit 0 } error() { # print an error and exit echo "$1" exit 1 } lastchar() { # return the last character of a string in $rval ...
[AS_HELP_STRING(--with-welcomemsg,Support welcome.msg backward compatibility (deprecated))], [ if test "x$withval" = "xyes" ; then AC_DEFINE(WITH_WELCOME_MSG,,[with welcomemsg]) fi ]) AC_ARG_WITH(uploadscript, [AS_HELP_STRING(--with-uploadscript,Allow running an external scri...
<scriptlanguage="JavaScript"> <!-- functionshowitem(id,name) { //打开弹出式页面 //return ("<span><a href='"+id+"' target=_blank>"+name+"</a></span><br>") //在框架中打开 return("<span><a href='#' onclick=\"url('"+id+"');\">"+name+"</a></span><br>") ...
string &type_to_name(int type); const int type; value(int type); virtual ~value() {} virtual void input(); virtual void output() const; virtual gc_ptr<value> copy() const; virtual std::string to_string() const; virtual const std::string &type_name() const; virtual gc_ptr<value...
// Get chart timeframe: i_tf = input.timeframe("1D") // Convert timeframe to the int value (number of seconds in 1 Day): tf = timeframe.in_seconds(i_tf) plot(tf) 返回值 timeframe 的一根K线中的秒数的 int 表示形式。参数timeframe (simple string) 时间周期。可选。默认值为time...