if 停損 後 K>D then buy ("buy") 1 shares next bar at market;
該如何寫呢 有停損後的指令語法嗎? 謝謝
用exitname判斷,假設你的停損訊號名稱為stoploss
if exitname(1)="stoploss" then
請問 setstoploss如何自訂名稱
if K cross over D then buy ("buy") 1 shares next bar at market; setstoploss(25*bigpointvalue) ;
if exitname(1)="stoploss" and K>D then buy ("buy2") 1 shares next bar at market;
這樣訊號跑不出來 哪裡出問題呢 謝謝?
setstoploss無法自訂名稱,看圖上面停損時顯示什麼名稱就是他的exitname