李光跃63老师用的主图公式!超好用

[复制链接]
查看156 | 回复0 | 2022-7-24 06:53:05 | 显示全部楼层 |阅读模式

李光跃63老师用的主图公式!超好用

百分比:=5;
三日不破:=MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(L,3);
三日量缩:=(MAX(MAX(V,REF(V,1)),REF(V,2))<REF(V,3));
三日价涨A:=LAST(C>=REF(C,1),3,0);
三日价涨B:=C<REF(C,1) AND LAST(L>REF(C,3),3,0);
三日价涨C:=MIN(MIN(C,REF(C,1)),REF(C,2))>=REF(L,3);
 TIM:=IF(DATE<1140214,1,0);
倍量柱:=C>REF(C,1)*1.04 AND (VOL>=1.9*REF(VOL,1))*TIM;
四日前倍量柱:=(REF(VOL,3)>1.9*REF(VOL,4))*TIM;
四日前高量柱:=(REF(VOL,3)>=REF(VOL,4) AND REF(VOL,3)<1.9*REF(VOL,4) AND 三日量缩)*TIM;
前三引用不成立:=COUNT(REF(四日前倍量柱,1) AND (REF(三日不破,1) OR REF(三日价涨C,1)),3)=0 AND COUNT(REF(四日前高量柱,1) AND (REF(三日不破,1) OR REF(三日价涨C,1)),3)=0;
倍量黄金柱:=四日前倍量柱 AND 三日量缩 AND 三日不破 AND 三日价涨A AND 前三引用不成立;
高量黄金柱:=四日前高量柱 AND 三日量缩 AND 三日不破 AND 三日价涨A AND 前三引用不成立;
黄金柱:=倍量黄金柱 OR 高量黄金柱;
BACKSET101:=BACKSET(黄金柱,4);
 FILTER101:=FILTER(BACKSET101,3);
 K1:=SUMBARS(FILTER101,1);
黄金值_实:REF(C,K1-1),NODRAW,COLORYELLOW;
虚:REF(L,K1-2),NODRAW,COLORYELLOW;
倍量:=C>REF(C,1) AND (VOL>=1.9*REF(VOL,1))*TIM;
 BACKSET102:=BACKSET(倍量,1);
 FILTER102:=FILTER(BACKSET102,1);
 K2:=SUMBARS(FILTER102,1);
 STICKLINE(K2,REF(C,K2-1),REF(C,K2-1),7,0),COLOR223344;{高位线};
STICKLINE(K2,REF(O,K2-1),REF(O,K2-1),7,0),COLOR665566;{低位线};
STICKLINE(K1,REF(L,K1-2),REF(L,K1-2),1,0),COLORYELLOW;
 STICKLINE(K1,REF(C,K1-1),REF(C,K1-1),5,0),COLORYELLOW;{低位线}
STICKLINE(FILTER102,OPEN,CLOSE,2,0),COLORRED;
 STICKLINE(FILTER102,H,L,0,0),COLORRED;
 STICKLINE(FILTER101,OPEN,CLOSE,2,0),COLORYELLOW;
 STICKLINE(FILTER101,H,L,0,0),COLORYELLOW;
波谷值:= CONST(TROUGH(2,5,1)),COLORYELLOW,NODRAW;{前M个ZIG转向波谷值}
       波谷距离:= 1+CONST(TROUGHBARS(2,百分比,1)),NODRAW;{前M个ZIG转向波谷到当前距离}
       波峰值:= CONST(PEAK(1,5,2));
       允许误差:=0.024;
       XG:= ABS(波峰值-波谷值)<=允许误差 {AND BARSCOUNT(V)>60};
       波峰距离:= 1+CONST(PEAKBARS(1,百分比,2)),NODRAW;
       距离:=CURRBARSCOUNT;
       DRAWLINE(距离=波峰距离 AND XG,波谷值,距离=1,波谷值,1),COLOR007070;
       DRAWTEXT(距离=波谷距离 AND XG,L*0.99,'FG'),COLOR007050;
       精准点:=(ABS(H-波谷值)<=允许误差 OR ABS(L-波谷值)<=0.024){AND 距离<=120};
       STICKLINE(精准点,波谷值,波谷值,5,0),COLORYELLOW;
       波谷值2:= CONST(TROUGH(2,百分比,2));
       波谷值3:= CONST(TROUGH(2,百分比,3));
       波谷值4:= CONST(TROUGH(2,百分比,4));
       波谷距离2:= 1+CONST(TROUGHBARS(2,百分比,2));
       波谷距离3:= 1+CONST(TROUGHBARS(2,百分比,3));
       波谷距离4:= 1+CONST(TROUGHBARS(2,百分比,4));
       XG2:= ABS(波谷值-波谷值2)<=允许误差;
       XG3:= ABS(波谷值-波谷值3)<=允许误差;
       XG4:= ABS(波谷值-波谷值4)<=允许误差;
       XGL:=(距离=波谷距离2 AND XG2) OR (距离=波谷距离3 AND  XG3)
         OR (距离=波谷距离4 AND  XG4);
       精准线:DRAWLINE(XGL,波谷值,距离=2,波谷值,1),COLOR00CCA0;
       DRAWTEXT(XGL,L*0.99, 'JZ' ),COLOR00CCA0;
百日低量:=(VOL=LLV(VOL,144))*TIM;
 STICKLINE(百日低量,L*0.98,L*0.93,0,-1);
 {DRAWICON(百日低量,L*0.96,1);}
价值:FINANCE(34)+FINANCE(18)+FINANCE(32)+FINANCE(33)/4,COLOR00CCFF,NODRAW;
溢价率:(C/价值-1)*100,NODRAW;

 HV:=HHV(V,5)=V OR V/REF(V,1)>=5;
 FT:=BARSLAST(HV);
量能平台:=IF(HV,C,REF(C,FT));
 DRAWTEXT(量能平台>REF(量能平台,1)AND C<REF(C,1),L,'*带量跌'),COLORGREEN;
 DRAWTEXT(量能平台<REF(量能平台,1) AND C>REF(C,1),L,'*缩量涨'),COLORYELLOW;
 DRAWTEXT(量能平台>REF(量能平台,1) AND C>REF(C,1) AND C>MA(C,13)  AND C=HHV(C,20) AND C/REF(C,1)>1.05,L,'*突破量'),COLORMAGENTA;
自动画线:DRAWLINE(HIGH>=HHV(HIGH,10),HIGH,LOW<=LLV(LOW,3),HHV(HIGH,3),1),COLORMAGENTA,LINETHICK2;

 

638477235.jpg

638477235.jpg

639155125.jpg

639155125.jpg

 

 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则