自动画线(主图 指标 低点支撑 高点压力 明日阻力
GDTSS:=IF(CCC,CURRBARSCOUNT,0),NODRAW;
DINGBUTSS:=IF(DDDD,REF(GDTSS,DDDD),GDTSS),NODRAW;
GDCS11:=CONST(DINGBUTSS),NODRAW;
DINGBUTS11:REF(DINGBUTSS,DDDD+1),NODRAW;
GDCS22:=CONST(DINGBUTS11);
高点压力M:DRAWLINE(CURRBARSCOUNT=GDCS22,H,CURRBARSCOUNT=GDCS11,H,1),COLORYELLOW,LINETHICK1;
AA11:=REF(L,M)=LLV(L,2*M+1);
QY11:=BACKSET(AA11,M+1);
CC11:=FILTER(QY11,M) AND L=LLV(L,M+1);
DD11:=BARSLAST(CC11);
DDTSS:=IF(CC11,CURRBARSCOUNT,0);
DDTS11:=IF(DD11,REF(DDTSS,DD11),DDTSS);
DDCS11:=CONST(DDTS11);
DDTS22:=REF(DDTS11,DD11+1);
DDCS22:=CONST(DDTS22);
低点支撑M:DRAWLINE(CURRBARSCOUNT=DDCS22,L,CURRBARSCOUNT=DDCS11,L,1), COLORYELLOW,LINETHICK1;
HIGHN:=10;
LOWN:=10;
HIGHDISPLAY:=0;
LOWDISPLAY:=0;
ZGDISPLAY:=0;
MADISPLAY:=0;
AA01:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);
QY01:=BACKSET(AA01,HIGHN+1);
CC01:=FILTER(QY01,HIGHN) AND H=HHV(H,HIGHN+1);
DDD01:=BARSLAST(CC01);
GDTS01:=IF(CC01,CURRBARSCOUNT,0);
DINGBU01:=IF(DDD01,REF(H,DDD01),H);{顶部}
DINGBUTS01:=IF(DDD01,REF(GDTS01,DDD01),GDTS01);
DINGBU15:=REF(DINGBU01,DDD01+1);
GDCS15:=CONST(DINGBUTS01);
DINGBUTS15:=REF(DINGBUTS01,DDD01+1);
GDCS25:=CONST(DINGBUTS15);
DINGBU25:=REF(DINGBU15,DDD01+1);
高点压力1:DRAWLINE(CURRBARSCOUNT=GDCS25,H,CURRBARSCOUNT=GDCS15,H,1), COLORYELLOW,LINETHICK1;
DRAWLINE(CURRBARSCOUNT=GDCS25,H,ISLASTBAR,REF(H,GDCS25-1),1),COLORYELLOW,LINETHICK1,POINTDOT;
AA001:=REF(L,LOWN)=LLV(L,2*LOWN+1);
QY001:=BACKSET(AA001,LOWN+1);
CC001:=FILTER(QY001,LOWN) AND L=LLV(L,LOWN+1);
DD001:=BARSLAST(CC001);
DDTS00:=IF(CC001,CURRBARSCOUNT,0);
YDB00:=IF(DD001,REF(L,DD001),L);
DDTS001:=IF(DD001,REF(DDTS00,DD001),DDTS00);
DDCS001:=CONST(DDTS001);
ZDB00:=REF(YDB00,DD001+1);
DDTS002:=REF(DDTS001,DD001+1);
DDCS002:=CONST(DDTS002);
低点支撑1:DRAWLINE(CURRBARSCOUNT=DDCS002,L,CURRBARSCOUNT=DDCS001,L,1), COLORYELLOW,LINETHICK1;
ZGSTAR00:=(高点压力1+低点支撑1)/2;
ZGEND00:=CONST((高点压力1+低点支撑1)/2);
STARDAY00:=IF(DDCS002<GDCS25,DDCS002,GDCS25);
DRAWLINE(CURRBARSCOUNT=DDCS002,L,ISLASTBAR,REF(L,DDCS002-1),1),COLORYELLOW,LINETHICK1,POINTDOT;
Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,FGBLOCK);
Z3:=STRCAT(Z2,DYBLOCK);
Z4:=STRCAT(Z3,' ');
DRAWTEXT_FIX(ISLASTBAR,0.03,0.99,0,STRCAT(Z4,GNBLOCK)),COLORCYAN;
- 上一篇公式:通达信抄底精准(选股/副图指标贴图)
- 下一篇公式:通达信均线选股 均线抄底(主图源码抄底)