DRAWTEXT_FIX(1,0.0,0.0,0,'macd量化改编指标:红色箭头黑马启动,白色量能线金叉0轴买入参考,白线金叉15走强,白线金叉48强势启动线拉升,0轴线下一般不操作',),colorliblue,LINETHICK1; 零轴:0,colormagenta;
DIF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA:=EMA(DIF,9);
AAA:=(DIF-DEA)*2*60;
cgp量能:=(AAA-REF(AAA,1)),coloryellow;
DRAWICON(CROSS(cgp量能,15),15,1);
DRAWICON(CROSS(cgp量能,48),48,1);
量能:(DIF-DEA)*2*60,colorwhite;
LC := REF(CLOSE,1);
b:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
寻底k线:b<20,nodraw,coloryellow;
STICKLINE(b<=20,0,量能,8,0),coloryellow;
|
