通达信清晰指导买卖,混沌K线副图源码
{大爱无垠-乖离K线}
HH:=H-MA((C+O+H+L)/4,5);
OO:=O-MA((C+O+H+L)/4,5);
LL:=L-MA((C+O+H+L)/4,5);
CC:=C-MA((C+O+H+L)/4,5);
KK:DRAWKLINE(HH,OO,LL,CC);
0;
{迷糊鱼2010-对数金昌九版}
A:=(2*C-H-L)*V;
B:=WMA(A,5);
LNB:=LN(B);
BB:=IF(LNB>1,B,LNB)+100;
0,DOTLINE;
GG:=BB-REF(BB,1);
STICKLINE(GG>0 AND BB>0,OO,CC,3,0),COLORRED;
STICKLINE(GG<0,OO,CC,3,0),COLORGREEN;
{前识者-力量压}
HV:=HHV(V,5);
阴:=O>C;
阳:=C>O;
平:=C=O;
MV:=((SUM(V,5)/HV));
量能:=IF(MV>0.3,1,0);
阴量:=IF(阴 AND 量能,V,0);
阳量:=IF(阳 AND 量能,V,0);
平量:=IF(平 AND 量能,V,0);
正能:=SUM(阳量,3)/10000;
负能:=SUM(阴量,3)/10000;
动能线:=(正能-负能);
STICKLINE(动能线>0 AND 负能>0,OO,CC,3,0),COLORRED;
STICKLINE(动能线<负能,OO,CC,3,0),COLORGREEN;
STICKLINE(负能=0,OO,CC,3,0),COLORMAGENTA;