請問如何當天出場後要再突破當天高低點再進場呢? 以下引用阿政大大寫的 {Action switch...start} var:BB(99999),SS(0); var:MP(0),lastWay(0); var:toDO(true); MP= marketposition; if time_s>=091000 and time_s<=125000 and condition6 and EntriesToday(D)<1 and c>TR1[0]+10 then begin BB = highD(0); SS = lowD(0); end; if time_s>=091000 and time_s<=125000 and condition7 and EntriesToday(D)<1 and c<TR2[0]-10 then begin BB = highD(0); SS = lowD(0); end; if MP[1]<>0 and MP=0 then begin toDo = false; if MP[1]>0 then lastWay=1; if MP[1]<0 then lastWay=-1; end; if C<BB and lastWay>0 then toDO= true; if C>SS and lastWay<0 then toDO= true; {Action switch...end} 請問以下的程式如何修改才能達到當天出場後要再突破當天高低點再進場呢? if (minlist(TR2[0],varL)-TR2[lowerP[1]])>(opend(0)*0.009) and (c<varL) then begin sellshort("S") next bar at LL-1 stop; end else if (minlist(TR2[0],varL)-TR2[lowerP[1]])<(opend(0)*0.009) and (c<varL) and (c<TR2[j]-15) then begin sellshort("S1") next bar at (TR2[j]-15)[1]-1 stop; end;
|