通达信股海网爱国主图源码
参数:m1 1,500,5 m2 ,1 500 ,10 m3 1 ,500 ,20 m4 1 ,500 ,60
流通市值:(FINANCE(40)/100000000),NODRAW,COLORFFFF00;
NOTEXT:=IF(TRADENUM>0,(TRADEOUTNUM-TRADEINNUM)*100/TRADENUM,0);
操盘系数:MA(NOTEXT,5)*3+10,NODRAW;
MA1:MA(CLOSE,M1);
MA2:MA(CLOSE,M2);
MA3:MA(CLOSE,M3);
MA4:MA(CLOSE,M4);
MA20:=MA(C,20);
MA120:=MA(C,120);
乖离线:=((C-REF(MA20,1))/20+MA20)*1.20;
DRAWTEXT(CROSS(C,乖离线) ,H+0.13,'↓大顶必卖'),COLOR00FF00;
DRAWTEXT_FIX(1,0.78,4,0,'★本指标特供股海网爱国人士★'),COLORFFFFFF;
A:=(3*C+L+O+H)/6;
AX:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+
14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)
+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+
REF(A,20))/210;
主力成本:EMA(AX,13),COLOR0000FF,LINETHICK3;
TH:=HHVBARS(H,0),COLORRED,NODRAW;
TL:=LLVBARS(L,0),COLORGREEN,NODRAW;
高:HHV(H,TH),COLORRED,NODRAW;
低:LLV(L,TL),COLORGREEN,NODRAW;
H1:=高-(高-低)*0.191;
H2:=高-(高-低)*0.382;
H3:=高-(高-低)*0.5;
H4:=高-(高-低)*0.618;
H5:=高-(高-低)*0.809;
顶:REFDATE(高,DATE),COLORCYAN,POINTDOT;
%19.1:REFDATE(H1,DATE),COLORYELLOW,POINTDOT;
%38.2:REFDATE(H2,DATE),COLORMAGENTA,POINTDOT;
%50:REFDATE(H3,DATE),COLORWHITE,POINTDOT;
%61.8:REFDATE(H4,DATE),COLORMAGENTA,POINTDOT;
%80.9:REFDATE(H5,DATE),COLORYELLOW,POINTDOT;
底:REFDATE(低,DATE),COLORCYAN,POINTDOT;
DRAWTEXT(ISLASTBAR,顶,'顶'),COLORCYAN;
DRAWTEXT(ISLASTBAR,%19.1,'%19.1'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,%38.2,'%38.2'),COLORMAGENTA;
DRAWTEXT(ISLASTBAR,%50,'%50'),COLORWHITE;
DRAWTEXT(ISLASTBAR,%61.8,'%61.8'),COLORMAGENTA;
DRAWTEXT(ISLASTBAR,%80.9,'%80.9'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,底,'底'),COLORCYAN;
A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2));
DRAWTEXT(FILTER(买=1,5),LOW-0.05,'↖买进'),COLORFFFFFF;
STICKLINE(买,OPEN,CLOSE,2,0),COLORYELLOW;
DRAWTEXT_FIX(1,0.1,0.68,0,'爱我中华,勿忘九.一八')COLOR0000FF;
DRAWTEXT_FIX(1,0.1,0.78,0,'踏平东京,报仇雪恨 '),COLOR80FFFF;
Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,DYBLOCK);
Z3:=STRCAT(Z2,' ');
DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLOR00C0C0;
ZT:=C>REF(C,1)*1.090 AND C<REF(C,1)*1.102;
DT:=C<REF(C,1)*0.901 AND C>REF(C,1)*0.898;
STICKLINE(ZT,C,O,4,0),COLORRED;
STICKLINE(DT,C,O,4,0),COLORBLUE;
DRAWTEXT(ZT,L-0.1,'涨停'),COLOR00FFFF;
DRAWTEXT(DT,H+0.3,'跌停'),COLOR00FF00;
DRAWTEXT(CROSS(ZIG(3,13),REF(ZIG(3,13),1)),LOW*1.001,'★底'),COLOR80FFFF;
DRAWTEXT(CROSS(REF(ZIG(3,13),1),ZIG(3,13)),HIGH*1,'★逃顶'), COLORRED;
VAR1AA:=((2)*(CLOSE)+OPEN+HIGH+LOW)/(5);
VAR2AA:=VOL;
VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);
VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);
DRAWTEXT(FILTER((VAR4AA>90),34),(LOW)*(0.99),'*加仓'),COLORRED;