箱体快慢线主图指标 通达信公式(附图)

[复制链接]
查看96 | 回复0 | 2021-8-20 17:36:25 | 显示全部楼层 |阅读模式

SSL:=EMA(CLOSE,3);
XXL:=EMA(L,3);
MM:=EMA(((SLOPE(CLOSE,22) * 20) + CLOSE),55);
XXL,COLORYELLOW,LINETHICK2; STICKLINE(((XXL>MM)),XXL,MM,1,0),COLORRED; 
SA:=(MM*0.985);
SS:=(MA(CLOSE,5));
走势线:IF(((SSL>MM)),MM,SA),LINETHICK2,COLORFF00FF;
JJ:=(O+H+L)/3; A:=SMA(JJ,4,1);
价均线:A,COLORYELLOW,LINETHICK1;
VA1:=EMA(C,4);
VA2:=EMA(C,13);
DRAWTEXT(CROSS(VA2,VA1),H*1.05,'★卖'),COLOR00FF22; DRAWTEXT(CROSS(VA1,VA2) AND (C>O) AND 价均线>REF(价均线,1),VA1*0.92,'★买'),COLOR0055FF; {慢线趋势线空方线--第二买位置的确定} Q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100; Q3:=SMA(Q2, 9, 1);
Q4:=SMA(Q3, 3, 1);
慢线:=3*Q3-2*Q4; 趋势:=EMA(Q3, 3);
VARKK:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100; 空方:=SMA(VARKK,3,1);
VARKF:=REF(CLOSE,2);
快线:=SMA(MAX(CLOSE-VARKF,0),7,1)/SMA(ABS(CLOSE-VARKF),7,1)*100; CC1:=趋势-慢线; XX1:=CROSS(慢线,趋势) AND 空方>1.005*趋势 AND 快线>REF(快线,1) AND COUNT(CC1>0,12)>10 AND C>O; DRAWTEXT(XX1,VA1*0.9,'◆'),COLORF000F0;
VAR1:=(C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100; VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR4:=SMA(VAR3,3,1);
NX7:=DRAWTEXT(CROSS(VAR3,VAR4) AND C>O AND VAR3<40,LOW*0.96,'★'),COLORF000F0; {彩色K线} 
STICKLINE(C>=O,C,O,5,0),COLORRED; 
STICKLINE(C>=O,H,L,0,0),COLOR00FFFF; 
STICKLINE(C<=O,C,O,5,0),COLORGREEN; 
STICKLINE(C<=O,H,L,0,0),COLORFFFF00; {箱体确定} 
箱顶:MA(REF(HHV(C,15),1),2),COLOR0000FF,LINETHICK2; 
箱底:MA(REF(LLV(C,15),1),2),COLOR00FF00,LINETHICK2; {跟的确定} 
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
GGG:=CROSS(买线,卖线)AND 箱顶>=REF(箱顶,1);
DRAWTEXT(GGG,LOW*0.95,'加'),COLOR00F0F0;
DRAWTEXT(XX1,VA1*0.85,'买'),COLOR0000F0;

14P552529420-5X52.jpg

14P552529420-5X52.jpg

回复

使用道具 举报

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

本版积分规则