各位前輩好,
使用XS內建回測的結果有點差異。
想請問,以下交易語法的差異點在哪裡?
if c[1] <= CNT and c > CNT then setposition(1);
以及
if c cross above CNT then setposition(1);
謝謝。
各位前輩好,
使用XS內建回測的結果有點差異。
想請問,以下交易語法的差異點在哪裡?
if c[1] <= CNT and c > CNT then setposition(1);
以及
if c cross above CNT then setposition(1);
謝謝。
cross above指的是前一期沒有大於,這期大於。
if c[2] <= CNT and c[1] = CNT and c > CNT 也是cross above。
謝謝教授釋疑。
2 評論