以下是通达信一触即发主图和谐源码(无源码的请下载附件导入)
画线方法: 主图叠加}
VAR1:=HIGH;
VAR2:=LOW;
VAR3:=REF(VAR1,10)=HHV(VAR1,2*10+1);
VAR4:=FILTER(VAR3,10);
VAR5:=BACKSET(VAR4,10+1);
VAR6:=FILTER(VAR5,10);
VAR7:=REF(VAR2,10)=LLV(VAR2,2*10+1);
VAR8:=FILTER(VAR7,10);
VAR9:=BACKSET(VAR8,10+1);
VAR10:=FILTER(VAR9,10);
前期高位:REF(HIGH,BARSLAST(VAR6)),POINTDOT,COLORRED;
STICKLINE(HIGH,前期高位,前期高位,8,0),COLORRED;
前期低位:REF(LOW,BARSLAST(VAR10)),POINTDOT,COLORGREEN;
STICKLINE(LOW,前期低位,前期低位,8,0),COLORGREEN;
DRAWNUMBER(FILTER(VAR5,10),HIGH,HIGH),LINETHICK9;
DRAWNUMBER(FILTER(VAR9,10),LOW,LOW);
选股1:CROSS(CLOSE,前期高位),NODRAW;
选股2:CLOSE>REF(前期低位,1) AND CROSS(REF(前期低位,1),LOW),NODRAW;
STICKLINE(选股1,OPEN,CLOSE,1,0),COLORYELLOW;
STICKLINE(选股1,HIGH,LOW,0,1),COLORYELLOW;
STICKLINE(选股2,OPEN,CLOSE,1,0),COLORYELLOW;
STICKLINE(选股2,HIGH,LOW,0,1),COLORYELLOW;
出场1:CLOSE<REF(前期高位,1) AND CROSS(HIGH,REF(前期高位,1)),NODRAW;
STICKLINE(出场1,OPEN,CLOSE,1,0),COLORBLUE;
出场2:CROSS(前期低位,CLOSE),NODRAW;
STICKLINE(出场2,OPEN,CLOSE,1,0),COLORBLUE;
VAR11:=(OPEN+CLOSE)/2;
VAR12:=REF(VAR11,1);
VAR13:=REF(CLOSE,1);
VAR14:=REF(CLOSE,1)*1.1-CLOSE<0.01 AND HIGH=CLOSE;
STICKLINE(VAR14,OPEN,CLOSE,1,0),COLORRED;
STICKLINE(VAR14,HIGH,LOW,0,0),COLORRED;
VAR15:=IF((VAR13-CLOSE)*100/VAR13>=10-0.01*100/VAR13 AND LOW=CLOSE,1,0);
STICKLINE(VAR15,OPEN,CLOSE,1,0),COLORGREEN;
STICKLINE(VAR15,HIGH,LOW,0,1),COLORGREEN;
|