1:攀缠锋祖交易原理之SMA均线公式源码及解释
攀缠锋祖SMA均线源码(博弈大师或文华财经):
1.博弈大师版源码:SMA1(CLOSE,M1,N);
SMA2(CLOSE,M2,N);
SMA3(CLOSE,M3,N);
SMA4(CLOSE,M4,N);
SMA5(CLOSE,M5,N);
2.文华财经版源码:
SMA(CLOSE,M1,N);
SMA(CLOSE,M2,N);
SMA(CLOSE,M3,N);
SMA(CLOSE,M4,N);
SMA(CLOSE,M5,N);
3.参数设置M1=5,M2=13,M3=55,M4=144,M5=233;N=1或2(理论默认为1)。
2:
DYNAINFO(10)/DYNAINFO(8)/100;
这是当日随着时间的推移显示的即时均价,画出来的是一条直线,所以只能用不能看。
3:求分时均价线,通达信指标的源码,
均价:SUM(V*C,0)/SUM(V,0),COLORGREEN,LINETHICK2;
IF(均价<=REF(均价,1),均价,DRAWNULL),COLORGREEN,LINETHICK3;
IF(均价>=REF(均价,1),均价,DRAWNULL),COLORYELLOW,LINETHICK3;
DRAWTEXT(CURRBARSCOUNT=4,均价,均),COLORYELLOW,LINETHICK3;
DRAWNUMBER(CURRBARSCOUNT=2,均价,均价),COLORYELLOW,LINETHICK3;
简单一点就是
均价:SUM(V*C,0)/SUM(V,0),COLORGREEN,LINETHICK2;
4:顾比均线:EMA(C,8),COLOR61DC16;
E10:EMA(C,10),COLOR61DC16;
E12:EMA(C,12),COLOR61DC16;
E15:EMA(C,15),COLOR61DC16;
E30:EMA(C,30),COLORD1875A;
E35:EMA(C,35),COLORD1875A;
E40:EMA(C,40),COLORD1875A;
E45:EMA(C,45),COLORD1875A;
E50:EMA(C,50),COLORD1875A;
E60:EMA(C,60),COLORD1875A;
IF(E3>REF(E3,1),E3,DRAWNULL),COLORYELLOW;
IF(E5>REF(E5,1),E5,DRAWNULL),COLORYELLOW;
IF(E8>REF(E8,1),E8,DRAWNULL),COLORYELLOW;
IF(E10>REF(E10,1),E10,DRAWNULL),COLORYELLOW;
IF(E12>REF(E12,1),E12,DRAWNULL),COLORYELLOW;
IF(E15>REF(E15,1),E15,DRAWNULL),COLORYELLOW;
IF(E30>REF(E30,1),E30,DRAWNULL),COLORFF00FF;
IF(E35>REF(E35,1),E35,DRAWNULL),COLORFF00FF;
IF(E40>REF(E40,1),E40,DRAWNULL),COLORFF00FF;
IF(E45>REF(E45,1),E45,DRAWNULL),COLORFF00FF;
IF(E50>REF(E50,1),E50,DRAWNULL),COLORFF00FF;
IF(E60>REF(E60,1),E60,DRAWNULL),COLORFF00FF;
STICKLINE(C>O,C,O,1,0),COLORRED;
STICKLINE(C>O,H,L,0,0),COLORRED;
STICKLINE(C<=O,C,O,1,0),COLORFFFF52;
STICKLINE(C<=O,H,L,0,0),COLORFFFF52;
DRAWICON(EMA(C,8)>EMA(C,15) AND EMA(C,40)>REF(EMA(C,40),1) AND CROSS(EMA(C,3),EMA(C,35)),L-0.20,24);
DRAWICON(EMA(C,15)>EMA(C,40) AND EMA(C,35)>REF(EMA(C,35),1) AND CROSS(EMA(C,3),EMA(C,5)),L-0.20,25);
DRAWICON(ABS(EMA(C,15)-EMA(C,60))/C<0.01 AND EMA(C,15)>EMA(C,30) AND O<EMA(C,3) AND C>EMA(C,3) AND O<EMA(C,15) AND C>EMA(C,15) AND O<EMA(C,30) AND C>EMA(C,30) AND O<EMA(C,60) AND C>EMA(C,60),L-0.20,27);
DRAWICON(ABS(EMA(C,45)-EMA(C,30))/C<0.011 AND EMA(C,3)>EMA(C,15) AND EMA(C,15)>EMA(C,40) AND CROSS(EMA(C,5),EMA(C,60)),L-0.20,13);
A1:=OPEN<EMA(C,20) OR OPEN<EMA(C,40) OR OPEN<EMA(C,60);
A2:=C>MAX(EMA(C,20),MAX(EMA(C,40),EMA(C,60)));
A3:=V/MA(V,10)>1.2;
A4:=C/REF(C,1)>1.049;
出水芙蓉:=A1 AND A2 AND A3 AND A4 AND O<EMA(C,60) AND C>EMA(C,60);
DRAWICON(出水芙蓉,L-0.20,9);
5:
双击K线/.....选均线/任意填入数字/确定即可。
6:
一般都用五日均线日线日线过多,也即五日乖离率太大,则属于短线卖出时机。乖离率多大可以卖出,视个股强弱、大小有所不同,一般股价高于5日线百分之七到十五,属于偏高,适宜卖出。
(2)股价回落、跌不破5日线的话,再次启动时适宜买入。一般说,慢牛股在上升途中,大多时间往往不破5日线日线。只要不破,就可结合大势、结合个股基本面,继续持仓。若是熊市,股价回升、升不破5日线的话,再次出现较大抛单、展开下跌时适宜卖出。
(3)股价如果跌破5日线日线过不去的话,需要谨防追高被套,注意逢高卖出。