Hello CHI888,
您可以使用 量比 資料欄位來作運算。
舉例來說,1分鐘頻率的交易腳本可以這樣寫:
if time < 090500 and getfield("量比") > 1.5 and position = 0 then setposition(2, market);
if time > 090500 and time < 120000 and getfield("量比") > 1 and position = 0 then setposition(2, market);
網站上有教學區,裡面有XS語法的基礎和應用可以閱覽。
1 評論