范 -支撑主图
X1:=130;Y:=200;Z:=10;
放牛线:(EMA(C,18)),POINTDOT,LINETHICK4,COLORYELLOW;
长压:REFDATE(HHV(H,60),DATE)COLORMAGENTA;
长支:REFDATE(LLV(L,60),DATE)COLORGREEN;
长平:REFDATE((长压+长支)/2,DATE)COLORBROWN;
压:REFDATE(HHV(H,15),DATE)COLORCYAN,CROSSDOT;
支:REFDATE(LLV(L,15),DATE)COLORCYAN,CROSSDOT;
平:REFDATE((压+支)/2,DATE)COLORCYAN,CROSSDOT;
短线:=EMA(C,7),COLORWHITE;
头:=MA(CLOSE,56)COLORGRAY;
STICKLINE(((C >= 放牛线) AND (C >= O)),O,C,2,1),COLORRED;
STICKLINE(((C >= 放牛线) AND (C <= O)),O,C,2,0),COLORRED;
STICKLINE(((C < 放牛线) AND (C >= O)),O,C,2,1),COLORGREEN;
STICKLINE(((C < 放牛线) AND (C <= O)),O,C,2,0),COLORGREEN;
老:=MA(CLOSE,5)COLORGRAY;
鸭:=MA(CLOSE,10)COLORGRAY;
PDAY1:=BARSLAST(CROSS(老,头));
PDAY2:=BARSLAST(CROSS(鸭,头));{形成鸭颈部}
PDAY3:=BARSLAST(HIGH=HHV(HIGH,PDAY2));{形成头部,要下跌}
PDAY4:=BARSLAST(CROSS(鸭,老));{下跌后,死叉}
PDAY5:=BARSLAST(CROSS(老,鸭));{回落不久,金叉,形成嘴部}
A1:=PDAY1>PDAY2 AND PDAY2>PDAY3 AND PDAY3>PDAY4 AND PDAY4>PDAY5 AND PDAY5<5;
A2:=COUNT(CROSS(鸭,老),PDAY2)=1;
A3:=老>头 AND 鸭>头;
老鸭头:=(A1 AND A2 AND A3) AND FILTER(A1 AND A2 AND A3 ,5);
DRAWTEXT(老鸭头>1,LOW*0.986,'↖关注'),COLORMAGENTA;
STICKLINE(老鸭头,O,C,1,1),COLORMAGENTA,LINETHICK3;
金牛:=(VOL<=LLV(VOL,15)*1.001)AND V>0;
STICKLINE(金牛,O,C,1,1),COLORYELLOW,LINETHICK3;
DRAWICON(金牛>0,长支*1.01,5);
SHORT:=2,200,12;
LONG:=2,200,26;
MID:=2,200,9;
DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:=EMA(DIF,MID);
MACD:=(DIF-DEA)*2;
强M:=MACD>=REF(MACD,1);
弱M:=MACD<REF(MACD,1);
准备买:DRAWICON(强M>0,长压*1.02,1);
{准备卖:DRAWICON(弱M>0,长支*0.98,2);};
- 上一篇公式:通信达MACD新趋势买入提示附图
- 下一篇公式:各方筹码分布源码