通达信实体与分位价指标公式
通达信KDJ+ROC指标公式
{N 0 255 0 N1 0 255 0 N2 0 255 0 N3 0 255 0 N4 0 255 0}
AA:=(C*2+L+H+O*2)/6;
EA1:=EMA(AA,3),LINETHICK0,COLORFFFFFF;
EA2:=EMA(AA,8),LINETHICK1,COLOR00FFFF;
DRAWBAND(EA1,RGB(177,99,99),EA2,RGB(70,100,50));
EA3:=EMA(AA,17),LINETHICK4,COLOR0000FF;
EA4:=EMA(AA,26),LINETHICK1,COLOR00FF00;
DRAWBAND(EA3,RGB(255,172,132),EA4,RGB(119,119,255));
{指标网-专业指标公式网站 www.zhibiaow.com}
stICKLINE(C>=O,C,O,3,0),COLOR0000AA;
STICKLINE(C>=O,C,O,1.8,0),COLOR0000CC;
STICKLINE(C>=O,C,O,0.6,0),COLOR0000EE;
STICKLINE(C>=O,H,L,0,0),COLOR0000FF;
STICKLINE(C<O,C,O,3,0),COLORAAAA00;
STICKLINE(C<O,C,O,1.8,0),COLORCCCC00;
STICKLINE(C<O,C,O,0.6,0),COLOREEEE00;
STICKLINE(C<O,H,L,0,0),COLORFFFF00;
EX3:expma(AA,17),LINETHICK2,COLORFF00FF;
EX1:EXPMA(AA,3),LINETHICK1,COLORFFFFFF;
DRAWTEXT(ISLASTBAR,EA1,'3'),COLORFFFFFF;
IF(EX3<REF(EX3,1),EX3,DRAWNULL),LINETHICK2,COLORFF0000;
YCE:=EA2>=REF(EA2,1);
H2:=MAX(MAX(EA2,EA3),EA4);
L2:=MIN(MIN(EA2,EA3),EA4);
阳穿三线:= H2<C AND O<L2 AND YCE AND EA1>REF(EA1,1);
STICKLINE(阳穿三线,O+(C-O)*0.25,O,2.2,0),COLOR6AD500;
MA2:=EMA(C,2);
MA5:=EMA(C,5);
MA13:=EMA(C,13);
MA34:=EMA(C,34);
YCX:=MA5>=REF(MA5,1);
H1:=MAX(MAX(MA5,MA13),MA34);
L1:=MIN(MIN(MA5,MA13),MA34);
一阳穿三线:= H1<C AND O<L1 AND YCX AND MA2>REF(MA2,1);
STICKLINE(一阳穿三线,O+(C-O)*0.15,O,1.6,0),COLORYELLOW;
FUZ:=L+((H-L)/2);FUS:=O+((C-O)/2); FUSY:=C+((O-C)/2);SSFU:=(FUZ+IF(C>O,FUS,FUSY))/2;
FUZ1:=L+((H-L)*0.333);FUS1:=O+((C-O)*0.333);FUS1Y:=C+((O-C)*0.333);SSFU1:=(FUZ1+IF(C>O,FUS1,FUS1Y))/2;
FUZ2:=L+((H-L)*0.667);FUS2:=O+((C-O)*0.677);FUS2Y:=C+((O-C)*0.667);SSFU2:=(FUZ2+IF(C>O,FUS2,FUS2Y))/2;
STICKLINE(C=C,SSFU2,SSFU2,1.5,0),COLORFF0000,LINETHICK1;
STICKLINE(C=C,SSFU1,SSFU1,1.5,0),COLORFF0000,LINETHICK1;
STICKLINE(C=C,SSFU,SSFU,2.6,0),COLOR00FFFF,LINETHICK1;
STICKLINE(C=C,IF(C>O,H-((H-C)/2),H-((H-O)/2)),IF(C>O,H-((H-C)/2),H-((H-O)/2)),0.5,0),COLORYELLOW,LINETHICK1;
STICKLINE(C=C,IF(C<O,L+((C-L)/2),L+((O-L)/2)),IF(C<O,L+((C-L)/2),L+((O-L)/2)),0.5,0),COLORYELLOW,LINETHICK1;
AJ:=AMOUNT/(vol*100),COLORFFFFFF,LINETHICK0;
DRAWTEXT(C=C,AJ,'←'),COLORFFFFFF;
BGD:=C=HHV(C,6),LINETHICK0;
BDD:=C=LLV(C,6),LINETHICK0;
N10:=BArslAST(BGD);
N20:=BARSLAST(BDD);
高S:=IF(N10,REF(C,N10),REF(C,N10))*1.005,POINTDOT,COLOR00FF00;
低S:=IF(N20,REF(C,N20),REF(C,N20))*0.995,POINTDOT,COLORFF00FF;
STICKLINE(C>0,高S,高S,1,0),COLOR00FF00;
STICKLINE(C>0,低S,低S,1,0),COLORFF00FF;
MAA:MA(C,N),COLORFFFFFF;
MAB:MA(C,N1),COLOR00FFFF;
Mac:MA(C,N2),COLORFF00FF;
MAD:MA(C,N3),COLOR00FF00;
MAE:MA(C,N4),COLORFFFF00;
MAF:MA(C,55),COLOR208FFF;
DRAWTEXT(ISLASTBAR AND MAA>REF(MAA,1),MAA,'↑'),COLORFFFFFF;
DRAWTEXT(ISLASTBAR AND MAA<REF(MAA,1),MAA,'↓'),COLORFFFFFF;
DRAWTEXT(ISLASTBAR AND MAB>REF(MAB,1),MAB,' ↑'),COLOR00FFFF;
DRAWTEXT(ISLASTBAR AND MAB<REF(MAB,1),MAB,' ↓'),COLOR00FFFF;
DRAWTEXT(ISLASTBAR AND MAD>REF(MAD,1),MAD,'↑'),COLOR00FF00;
DRAWTEXT(ISLASTBAR AND MAD<REF(MAD,1),MAD,'↓'),COLOR00FF00;
DRAWTEXT(ISLASTBAR AND MAC>REF(MAC,1),MAC,' ↑'),COLORFF00FF;
DRAWTEXT(ISLASTBAR AND MAC<REF(MAC,1),MAC,' ↓'),COLORFF00FF;
DRAWTEXT(ISLASTBAR AND MAF>REF(MAF,1),MAF,' ↑'),COLOR208FFF;
DRAWTEXT(ISLASTBAR AND MAF<REF(MAF,1),MAF,' ↓'),COLOR208FFF;
DRAWTEXT(ISLASTBAR AND MAE>REF(MAE,1),MAE,' ↑'),COLORFFFF00;
DRAWTEXT(ISLASTBAR AND MAE<REF(MAE,1),MAE,' ↓'),COLORFFFF00;
通达信多空平衡指标公式