c_300:=callstock('000300',vtclose,datatype);
c_if13:=callstock('if13',vtclose,datatype);
差值:=c_300-c_if13;
if abs(差值)>5 and cross(ma(c,5),ma(c,10)) then buy(holding=0,1,market);
c_300:=callstock('000300',vtclose,datatype);
c_if13:=callstock('if13',vtclose,datatype);
差值:c_300-c_if13;
這樣寫是否可以作為指標,加載在附圖?為什么顯示的數值和我想得到的不一樣?并不是當天股指指數和滬深300指數的差值?
c_300:=callstock('000300',vtclose,6,-1);
c_if13:=callstock('if13',vtclose,6,-1);
差值:=c_300-c_if13;