通达信机构K线源码公式:
CC:=10000*CLOSE/INDEXC;
HH:=10000*HIGH/INDEXH;
LL:=10000*LOW/INDEXL;
OO:=10000*OPEN/INDEXO;
VAR1:=(HH+LL)/2;
平衡线:SMA(REF(VAR1,8),13,1),COLORBLUE,LINETHICK2;
STICKLINE(CC>=OO,CC,OO,6,0.2),COLORRED;
STICKLINE(CC>=OO,LL,HH,0.2,0.2),COLORRED;
STICKLINE(CC<OO,CC,OO,6,0.2),COLORCYAN;
STICKLINE(CC<OO,LL,HH,0.2,0.2),COLORCYAN;
MA1:MA(CC,5);
MA2:MA(CC,10);
MA3:MA(CC,20);
MA4:MA(CC,30); |