指标说明:黄色带为底部启动阶段,红色带为强势阶段,蓝色带为下跌趋势,红箭头为强劲信号。K线平铺更能发现其中奥妙,慢慢体会吧!
源码:
VAR1Z:=(C+O+L+H)/4;
开:O-VAR1Z,NODRAW;
高:H-VAR1Z,NODRAW;
低:L-VAR1Z,NODRAW;
收:C-VAR1Z,NODRAW;
上影线:IF(C>O,高-收,高-开),NODRAW;
下影线:IF(C>O,开-低,收-低),NODRAW;
收开线:IF(C>O,收-开,开-收),NODRAW;
STICKLINE(C>=O,收,开,2,1),COLORLIRED;
STICKLINE(C>=O,高,收,0,1),COLORLIRED;
STICKLINE(C>=O,低,开,0,1),COLORLIRED;
STICKLINE(C<O,收,开,2,1),COLORLIGREEN;
STICKLINE(C<O,高,开,0,1),COLORLIGREEN;
STICKLINE(C<O,低,收,0,1),COLORLIGREEN;
MACD:=MACD,NODRAW;
MARD:=SMA(MACD,3,1),NODRAW;
IF(MACD>MARD,MACD,DRAWNULL),COLORRED,NODRAW;
STICKLINE(MACD>MARD,MACD,MARD,3,0),COLORRED;
STICKLINE(MACD<MARD,MACD,MARD,5,0),COLORFF0000;
STICKLINE(MACD>MARD AND MACD<0,MACD,MARD,3,0),COLORYELLOW;
K:-MACD,COLORYELLOW;
D:-MARD,COLORWHITE;
倍数:MACD-MARD,NODRAW;
DRAWICON(MACD-MARD>0.1,(MACD+MARD)/2,1);