通达信烧香拜佛 跟踪关注 支撑主图源码 选股
ST:=(CLOSE/OPEN-1)*100;
Z :=(C/REF(C,1)-1)*100;
SX1:=ST>3 AND ST=HHV(ST,6);
SX2:=Z >3 AND Z =HHV(Z ,6);
SX3:=Z >=9 AND CLOSE=HIGH;
烧香:IF(SX1 OR SX2 OR SX3,1,0),COLOR0000FF,NODRAW;
DYSJ:=BARSLAST(烧香);
跟踪:IF(DYSJ<=13 AND COUNT(C>REF(L,DYSJ),DYSJ)>=DYSJ-1,DYSJ,0),COLOR00FFFF,NODRAW;
关注:IF(DYSJ>=4 AND COUNT(C>REF(C,DYSJ),3)>=3,REF(C,DYSJ),REF(L,DYSJ)),COLORFFFFFF,NODRAW;
②:IF(关注=REF(L,DYSJ),REF(C,DYSJ),REF(L,DYSJ)),COLOR00FFFF,NODRAW;
STICKLINE(跟踪,②,②,3,0),COLOR00FFFF;
BF1:=LOW<关注*1.01 AND COUNT(LOW<关注*1.01,跟踪)=1;
BF2:=LOW<关注 AND COUNT(LOW<关注,跟踪)=1;
拜佛:IF(BF1 OR BF2,1,0),COLOR00FF00,NODRAW;
{以下设置主图显示方式}
DRAWICON(烧香,L*0.99,13);
DRAWTEXT(烧香,LOW*0.985,'‖'),COLOR00FFFF;
DRAWTEXT(拜佛,LOW*0.985,'≌'),COLOR00FF00;
STICKLINE(C>0,关注,关注,5,-1),COLORFFFFFF;
支撑:STICKLINE(跟踪,关注,关注,3,0),COLORFF00FF;
“烧香“大于0时的预警公式
ST:=(CLOSE/OPEN-1)*100;
Z,:=(C/REF(C,1)-1)*100;
SX1:=ST>3 AND ST=HHV(ST,6);
SX2:=Z,>3 AND Z,=HHV(Z,,6);
SX3:=Z,>=9 AND CLOSE=HIGH;
烧香:=IF(SX1 OR SX2 OR SX3,1,0);
烧香>0;
- 上一篇公式:5月金叉10月条件公式 (如KDJ月金叉范例)
- 下一篇公式:通达信KDJ MACD 高抛低吸副图源码 加仓选股