引用带参数写法1:直接写具体的数字
macd1:stkindi('','macd.macd1(26,12,9)',0,datatype);
引用带参数写法2:用定义好的参数去替代具体的数字
p:=26;
s:=12;
m:=9;
pp:=numtostr(p,0);
ss:=numtostr(s,0);
mm:=numtostr(m,0);
macd1:stkindi('','macd.macd1('&pp&','&ss&','&mm&')',0,datatype);
怎么上面少了一楼?我回复过代码的
要这样写:
p:=26;
s:=12;
m:=9;
pp:=numtostr(p,0);
ss:=numtostr(s,0);
mm:=numtostr(m,0);
macd1:stkindi('','macd.macd1('&pp&','&ss&','&mm&')',0,datatype);