
====================================
Parameter:Length(11) //參數:K線11(預設)根
//高控線的計算
VALUE1=HIGHest(HIGH[0],Length)-(HIGHest(HIGH[0],Length)-LOWest(LOW[0],Length))*0.333
//低控線的計算
VALUE2=HIGHest(HIGH[0],Length)-(HIGHest(HIGH[0],Length)-LOWest(LOW[0],Length))*0.667
//如果收盤價>高控線則
//買進,部位名稱為突高的1個部位,在這根K線的收盤
IF C[0] > VALUE1[0] THEN
Buy ("突高") 1 Contracts THIS bar AT CLOSE
END IF
//如果收盤價<低控線則
//放空,部位名稱為破低1個部位,在這根K線的收盤
IF C[0] < Value2[0] Then
SELL ("破低") 1 Contracts THIS bar AT CLOSE
END IF