程式碼:
condition999 = symbolexchange = "TF";//期貨
condition994 = symbol = "TSE.TW" or symbol = "TWSE.FS" or symbol = "OTC.TW";//大盤
condition993 = symbolexchange = "TF" and symboltype = 5;//選擇權
if (condition999 = false and condition994 = true) or symbolType = 5 //僅支援期貨
then raiseruntimeerror("不支援此商品");
if symbolexchange = "TF" and symboltype = 3 then //期貨
value1 = GetSymbolField("Underlying", "收盤價");
if time<090000 then
value2=0
else
value2=close-value1;
plot1(value2,"價差");
會出現腳本指定商品不存在
之前都不會這樣
1 評論