MACD精装版 DIF:EMA(CLOSE,12)-EMA(CLOSE,26); DEA:EMA(DIF,9); MACD:(DIF-DEA)*2,COLORSTICK; JC2:=BARSLAST(CROSS(DIF,DEA)); SC2:=BARSLAST(CROSS(DEA,DIF)); SC1:=REF(BARSLAST(CROSS(DEA,DIF)),SC2+1)+SC2+1; JC1:=REF(BARSLAST(CROSS(DIF,DEA)),JC2+1)+JC2+1; SCJG1:=(L,JC...
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA:=EMA(DIF,9); MACD:=(DIF-DEA)*2; 距离范围:=RANGE(DEA,-0.2,0.2); {调整值:-0.2,0.2,扩大或缩小范围} XG:CROSS(DIF,DEA) AND 距离范围; DIF:=EMA(CLOSE,12)-EMA(CLOSE,26) DEA:=EMA(DIF,9);MACD:=(DIF-DEA)*2...
B4:CROSS(DIF,DEA) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)); 9、MACD日周同金选股 DIF:=EMA(CLOSE,5)-EMA(CLOSE,26);DEA:=EMA(DIF,3);MACD:=(DIF-DEA)*2;DDIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DDEA:=EMA(DDIF,9);日金:=CROSS(DDIF,DDEA);周DIF:=MA(DIF,5);周DEA:=MA(...
CROSS(V<MA(V,5),0.5);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);MACD:=(DIF-DEA)*2;AA:=CROSS(DIF,DEA) AND DEA>0;BB:=BARSLAST(CROSS(DEA,DIF)) AND DEA>0;CC:=REF(BARSLAST(CROSS(DIF,0))<20,BARSLAST(CROSS(DEA,DIF))+1);AA AND BB AND CC; 来自Android客户端3楼2017-07-26 16:54 回复 ...
DRAWTEXT(NT0=9,MACD*0.98,'9'),COLORRED;DRAWICON(CROSS(DEA1,DIF1),DEA1,2);{第二个指标参数把KD线关闭了} LOWV:=LLV(LOW,9);HIGHV:=HHV(HIGH,9);RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);K:=EMA(RSV,3);D:=MA(K,3);STICKLINE(K>D,K,D,2.5,0),COLORRED,...
*2;而您使用PW:=CROSS(0,MACD),意思是想做成选股公式吧,是这样的话,应该去除这个等号,软件才会执行这个语句即:PW:CROSS(0,MACD)但这个语句表示的是0上穿MACD,亦即MACD刚变成负数的那一刻,就是趋势开始跌的时候,所以估计您要选上升的股票的话,应该是CROSS(MACD,0)参考资料:佛山小温 ...
DIFF:EMA(CLOSE,12) - EMA(CLOSE,26);DEA:EMA(DIFF,9);MACD:2*(DIFF-DEA), COLORSTICK;A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);STICKLINE(底背离,0,0.1,8,0),COLORRED;...
底背离选股公式:DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);DEA := EMA(DIFF,9);{以下计算交叉点距今的天数}D1:=BARSLAST(CROSS(DEA,DIFF));{本次死叉到今天的天数}D2:=REF(BARSLAST(CROSS(DEA,DIFF)),D1+1);{两次死叉之间的天数};A:LLV(DIFF,D1)>LLV(DIFF,D2+D1)&&LLV(C,D1)&&CROSS(...
公式不全吧,V1 AND VV1 AND KD1 AND VA这里面v1 vv1 kd1 va 前面都没有定义啊?目的就是选股macd二次金叉是吧?DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);MACD:=2*(DIF-DEA);A1:=CROSS(DIF,DEA);A2:=REF(A1,1);A3:=COUNT(A2,21);A4:=MA(C,5)>=MA(C,10)...