Larry william BO當沖策略只提到進場的大概方法 五分鐘線
以前一天高低點之差,再乘以0.3,然後在找出今天開盤後15分鐘內的高低點
高點-(前一天高低點之差,再乘以0.3)=今天的空方線
低點+(前一天高低點之差,再乘以0.3)=今天的多方線
突破多方線上方一點點,或空方線下方一點點,則進場做多或是放空,收盤前清倉。
william好像沒提到具體的出場方法,所以我自己設成尾盤時間到了,或是價格反向突破多方線或是空方線也清倉
一點只做多一次
可以請大大幫我看看我哪裡寫錯了嗎?
圖上看有些應該會引發訊號卻沒有訊號,好怪
input:factor(0.3);
vars:s(0),tobuy(9999),toshort(o),k(0);
value1=Highd(1)-LowD(1);
s=factor*value1;
k=k+1;
if time>0845 and time<=0900 then begin
toshort=highest(high,3)-s;
arw_new_self(d,0900,toshort,false);
tobuy=lowest(low,3)+s;
arw_new_self(d,0900,tobuy,true);
end;
if marketposition=0 and k=0 and time>0900 and t<1300 and c>tobuy then begin
buy next bar tobuy+1 stop;
k=1;
end;
if marketposition=0 and time>0900 and t< 1300 and c<toshort then begin
sellshort next bar toshort-1 stop;
k=1;
end;
if marketposition>0 and time >= 1340 then
sell next bar at market;
if marketposition>0 and C<toshort then
sell next bar at market;
if marketposition<0 and time >= 1340 then
buytocover next bar at market;
if marketposition<0 and C>tobuy then
buytocover next bar at market;
|