通达信---底分形指标公式
JJJ:=IF(DYNAINFO(8)>0.01,0.01*DYNAINFO(10)/DYNAINFO(8),DYNAINFO(3));
分时均价:0.01*DYNAINFO(10)/DYNAINFO(8);
DDD:=(DYNAINFO(5)<0.01 || DYNAINFO(6)<0.01);
JJJT:=IF(DDD,1,(JJJ<(DYNAINFO(5)+0.01) && JJJ>(DYNAINFO(6)-0.01)));
M5:MA(C,5),;
CYC5:IF(JJJT,0.01*EXPMA(AMOUNT,5)/EXPMA(VOL,5),EMA((HIGH+LOW+CLOSE)/3,5)),LINETHICK1;
CYC∞:IF(JJJT,DMA(AMOUNT/(100*VOL),100*VOL/FINANCE(7)),EMA((HIGH+LOW+CLOSE)/3,120));
AA:=CYC5;
STICKLINE(CLOSE>AA,CLOSE,OPEN,3,0),COLORRED;
STICKLINE(CLOSE<AA,CLOSE,OPEN,3,0),COLORGREEN;
STICKLINE(CROSS(CLOSE,AA),CLOSE,AA,3,5),COLORYELLOW;
STICKLINE(CROSS(CLOSE,AA),O,AA,3,0),COLORYELLOW;
DIF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIF,9),COLORYELLOW;
MACD:=2*(DIF-DEA),NODRAW,COLORMAGENTA;
HO:=H>REF(H,1) AND H>REF(H,2) AND H>=REFX(H,1) AND IF(H=REFX(H,2),H>REFX(H,3),H>REFX(H,2));
FXH:=CROSS(HO,0.9);
HH:=REF(H,BARSLAST(FXH));
LO:=L<REF(L,1) AND L<REF(L,2) AND L<=REFX(L,1) AND IF(L=REFX(L,2),L<REFX(L,3),L<REFX(L,2));
FXL:=CROSS(LO,0.9);
LL:=REF(L,BARSLAST(FXL));
顶分形: HH,, POINTDOT,COLORMAGENTA;
STICKLINE(CLOSE,HH,HH,3,0),LINETHICK1,COLORMAGENTA;
底分形: LL, POINTDOT,COLORGREEN;
STICKLINE(CLOSE,LL,LL,3,0),LINETHICK1,COLORGREEN;
折线:=ZIG(1,5);
即时虚拟量:=IF(CURRBARSCOUNT=1 AND PERIOD=5,V*240/FROMOPEN,DRAWNULL);
虚拟量1:=IF(CURRBARSCOUNT>1,VOL,即时虚拟量),NODRAW;
十日低量:=(虚拟量1=LLV(VOL,10));
百日低量:=(虚拟量1=LLV(VOL,100));
DRAWTEXT(十日低量,H*1.02,'十低量');
DRAWTEXT(百日低量,H,'百低量');
异向并肩精准:= MIN(O,C)=REF(MAX(O,C),1) ;
DRAWTEXT(异向并肩精准,L*0.95,'异向精准'),COLORRED;