同花顺股票买卖点公式 简单易懂
源码
MA(CLOSE,5),coloryellow;
中期牛熊线:MA(CLOSE,10),colorwhite;
A01:=(C-LLV(LOW,3))/(HHV(HIGH,3)-LLV(LOW,3));
A11:=SMA(A01,2,1);
A21:=SMA(A11,2,1);
A31:=3*A11-2*A21 ;
A41:=2*A31-0.5;
生命线:=C*(1-(A41-A21)/15),colorred,LINETHICK1;
DRAWTEXT(CROSS(84,SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100),H*1.068,'逃顶'),colorwhite ;
阻力:= PEAK(1,5,1),colorgreen,LINETHICK2;
支撑:= TROUGH(2,5,1),coloryellow,LINETHICK;
DRAWTEXT(REF(支撑,1)>(支撑),LOW*0.98,'抢反弹'),coloryellow;
DRAWTEXT(REF(支撑,1)<(支撑),LOW*0.98,'买入'),coloryellow;
DRAWTEXT(REF(阻力,1)>(阻力),H*1.038,'逃'),coloryellow;
DRAWTEXT(REF(阻力,1)<(阻力),H*1.038,'快卖'),coloryellow;
H,LINETHICK,coloryellow;
H,LINETHICK,coloryellow;
H,LINETHICK,coloryellow;
H,LINETHICK,coloryellow;
M20均线:MA(CLOSE,20),colorgreen;
M60均线:MA(CLOSE,60),colorred;