筹码牛熊线指标公式
VAR1: =DMA(AMOUNT/V/100, V/CAPITAL) ;
筹码线: VAR1*1. 1;
牛熊线: COST(75) ;
持仓线: MA(CLOSE, 20) , COLORGRAY;
STICKLINE(C>0, O, C, 4, 0) , COLORBLUE;
STICKLINE(C>0, H, L, 0. 4, 0) , COLORBLUE;
A: =CLOSE>筹码线 AND CLOSE>牛熊线 AND CLOSE>持仓线;
B: =CLOSE>筹码线 AND CLOSE<牛熊线 AND CLOSE>持仓线;
STICKLINE(A>0, O, C, 4, 0) , COLORYELLOW;
STICKLINE(A>0, H, L, 0. 4, 0) , COLORYELLOW;
STICKLINE(B>0, H, L, 0. 4, 0) , COLORMAGENTA;
STICKLINE(B>0, O, C, 4, 0) , COLORMAGENTA;
IF(CLOSE>牛熊线, 牛熊线, DRAWNULL) , COLORMAGENTA , LINETHICK2;
IF(CLOSE>持仓线, 持仓线, DRAWNULL) , COLORGREEN , LINETHICK2;
IF(CLOSE>筹码线, 筹码线, DRAWNULL) , COLORRED, LINETHICK2;
牛熊线主图指标公式
BB:=CLOSE>MA(CLOSE,18)ANDCLOSE/MA(CLOSE,18)>1.003AND
MA(CLOSE,18)>REF(MA(CLOSE,18),1)ANDMA(CLOSE,18)-REF(MA(CLOSE,18),1)>0.003
OR(CROSS(CLOSE,MA(CLOSE,18))ANDCLOSE/REF(CLOSE,1)>=1.0994);
SS:=CLOSE<MA(CLOSE,18)ANDCLOSE<=OPENAND
MA(CLOSE,18)<REF(MA(CLOSE,18),1)ANDREF(MA(CLOSE,18),1)-MA(CLOSE,18)>0.006
OR(CROSS(MA(CLOSE,18),CLOSE)ANDMA(CLOSE,18)-CLOSE>0.01AND
(REF(CLOSE,1)-CLOSE)/REF(CLOSE,1)>=0.0994);
操盘线:MA(CLOSE,18),COLORWHITE;
牛股线:MA(CLOSE,65),COLORMAGENTA,LINETHICK2;
MM:=TFILTER(BB,SS,0);
TDXSTEP108:DRAWICON(FILTER(MM=1,3),LOW*0.985,1);
TDXSTEP109:DRAWICON(FILTER(MM=2,3),HIGH*1.015,2);
BY:=TFILTER(BB,SS,1);
MC:=TFILTER(SS,BB,1);
T1:=BARSLAST(BY);
T2:=BARSLAST(MC);
SC:=T1-T2;
TDXSTEP110:STICKLINE(CLOSE>OPEN,LOW,HIGH,0,0),COLORGREEN;
TDXSTEP111:STICKLINE(CLOSE>OPEN,OPEN,CLOSE,2,1),COLORGREEN;
TDXSTEP112:STICKLINE(CLOSE<OPEN,OPEN,CLOSE,2,0),COLORGREEN;
TDXSTEP113:STICKLINE(T2>0ANDSC<0,HIGH,LOW,0,0),COLORRED;
TDXSTEP114:STICKLINE(T2>0ANDSC<0,OPEN,CLOSE,2.5,1),COLORRED;
TDXSTEP115:STICKLINE(T2>0ANDSC<0AND
OPEN>CLOSE,OPEN,CLOSE,2.5,0),COLORRED;
评论(0)