2010年1月24日 星期日

漲跌停出場

vars: CloseOfD1[0]
array: CofD1[84](-1)
CloseOfD1 = CloseOfD(1, CofD1)
// 0.93 -> 0.935,1.07 -> 1.065
if MarketPosition <> 0 and (close < CloseOfD1 * 0.93 or close > CloseOfD1 * 1.07) then
 exitlong this bar at market
 existshort this bar at market
endif

沒有留言: