|
樓主 |
發表於 17-7-21 09:39
|
顯示全部樓層
inputs:Len(8),stopL(0.01),starttime(0900),endtime(1130),max_c(3);
if time>=starttime and time <endtime and entriestoday(date)<max_c then begin
if RSI(close,len)>70 then buy next bar at H stop;
if RSI(close,len)<30 then sellshort next bar at L stop;
end;
if marketposition=1 then sell next bar at entryprice + 45 limit;
if marketposition=1 then sell next bar at entryprice - 40 stop;
if marketposition=-1 then buytocover next bar at entryprice + 40 stop;
if marketposition=-1 then buytocover next bar at entryprice - 45 limit;
if marketposition<>0 then setstoploss(bigpointvalue*entryprice*stopL);
if time>=1325 then begin
buytocover next bar at market;
sell next bar at market;
end;
各位大大能否幫看一下 是哪裡打錯 怎麼空單一進去都怪怪的>"< |
|