-- 作者:rushtaotao
-- 发布时间:2012/3/19 9:28:10
--
仅供参考
//周期选择1分钟线,
input:N(1,1,100,2);
VARIABLE:HBBI:=0; VARIABLE:lbbi:=0; bbi:=STKINDI(\'\' ,\'BBI\' ,0 ,1 ,0 ); if holding>0 and bbi>HBBI then begin HBBI:=bbi; if HBBI-bbi>N then begin sell(1,0,market); buyshort(1,1,market); end end
if holding<0 and bbi<LBBI then begin LBBI:=bbi; if bbi-LBBI>N then begin sellshort(1,0,market); buy(1,1,market); end end
|