[飞狐通达信公式解密]副图指标 主图副图厉害啊
V0:=EMA(C,5),COLOR00FF66;
V1:EMA(C,10),COLOR00FF66;
V2:EMA(C,15),POINTDOT,LINETHICK4,COLORFFFFFF;
V3:EMA(C,30),POINTDOT,LINETHICK2;
V4:EMA(C,60),POINTDOT,LINETHICK2,COLOR3366FF;
年线:EMA(C,90),COLORBLUE,POINTDOT,LINETHICK2;
M1:=1000*V1/V4<=1015 AND 1000*V1/V4>=975;
M2:=1000*V2/V4<=1020 AND 1000*V2/V4>=980;
M3:=1000*V3/V4<=1015 AND 1000*V3/V4>=985;
M4:=M1 AND M2 AND M3 AND CROSS(V0,V1);
M5:=M1 AND M2 AND M3 AND CROSS(V0,V3);
DRAWTEXT((M4 , M5),(LOW * 0.93),'★金猪宝贝儿★'),COLOR00FFFF;
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
DRAWTEXT(CROSS(RSI,11),LOW,'★低吸 '),COLORFFFFFF;
AA1:=EMA(C,2); { 短指数平滑移动平均线 }
BB1:=EMA(AA1,2); { 平滑 }
A:=MA(BB1,3); { 平均 }
AA2:=EMA((H+C+O)/3,18); { 长指数平滑移动平均线 }
DD3:=A>=AA2 AND C>AA2; { 短>长,且收>长 }
DD4:=A<AA2 ; { 短<长 }
DD5:=A>AA2 ; { 短>长 }
DRAWTEXT(CROSS(84,RSI) , HIGH,'→ 逃顶 '),COLOR00FF00 ;
RSV1:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
KK:=SMA(RSV1,3,1);
DD:=SMA(KK,3,1);
JJ:=3*KK-2*DD;
M:=BARSLAST(CROSS(DD,JJ));
警示线:REF(H,M),POINTDOT,COLORYELLOW;{进场; 止赢; 止损; 黄}
STICKLINE(警示线,警示线,警示线,3.8,1),COLORYELLOW;
A1:=BACKSET(REF(H,2)=HHV(H,5),3);
A2:=BACKSET(REF(L,2)=LLV(L,5),3);
A3:=CROSS(A1,0.9);
A4:=CROSS(A2,0.9);
上沿:REF(H,BARSLAST(A3)),POINTDOT,COLORFF8918;
STICKLINE(C,REF(H,BARSLAST(A3)),REF(H,BARSLAST(A3)),5,1),COLORFF8918;
下沿:REF(L,BARSLAST(A4)),POINTDOT;
STICKLINE(C,REF(L,BARSLAST(A4)),REF(L,BARSLAST(A4)),5,1);
副图
VARA:=MA(CLOSE,20);
RSV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27));
K:=SMA(RSV,5,1);
D:=SMA(K,3,1);
D2:=SMA(K,2,1);
T1:=(3*K-2*D)*100;
天空:STICKLINE(T1,0,120,0.5,0),LINETHICK7,COLORFF8000;
山:=(3*K-2*D)*100;
桂山:STICKLINE(山,0,山,5,0),COLOR00FFDD;
STICKLINE(山,0,山*0.95,5,0),COLOR00FFBB;
STICKLINE(山,0,山*0.88,5,0),COLOR00FF99;
STICKLINE(山,0,山*0.8,5,0),COLOR00DD99;
STICKLINE(山,0,山*0.71,5,0),COLOR00BB99;
STICKLINE(山,0,山*0.6,5,0),COLOR00AA99;
STICKLINE(山,0,山*0.5,5,0),COLOR009999;
STICKLINE(山,0,山*0.4,5,0),COLOR008899;
T2:=((100-山)-100)*2/3;
漓江水:STICKLINE(T2,T2,-72,0.1,0),LINETHICK7,,COLORFFBB00;
倒影:T2,COLOR00FFCC,STICK;
STICKLINE(倒影,0,倒影*4/5,0.1,0),COLOR00CC99;
STICKLINE(倒影,0,倒影*3/5,0.1,0),COLOR009999;
STICKLINE(倒影,0,倒影*2/5,0.1,0),COLOR006699;
顶线:=100-((HIGH-VARA)/VARA);
RSV2:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
VAR1:=SMA(RSV2,3,1);
VAR2:=SMA(VAR1,3,1);
买入:=VAR1<16 AND VAR2<21 ;
卖出预警:=T1>=88 OR 顶线<=90;
卖出:=CROSS(顶线,T1) OR CROSS(90,T1);
T3:=买入;
打渔船:DRAWTEXT(FILTER(T3,2),山-45,'︼'),COLOR0000FF,;
T4:=卖出预警 OR 卖出;
南归雁:DRAWTEXT(FILTER(T4,2),山+20,'ω'),,COLOR0000FF;
{DRAWTEXT(FILTER(INDEXC,90,0,'●'),COLORFFFFFF;};
|