慢牛开启主图 公式说明: 多彩K线-主图用法:多彩K线注释看图说明:黄色为倍量柱,白色为并肩平量柱,紫色为缩倍柱,绿色为10天低量柱,蓝色为50天低量柱,灰色为百日低量柱,高量柱容易看无标记,!为长阴短柱, 内有红实线为假阴柱。红色箭头(的前三天)为黄金柱。次黄金柱难判,不标记C:现价,MA5角度:5日均线的角度。1.“多彩K线”功能:通过不同色彩,显示大阳大阴涨停跌停假阴假阳跳空大K线中点,一目了然,非常直观;2.直观体现“牛股三绝”(倍量不穿,高量不破,跳空不补)的攻防线:在倍量或高量柱虚底自动画线,在跳空缺口底部自动画线;为了简洁,对于相邻3天内出现的攻防线,公式只显示靠前的;3.当股价处于上升趋势时,一条条攻防线,就组成了“黄金梯”,故同时也可当作近似的黄金梯公式;4.关键价柱的3121刻度:在倍量、高量、大K线体内,自动画出3121刻度并向右延长。根据这些刻度和王子老师的“3121法则”,可以快速地判断股价后势升跌的力度。也可以用参数开关关闭刻度;5.画线位置虚实可调;
6.有超短线买卖点提示;也可以用参数开关关闭提示;
公式源码:
三一:HIGH-(HIGH-LOW)*0.333,NODRAW;二一:HIGH-(HIGH-LOW)*0.5,NODRAW;三二:HIGH-(HIGH-LOW)*0.666,NODRAW;实体三一:OPEN+(CLOSE-OPEN)*0.666,NODRAW;实体腰线:OPEN+(CLOSE-OPEN)*0.5,NODRAW;DRAWTEXT_FIX(ISLASTBAR,0,0,0,HYBLOCK);DRAWTEXT_FIX(ISLASTBAR,0.05,0,0,DYBLOCK);DRAWTEXT_FIX(ISLASTBAR,0.1,0,0,GNBLOCK);STICKLINE(REF(LOW,1)>HIGH,HIGH,REF(LOW,1),5,0),COLORGRAY;STICKLINE(REF(HIGH,1)<LOW,LOW,REF(HIGH,1),5,0),COLORGRAY;C_:CONST(CLOSE),POINTDOT,COLORLIRED;VAR1:=MA(CLOSE,5);MA5角度:ATAN((VAR1/REF(VAR1,1)-1)*100)*180/3.1416,NODRAW;DRAWKLINE(HIGH,OPEN,LOW,CLOSE);VAR2:=REF(CLOSE,1);VAR3:=IF(CLOSE>=1,10000,100000);VAR4:=1.1*VAR2-49/VAR3;VAR5:=1.05*VAR2-49/VAR3;VAR6:=0.9*VAR2+51/VAR3;VAR7:=0.95*VAR2+51/VAR3;VAR8:=NAMELIKE(8) OR NAMELIKE(9);VAR9:=IF(VAR8,CLOSE>=VAR5,CLOSE>=VAR4);VAR10:=IF(VAR8,CLOSE<=VAR7,CLOSE<=VAR6);VAR11:=IF(VAR8,HIGH>=VAR5,HIGH>=VAR4);VAR12:=IF(VAR8,LOW<=VAR7,LOW<=VAR6);STICKLINE(VAR11,HIGH,MAX(CLOSE,OPEN),0,0),COLORYELLOW;STICKLINE(VAR12,LOW,MIN(CLOSE,OPEN),0,0),COLORBLUE;VAR13:=CLOSE>OPEN AND (CLOSE>=VAR5 OR CLOSE>1.05*OPEN-51/VAR3) OR (CLOSE>1000 AND CLOSE>VAR2*1.024);STICKLINE(VAR13,OPEN,CLOSE,1,0),COLOR0000BB;VAR14:=CLOSE<OPEN AND (CLOSE<=VAR7 OR CLOSE<0.95*OPEN+49/VAR3) OR (CLOSE>1000 AND CLOSE<VAR2*0.976);STICKLINE(VAR14,OPEN,CLOSE,1,0),COLORLIGREEN;STICKLINE(VAR9,OPEN,CLOSE,1,0),COLORYELLOW;STICKLINE(VAR10,OPEN,CLOSE,1,0),COLORBLUE;VAR15:=CLOSE<OPEN AND CLOSE>REF(CLOSE,1);STICKLINE(VAR15,OPEN,CLOSE,0,0),COLORRED;VAR16:=CLOSE>OPEN AND CLOSE<REF(CLOSE,1);STICKLINE(VAR16,OPEN,CLOSE,0,0),COLORGREEN;VAR17:=PERIOD=5 AND NAMELIKE(53) AND (ABS(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>=0.025 OR ABS(CLOSE-OPEN)>=60);STICKLINE(VAR17,(HIGH+LOW)/2,(HIGH+LOW)/2,2,0),COLORYELLOW;STICKLINE(VAR13 OR VAR14 OR VAR9 OR VAR10 AND BETWEEN(CLOSE,1,500),LOW+(HIGH-LOW)/2,LOW+(HIGH-LOW)/2,1,0),COLORYELLOW;
|