[通达信电脑版] 精准分析通达信主图指标公式源码

[复制链接]
查看15828 | 回复0 | 2022-4-5 11:10:03 | 显示全部楼层 |阅读模式

精准分析主图

精准分析主图


DRAWTEXT_FIX(1,0.15,0.05,0,'精准分析主图'),COLORYELLOW;
上市日期:=CONST(DAYTODATE((DATETODAY(DATE)-FINANCE(42))))+19000000,NODRAW;
高:=REFDATE(HHV(H,180),DATE);
低:=REFDATE(LLV(L,180),DATE);
H1:=高-(高-低)*0.191;
H2:=高-(高-低)*0.382,COLORFF6198;
H3:=高-(高-低)*0.5,COLORFFFFFF;
H4:=高-(高-低)*0.618;
H5:=高-(高-低)*0.809;
STICKLINE(CURRBARSCOUNT=13,高,高,100,-1),COLORGREEN;
STICKLINE(CURRBARSCOUNT=13,H1,H1,100,-1),COLORCYAN;
STICKLINE(CURRBARSCOUNT=13,H2,H2,100,-1),COLORCCCCCC;
DRAWTEXT(CURRBARSCOUNT=1,高,' 高'),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=1,H1,' 809'),COLORCYAN;
DRAWTEXT(CURRBARSCOUNT=1,H2,' 618'),COLORFFFFFF;
DRAWTEXT(CURRBARSCOUNT=1,H3,' 中'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=1,H4,' 382'),COLORLIRED;
DRAWTEXT(CURRBARSCOUNT=1,H5,' 191'),COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=1,低,' 低'),COLORRED;
STICKLINE(CURRBARSCOUNT=13,H3,H3,100,-1),COLORYELLOW;
STICKLINE(CURRBARSCOUNT=13,H4,H4,100,-1),COLORLIRED;
STICKLINE(CURRBARSCOUNT=13,H5,H5,100,-1),COLORMAGENTA;
STICKLINE(CURRBARSCOUNT=13,低,低,100,-1),COLORRED;
趋势线:(EMA(C,15)),LINETHICK2,COLORRED;
IF(趋势线>REF(趋势线,1),趋势线,DRAWNULL),COLORRED,LINETHICK2;
IF(趋势线<REF(趋势线,1),趋势线,DRAWNULL),COLORGREEN,LINETHICK2;
生命线30:(EMA(C,30)),LINETHICK2,COLORBLUE;
跳楼线90:(EMA(C,90)),LINETHICK2,COLORWHITE;
{参考线120:(EMA(C,120)),LINETHICK2,COLORFF00FF;}
VARS1:=(HIGH+LOW+OPEN+2*CLOSE)/5;
VARS2:=REF(VARS1,1);
VARS3:=SMA((CLOSE-VARS2),6,1)/SMA(ABS(CLOSE-VARS2),6,1)*100;
VARS4:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;
VARS5:=EMA(0.667*REF(VARS4,1)+0.333*VARS4,5);
VARS6:=IF(VOL>=1.3*MA(VOL,5) AND COUNT(VARS4>=VARS5 AND VARS4<-17,3) AND REF(LOW,1)=LLV(LOW,120),1,0);
VARS7:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;
VARS8:=SMA(MAX(VARS1-VARS2,0),10,1)/SMA(ABS(VARS1-VARS2),10,1)*100;
VARS9:=IF(COUNT(VARS8<20,5)>=1 AND COUNT(VARS1=LLV(VARS1,10),10)>=1 AND CLOSE>=OPEN*1.038 AND VOL>MA(VOL,5)*1.2,1,0);
DRAWICON(FILTER(REF(VARS3,1)>81 AND VARS3<80 OR CROSS(82,VARS7),2),HIGH*1.0001,2);
DRAWICON(FILTER(VARS9 OR VARS6,3),LOW*0.9999,1);
N:=5;
N1:=15;
N2:=30;
VAR2:=(REF(HIGH,1)+REF(LOW,1))/2;
VAR3:=MA(CLOSE,N)+2*STD(CLOSE,N);
DRAWICON(CROSS(VAR2,VAR3),HIGH*1.0001,2);
VAR4:=REF(CLOSE,1);
VAR5:=SMA(MAX(CLOSE-VAR4,0),N1,1)/SMA(ABS(CLOSE-VAR4),N1,1)*100;
VAR6:=CROSS(N2,VAR5);
VAR7:=FILTER(VAR6,4);
DRAWICON(VAR7,HIGH*1.0001,2);
AA7:=C-REF(C,1)*1;
AA8:=100*EMA(EMA(AA7,6),6)/EMA(EMA(ABS(AA7),6),6);
买:=LLV(AA8,2)=LLV(AA8,7) AND COUNT(AA8<0,2) AND CROSS(AA8,MA(AA8,2));
DRAWTEXT(FILTER(买=1,2),LOW-0.0001,'↖回调'),COLORYELLOW;
STICKLINE(((C >= 趋势线) AND (C >= O) AND FILTER(买=1,2)),H,L,0.5,0),COLORYELLOW;
STICKLINE((C >= 趋势线) AND (C >= O) AND OPEN<CLOSE AND OPEN < 趋势线 ,OPEN ,CLOSE,2,0 ),COLORRED;
VL:=REF(LOW,1);
VAR12:=(SMA(ABS(LOW-VL),13,1))/(SMA(MAX(LOW-VL,0),13,1))*100;
VAR14:=MA(VAR12,13);
VAR15:=LLV(LOW,34);
VAR18:=EMA(IF(LOW<=VAR15,VAR14,0),3);
VAR110:=SMA(SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1),5,1);
VAR111:=SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1)*16.18-VAR110*10.9;
T:=FILTER(IF(VAR111<=VAR110 AND VAR18>REF(VAR18,1),VAR18*8,0),20);
TT:=IF(T ,50 ,0 );
DRAWTEXT(TT,LOW,'↖洗盘结束'),COLORFF00FF;
VAR21:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
VAR22:=SMA(VAR21,3,1);
VAR23:=SMA(VAR22,3,1);
VAR24:=SMA(VAR23,3,1);
VAR25:=CROSS(VAR23,VAR24) AND VAR23<20;
DRAWTEXT(FILTER(VAR25,10)=1,LOW,'↖抄底'),COLORRED;
VVVAR8:=3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1)-2*SMA(SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1),3,1);
VVVAR9:=IF(VVVAR8>90,50,100);
VVVAR10:=FILTER(CROSS(VVVAR9,VVVAR8),4);
DRAWTEXT (VVVAR10,HIGH,'落袋'),COLORWHITE;
VAR11:=3;
VAR222:=((3 * SMA((((CLOSE - LLV(LOW,27)) / (HHV(HIGH,27) - LLV(LOW,27))) * 100),5,1)) - (2 * SMA(SMA((((CLOSE - LLV(LOW,27)) / (HHV(HIGH,27) - LLV(LOW,27))) * 100),5,1),3,1)));
大赚:=IF(CROSS(VAR222,VAR11),1,0);
DRAWTEXT(大赚,LOW-0.05,'↖大赚'),COLORFFFFFF;
VAR1:=REF(CLOSE,2);
会员专用:=SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100;
极品逃亡:=IF(会员专用< REF(会员专用,1) AND 会员专用>79,会员专用,0);
DRAWTEXT(极品逃亡 ,(HIGH)*1.01 ,'★逃亡'),COLORYELLOW;
STICKLINE(会员专用< REF(会员专用,1) AND 会员专用>79,OPEN ,CLOSE,1,0 ),COLORGREEN;
LC1:=REF(CLOSE,1);
RSIA:=((SMA(MAX((CLOSE - LC1),0),3,1) / SMA(ABS((CLOSE - LC1)),3,1)) * 100);
VARRA1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;
DRAWTEXT(CROSS(82,VARRA1) OR CROSS(82,RSIA),HIGH,'逃'),COLOR22FF33;
STICKLINE(CROSS(82,VARRA1) OR CROSS(82,RSIA),OPEN ,CLOSE,1,0 ),COLORGREEN;
回复

使用道具 举报

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

本版积分规则