通达信迎财神副图公式
A1:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
A2:=(MA(3*SMA(A1,6,1)-2*SMA(SMA(A1,5,1),5,1),2));
A3:=(C-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
A4:=SMA(SMA(A3,3,1),3,1);
A5:=3*SMA(A3,3,1)-2*A4;
A6:=EMA(A5,5);
A7:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3);
A8:=((3*SMA((((C-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20)))*100),5,1))-(2*SMA(SMA((((C-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20)))*100),5,1),3,1)));
财神爷:=A2<3 AND A6<3 AND A7<8.5 AND A8<5;
DRAWTEXT(财神爷,50,' ★恭候财神★'),COLORMAGENTA;
DRAWTEXT(财神爷,35,' ★招财童郎★'),COLORYELLOW;
STICKLINE(财神爷,58,55,14,0),COLOR00CCCC;
STICKLINE(财神爷,57,56,12,0),COLOR009999;
STICKLINE(财神爷,45,48,4,0),COLOR0077AA;
STICKLINE(财神爷,54,50,10,0),COLOR0088DD;
STICKLINE(财神爷,55,48,6,0),COLOR00AAFF;
STICKLINE(财神爷,53,52,4,0),COLOR000000;
STICKLINE(财神爷,53,50,1,0),COLOR0077EE;
STICKLINE(财神爷,60,55,7,0),COLOR8800CC;
STICKLINE(财神爷,60,63,4,0),COLOR7700AA;
财神:IF(财神爷,58,DRAWNULL),LINETHICK4,POINTDOT,COLORYELLOW;
STICKLINE(财神爷,26,20,12,0),COLORFFFFFF;
STICKLINE(财神爷,33,25,14,0),COLOR8800CC;
STICKLINE(财神爷,46,32,16,0),COLORAA00DD;
STICKLINE(财神爷,37,34,8,0),COLOR00AAFF;
STICKLINE(财神爷,50,44,2,0),COLOR000000;
STICKLINE(财神爷,49,49,1,0),COLOR0000EE;
DRAWICON(财神爷,39,9);
AA1:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1);
机构线:=EMA(AA1,5),LINETHICK2,COLOR6600FF;
AA2:=(机构线-REF(机构线,1))/REF(机构线,1)*100;
AA4:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
趋势线:=(MA(3*SMA(AA4,6,1)-2*SMA(SMA(AA4,5,1),5,1),2)),LINETHICK2,COLORYELLOW;
大势已去:IF(CROSS(机构线,A1)AND 机构线>70 AND 趋势线>80,60,65),COLORFF9900,LINETHICK2;
买点:IF(趋势线<-3,20,15),LINETHICK2,COLORMAGENTA;
RSV1:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
K1:=SMA(RSV1,3,1);
D1:=SMA(K1,3,1);
J11:=3*K1-2*D1;
X:=LLV(J11,2)=LLV(J11,8);
状元郎:=CROSS(J11,REF(J11+0.01,1)) AND X AND J11<20;
{状元郎:=LAST(MA(C,5)<MA(C,10),5,0) AND "CCI.CCI">REF("CCI.CCI",1) AND CROSS("CCI.CCI",-100);}
STICKLINE(状元郎,58,55,14,0),COLORYELLOW;{冒角}
STICKLINE(状元郎,57,56,12,0),COLORCYAN;{冒角心}
STICKLINE(状元郎,45,48,4,0),COLORWHITE;{脖子}
STICKLINE(状元郎,53,50,9,0),COLOR0088DD;{耳}
STICKLINE(状元郎,55,48,6,0),COLORLIRED;{面}
STICKLINE(状元郎,53,53,5,0),COLOR000000;{眼毛}
STICKLINE(状元郎,52,52,3,0),COLOR000000;{眼睛}
STICKLINE(状元郎,53,50,2,0),COLOR0077EE;{鼻子}
STICKLINE(状元郎,53,50,1,0),COLOR0077EE;{鼻子}
STICKLINE(状元郎,60,55,7,0),COLORRED;{冒}
STICKLINE(状元郎,60,63,4,0),COLORRED;{冒顶}
状元献宝:IF(状元郎,58,DRAWNULL),LINETHICK4,POINTDOT,COLORGREEN;{冒中}
STICKLINE(状元郎,20,17,16,0),COLORWHITE;{脚}
STICKLINE(状元郎,22,20,12,0),COLORYELLOW;{底}
STICKLINE(状元郎,22,17,5,0),COLORBLACK;{脚}
STICKLINE(状元郎,33,22,13,0),COLORRED;{下}
STICKLINE(状元郎,46,42,18,0),COLORMAGENTA;{肩}
STICKLINE(状元郎,46,31,16,0),COLORRED;{中}
STICKLINE(状元郎,41,31,12,0),COLORBROWN;{中1}
STICKLINE(状元郎,41,31,11,0),COLORRED;{中2}
STICKLINE(状元郎,32,31,12,0),COLORYELLOW;{裙带}
STICKLINE(状元郎,35,33,8,0),COLOR00AAFF;{宝座}
STICKLINE(状元郎,49,49,1,0),COLOR0000EE};{嘴}
DRAWICON(状元郎,38,9);{宝};
DRAWICON(状元郎,26,29);{神};
65266873.png
|