想請問進場價格為條件+5tick是可以寫得出來嗎?
假設 condition1 =high+N(間距)
當到達condition1 則啟動,啟動後,進場價格想要 condition1+5 tick 不要自動交易中心的買進價格-觸發價+5檔
謝謝
3 評論
value1=high+addSpread(high,5);
此外,condition1不能等於一個數值(high+N(間距))。它也不能與數值相加。例如:condition1+5 tick。
Hello 古詩十九首,
小編補充,AddSpread 函數會計算第一個參數加減第二個參數檔數的價格。
所以要計算高點加5個tick,只要撰寫 AddSpread(high,5) 即可。
謝謝 虎科大許教授 與 XS小編
3 評論