筹码分析(源码 副图 通达信)
VAR1:=(C+H+O+L)/4;
卖出:XMA(VAR1,20)*(1+80/1000),COLORGREEN,LINETHICK2;
买入:XMA(VAR1,32)*(1-100/1000),COLORMAGENTA,LINETHICK2;
幅度:100*(卖出-买入)/买入,NODRAW;
MA1:=MA(VAR1,3);
STICKLINE(卖出 LOW AND 卖出 HIGH,卖出,MAX(卖出,MAX(OPEN,CLOSE)),3,0),COLORGREEN;
STICKLINE(卖出 MIN(C,O) AND 卖出 MAX(C,O),卖出,MAX(OPEN,CLOSE),3,0),COLORGREEN;
STICKLINE(卖出 LOW AND 卖出 HIGH,卖出,HIGH,0,0),COLORGREEN;
STICKLINE(卖出 LOW,OPEN,CLOSE,3,0),COLORGREEN;
STICKLINE(卖出 LOW,HIGH,LOW,0,0),COLORGREEN;
STICKLINE(买入 LOW AND 买入 HIGH,买入,MIN(MIN(OPEN,CLOSE),买入),3,0),COLORMAGENTA;
STICKLINE(买入 MIN(C,O) AND 买入 MAX(C,O),买入,MIN(OPEN,CLOSE),3,0),COLORMAGENTA;
STICKLINE(买入 LOW AND 买入 HIGH,买入,LOW,0,0),COLORMAGENTA;
STICKLINE(买入 HIGH,OPEN,CLOSE,3,0),COLORMAGENTA;
STICKLINE(买入 HIGH,HIGH,LOW,0,0),COLORMAGENTA;
DRAWTEXT(CROSS(C,买入) OR (L 买入),LOW*0.95,'B'),COLORRED,LINETHICK2;
DRAWTEXT(CROSS(C,卖出) OR (H 卖出),HIGH*1.02,'S'),COLORGREEN;
BBI:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,COLORWHITE;
平均成本:(COST(50)*100)/100,POINTDOT,COLORRED,LINETHICK4;
JJJ:=IF(DYNAINFO(8) 0.01,0.01*DYNAINFO(10)/DYNAINFO(8),DYNAINFO(3));
DDD:=(DYNAINFO(5) 0.01 || DYNAINFO(6) 0.01);
JJJT:=IF(DDD,1,(JJJ (DYNAINFO(5)+0.01) JJJ (DYNAINFO(6)-0.01)));
CYC1:IF(JJJT,0.01*EXPMA(AMOUNT,5)/EXPMA(VOL,5),EMA((HIGH+LOW+CLOSE)/3,5)),COLORMAGENTA;
CYC :IF(JJJT,DMA(AMOUNT/(100*VOL),100*VOL/FINANCE(7)),EMA
((HIGH+LOW+CLOSE)/3,120)),POINTDOT,COLOR00FFFF,LINETHICK2;
DRAWKLINE(H,O,L,C);