{买入结构} TA1:=C<REF(C,4); TN1:=BARSLASTCOUNT(TA1); TJ11:=TN1=9; TJ13:=ISLASTBAR AND BETWEEN(TN1,5,8); TY1:=(BACKSET(TJ11>0,9) OR BACKSET(TJ13>0,TN1))*TN1; DRAWTEXT(TY1>0,L*0.98,VAR2STR(TY1,0)),COLORRED; DRAWTEXT(TN1=9,L*0.98,'9'),COLORGREEN; {卖出结构} TA2:=C>REF(C,4); TN2:=BARSLASTCOUNT(TA2); TJ21:=TN2=9; TJ23:=ISLASTBAR AND BETWEEN(TN2,5,8); TY2:=(BACKSET(TJ21>0,9) OR BACKSET(TJ23>0,TN2))*TN2; DRAWTEXT(TY2>0,H*1.01,VAR2STR(TY2,0)),COLORFF00FF,DRAWABOVE; DRAWTEXT(TN2=9,H*1.01,'9'),COLORYELLOW,DRAWABOVE; |
|