变色20均线选股公式(同花顺均线选股公式)
1、求通达信变色均线的公式
MA30:MA(C,30),COLORRED,LINETHICK1;
三十:IF(MA(CLOSE,30)<=REF(MA(CLOSE,30),1),MA(CLOSE,30),DRAWNULL),COLORGREEN,LINETHICK1;
可以将公式里的30改为任何天数
2、20日线上穿60日线K线变色公式怎么做,求大神帮忙 谢谢
MA1:MA(C,20);
MA2:MA(C,60);
STICKLINE(CROSS(MA1,MA2),H,L,0,0),COLORRED;
STICKLINE(CROSS(MA1,MA2),C,O,3,1),COLORRED;
3、请帮忙编写通达信指标:20日均线拐头变色即均线有下降状态改变为上升或下降第一日时改变颜色 谢谢!
J20:MA(C,20),COLORWHITE,LINETHICK2;
Z20:=REF(MA(C,20),1);
IF(J20>=Z20,J20,DRAWNULL),COLORRED,LINETHICK2;
IF(J20<Z20,J20,DRAWNULL),COLORGREEN,LINETHICK2;
4、求20日均线拐点选股公式
{20}
AA:=MA(C,20);
REF(AA,1)>REF(AA,2) AND CROSS(C,AA);
------------------------------------
{20日均线下拐选股}
AA:=MA(C,20);
REF(AA,1)<REF(AA,2) AND CROSS(AA,C);
5、帮我编写一个同花顺均线选股公式?
请教:通畅移动平均线 (SMMA)的算法?
-----------------------------------------
M120=MA(C,120);
XG:CROSS(M120*1.01,L);
---------------------------
EM120=EMA(C,120);
EXG:CROSS(EM120*1.01,L);
--------------------------
SM120=EMA(C,120,1);
SXG:CROSS(SM120*1.01,L);
注:这个的参数你自己定
------------------------
SUMN1= SUM(CLOSE, 120);
SMMAN1 = SUMN1/120;
IF BARPOS=1 THEN
SMMAX=SMMAN1;
ELSE
SMMAX=(SUMN1-SMMAN1+CLOSE)/120;
SMXG:CROSS(SMMAX*1.01,L);
6、求5日均线即将上穿10日均线的同花顺选股公式
MA(C,5)<MA(C,10) AND CROSS(C,MA(C,5));
7、均线粘合选股公式
A1:=MAX(MAX(MA(V,5),MA(V,10)),MA(V,60))/MIN(MIN(MA(V,5),MA(V,10)),MA(V,60))<=1.4;
A2:=MAX(MA(C,5),MA(C,10))/MIN(MA(C,5),MA(C,10))<=1.4;
DIFF:=EMA(C,12)-EMA(C,26);
DEA:=EMA(DIFF,9);
XG:A1 AND A2 AND CROSS(DIFF,DEA);