通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
公式解读:
B1:=EMA((2*CLOSE+HIGH+LOW)/4,5);
A1:IF(EMA((2*CLOSE+HIGH+LOW)/4,6) REF(EMA((2*CLOSE+HIGH+LOW)/4,6),1),
B1,DRAWNULL),COLOR0000FF;
A2:IF(EMA((2*CLOSE+HIGH+LOW)/4,6) REF(EMA((2*CLOSE+HIGH+LOW)/4,6),1),
B1,DRAWNULL),COLOR00FF00;
B2:=EMA((2*CLOSE+HIGH+LOW)/4,13);
A3:IF(EMA((2*CLOSE+HIGH+LOW)/4,10) REF(EMA((2*CLOSE+HIGH+LOW)/4,13),1
),B2,DRAWNULL),COLOR0000FF;
A4:IF(EMA((2*CLOSE+HIGH+LOW)/4,10) REF(EMA((2*CLOSE+HIGH+LOW)/4,13),1
),B2,DRAWNULL),LINETHICK2,COLOR00FF00;
B3:=REF(EMA((LOW+CLOSE+OPEN)/3,25),1);
A5:IF(EMA((LOW+CLOSE+OPEN)/3,28) REF(EMA((LOW+CLOSE+OPEN)/3,28),1),B3
,DRAWNULL),LINETHICK3,COLOR0000FF;
A6:IF(EMA((LOW+CLOSE+OPEN)/3,28) REF(EMA((LOW+CLOSE+OPEN)/3,28),1),B3
,DRAWNULL),LINETHICK3,COLOR00FF00;
B4:=(EMA(LOW,125)+EMA((CLOSE+LOW)/2,125))/2;
A7:IF((EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2 REF((EMA(LOW,125)+EMA((
CLOSE+LOW)/2,250))/2,1),B4,DRAWNULL),POINTDOT,COLOR0000FF;
A8:IF((EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2 REF((EMA(LOW,125)+EMA
((CLOSE+LOW)/2,250))/2,1),B4,DRAWNULL),POINTDOT,COLOR00FF00;
RSI1:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,COLOR555
555;
大买主升浪:IF(TROUGHBARS(3,16,1)=0AND
HIGH LOW+0.04,90,0),COLOR1010FF,LINETHICK2;
V6:=CLOSE/REF(CLOSE,3) =1.1;
V7:=BACKSET(V6,4);
买:IF((V7ANDCOUNT(V7,3)=1),40,0),COLORCYAN,STICK,LINETHICK3;
LS:=C/REF(C,1) 1.040ANDC=HAND
BETWEEN(FORCAST(V,4),0.2*FORCAST(V,12),2.1
*FORCAST(V,5)),COLORFF6600,LINETHICK1;
买:FILTER(LS,28)*40,COLORFF6600,LINETHICK3,STICK;
VAR26:=EMA(CLOSE,2)-EMA(CLOSE,150);
VAR27:=EMA(VAR26,100);
VAR28:=2*(VAR26-VAR27);
VAR29:=POW(VAR28,3)*0.1+POW(VAR28,1);
黑马线:IF(VAR28 0.1,VAR29,0)*3,COLOR400080,LINETHICK2;
低买:IF(TROUGHBARS(3,6,1)=0AND
HIGH LOW+0.04,50,0),COLOR1010FF,LINETHICK1;
高卖:IF(PEAKBARS(3,6,1) 1.0=1,70,0),COLORGREEN,LINESTICK,LINETHICK1;
顶部:100,LINETHICK3,COLOR0000AA;
风险:90,COLOR006666,POINTDOT,LINETHICK5;
平衡:50.5,COLOR998899,POINTDOT;
安全:10,COLOR009900,POINTDOT,LINETHICK5;
底部:0,LINETHICK3,COLORAAAA88;
A:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19);
B:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
D:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4);
中期线:D+100,COLOR006666;
短期线:EMA(B,3)+100,COLORDD8800,LINETHICK2;
IF1:IF(短期线 =11,短期线,DRAWNULL),COLORRED,LINETHICK2;
IF2:IF(短期线 =80,短期线,DRAWNULL),COLORYELLOW,LINETHICK2;
用法:黄色顶部区域,红色底部区域,慢慢体会
量:=(CLOSE-LLV(LOW,32))/(HHV(HIGH,32)-LLV(LOW,32))*1.2*CLOSE;量1:=EMA(量,3);
量2:=EMA(量,5);量3:=EMA(量,7);STICKLINE(量1
=量2,量3,量1,3,0),COLOR0000AA;
STICKLINE(量1 =
量2,量3,量1,2,0),COLOR0000BB;
STICKLINE(量1 =
量2,量3,量1,1.5,0),COLOR0000CC;
STICKLINE(量1 =
量2,量3,量1,1,0),COLOR0000DD;
STICKLINE(量1 =
量2,量3,量1,0.5,0),COLOR0000EE;
STICKLINE(量1 =
量2,量3,量1,0.1,0),COLOR0000FF;
STICKLINE(量1 =
量2,量3,量1,3,0),COLORFF0000;
STICKLINE(量1 =
量2,量3,量1,2,0),COLORFF3300;
STICKLINE(量1 =
量2,量3,量1,1.5,0),COLORFF7700;
STICKLINE(量1 =
量2,量3,量1,1,0),COLORFF9900;
STICKLINE(量1 =
量2,量3,量1,0.5,0),COLORFFBB00;
STICKLINE(量1 =
量2,量3,量1,0.1,0),COLORFFFF00;
T1:=量2 =量3AND量1 REF(量1,1);T2:=量2 量3AND量1
REF(量1,1);
STICKLINE(T1,量1,量3,3,0),COLORFFBB11;STICKLINE(T1,
3,1.5,0),COLORFFFF55;
STICKLINE(T2,量1,量3,3,0),COLOR338FDD;STICKLINE(T2,
3,1.5,0),COLOR00FFFF;
量1,
量1,
量量
顶部:100,LINETHICK3,COLOR0000AA;
风险:90,COLOR006666,POINTDOT,LINETHICK5;
平衡:50.5,COLOR998899,POINTDOT;
安全:10,COLOR009900,POINTDOT,LINETHICK5;
底部:0,LINETHICK3,COLORAAAA88;
A:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19);
B:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
D:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4);
中期线:D+100,COLOR006666;
短期线:EMA(B,3)+100,COLORDD8800,LINETHICK2;
IF1:IF(短期线 =11,短期线,DRAWNULL),COLORRED,LINETHICK2;
IF2:IF(短期线 =80,短期线,DRAWNULL),COLORYELLOW,LINETHICK2;
N:=34;M:=3;
28,COLORFFFFFF;
STICKLINE(C 0,0,2,5,0),COLOR00008A;
STICKLINE(C 0,2,5,5,0),COLOR85008A;
STICKLINE(C 0,5,10,5,0),COLOR657600;
STICKLINE(C 0,10,21.5,5,0),COLOR690079;
STICKLINE(C 0,21.5,28,5,0),COLOR79B715;
VAR1:=EMA(100*(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N)),M)/4,COLORFFFF
00,LINETHICK2;
VAR2:IF(VAR1 23.16,VAR1,0),COLOR00FFFF,LINETHICK1;
BB:IF(VAR1 2,6,0),COLOR00FFFF,LINETHICK4;
DD:IF(VAR1 21.5,25.5,28),COLOR0000FF,LINETHICK4;
AA:IF(VAR1 23.16,24.5,28),COLORRED,LINETHICK4;
DRAWBAND(BB,RGB(190,0,100),0,RGB(0,0,0));
DRAWBAND(VAR2,RGB(250,250,0),0,RGB(0,0,0));
DRAWBAND(28,RGB(210,210,210),DD,RGB(0,0,0));
DRAWBAND(28,RGB(250,250,0),AA,RGB(0,0,0));
STICKLINE(C 0,2,2,2,0),COLORFF00FF;
STICKLINE(C 0,5,5,2,0),COLOR00FFFF;
STICKLINE(C 0,23.16,23.16,2,0),COLORFF0000;
线:VAR1,,COLORFFFF00,LINETHICK2;
DRAWICON(CROSS(顶底线,2),2,23);
DRAWICON(CROSS(顶底线,5),5,13);
DRAWICON(CROSS(21.5,顶底线),21.5,14);
DRAWICON(CROSS(23.16,顶底线),23.16,15);
DRAWTEXT(CURRBARSCOUNT=38,1, 底部区 ),COLOR00FFFF;
公式解读:
指标释义:我们只需要关注黄色以及蓝色的K线,其余的线条一律不看。
1,黄色K线代表行为K线的诱多或者是拉升,总之代表一切短期看多的力量。
2,蓝色K线代表主力行为K线的洗盘或者是出货,总之代表一些看空的力量。
主力行为里面只有一种组合是最容易赚钱的,那就是洗盘之后的拉升。洗完了盘,再拉升,
往往是真拉升,那么对应的颜色就是先出蓝色K线,再出黄色K线。而且为了确定是洗
盘,往往蓝色线出现之后在8跟K线之内就应该出现黄线,否则前面的蓝线就不能代表洗
盘了,蓝线过后超过8根K线的调整有可能是出货。
例如:
【8根K线之内真拉升】
【距离过远,假拉升】释义:出货阶段之后诱多,再出货,K线颜色便是蓝色,然后长时
间下跌,出黄线诱多,然后再出蓝色线。
同样的,如果是先出黄线,再出蓝线,那么危险就降临了,相对应的意义就是:诱多完毕
之后的下跌,往往是真下跌。或者是出货。例如:
关于卖点,如果简单按照指标来的话,就是拉升完毕之后出现蓝色线,短线获利出局,但
是蓝色线之后不久又出黄色线,那么说二次拉升又开始。这个卖点,最好不好参照这个指
标。例如:
指标使用注意事项
*另外黄色线跟蓝色线一般情况下是主力行为的起点K线。个别情况下会出现滞后,但是我
们可以自己来调整。
黄色线必须是阳线。
*主力行为K线的实体相对比较大,实体越小的黄蓝K线,成为主力行为K线的可能性越
小,成为公式计算误差的概率越大,因此我们应该忽略掉。尤其是窄幅盘整的股票。例如:
上升通道的股票出现小K线也有黄蓝色也应该忽略掉,都是系统的误报。
*主力行为K线指标适用于宽幅震荡行情,或者是上升通道的股票。单边下跌的股票不
适用。黄蓝K线距离过远的股票不适用。【单边下跌不适用】例如:
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
DRAWICON(BU,L-0.1,1);
DRAWICON(SEL,H+0.1,2);
STICKLINE(买线 =卖线,LOW,HIGH,0.0,1),COLORRED;
STICKLINE(买线 =卖线,CLOSE,OPEN,2,1),COLORRED;
STICKLINE(买线 卖线,LOW,HIGH,0.0,1),COLORGREEN;
STICKLINE(买线 卖线,CLOSE,OPEN,2,1),COLORGREEN;
STICKLINE(BU,OPEN,CLOSE,2,0),COLORYELLOW;
STICKLINE(SEL,OPEN,CLOSE,2,0),COLORBLUE;
主力:=EMA(CLOSE,10),COLORRED;
:=EMA(CLOSE,5),COLORWHITE;绿降:=(46.18*EMA(CLOSE,10)-31.82*EMA(CLOSE,4))/14.36,COLORGREEN,LINETHICK
1;
操盘:MA(CLOSE,9),COLORCYAN,LINETHICK2;
界点:MA(CLOSE,20),COLORMAGENTA;