麻烦你干脆帮我写好吧,我是新手,什么都不会
input:n1(32,6,50,1);
W1:=-100*(HHV(H,N1)-C)/(HHV(H,N1)-LLV(L,N1))+50;
T1:=TIME>093000 AND TIME<143500;
T2:=TIME>150500;
if W1>45 AND REF(ANY(W1>45,9),1) then begin
sellshort(holding<0, 0, thisclose);
buy(holding=0 AND T1, 1, thisclose);
end
if HHV(H,5)>1.0094*C OR T2 then sell(holding>0, 0, thisclose);
if W1<-45 AND REF(ANY(W1<-45,9),1) then begin
sell(holding>0, 0, thisclose);
buyshort(holding=0 AND T1, 1, thisclose);
end
if C>1.0094*LLV(L,5) OR T2 then sellshort(holding<0, 0, thisclose);
开仓日期:= weekday=1 or weekday=5;
input:n1(32,6,50,1);
W1:=-100*(HHV(H,N1)-C)/(HHV(H,N1)-LLV(L,N1))+50;
T1:=TIME>093000 AND TIME<143500;
T2:=TIME>150500;
if W1>45 AND REF(ANY(W1>45,9),1) and 开仓日期 then begin
sellshort(holding<0, 0, thisclose);
buy(holding=0 AND T1, 1, thisclose);
end
if HHV(H,5)>1.0094*C OR T2 then sell(holding>0, 0, thisclose);
if W1<-45 AND REF(ANY(W1<-45,9),1) and 开仓日期 then begin
sell(holding>0, 0, thisclose);
buyshort(holding=0 AND T1, 1, thisclose);
end
if C>1.0094*LLV(L,5) OR T2 then sellshort(holding<0, 0, thisclose);
加上止损为什么就没有信号了?
开仓日期:= weekday=1 or weekday=5;
input:n1(32,6,50,1);
W1:=-100*(HHV(H,N1)-C)/(HHV(H,N1)-LLV(L,N1))+50;
T1:=TIME>092000 AND TIME<143500;
T2:=TIME>145000;
if W1>45 AND REF(ANY(W1>45,9),1) and 开仓日期 then begin
sellshort(holding<0, 0, thisclose);
buy(holding=0 AND T1,1, thisclose);
end
if HHV(H,5)>1.0094*C OR T2 then sell(holding>0, 0, thisclose);
if W1<-45 AND REF(ANY(W1<-45,9),and 开仓日期 then begin
sell(holding>0, 0, thisclose);
buyshort(holding=0 AND T1, 1, thisclose);
end
if c>1.0094*LLV(L,5) OR T2 then sellshort(holding<0, 0, thisclose);
IF C<REF(L,ENTERBARS)-3 AND ENTERBARS>0 and 开仓日期 THEN BEGIN
sell(holding>0, 0, thisclose);
END
IF C>REF(H,ENTERBARS)+3 AND ENTERBARS>0 and 开仓日期 THEN BEGIN
sellshort(holding<0, 0, thisclose);
END
说明在这两天没有止损条件满足的情况
你按键盘向下的箭头,多显示点数据