以下是经典指标稳赚(源码 副图 贴图)

{MACD1}
 DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
 DEA:EMA(DIF,9);
 MACD:(DIF-DEA)*2,COLORSTICK;
 VAR1:=HHV(DEA,53);
 VAR2:=LLV(DEA,55);
 VAR3:=DEA-(DIF-DEA);
 UP:IF(DIF>VAR1 AND DEA=VAR1,MAX(LLV(VAR1,10),VAR3),VAR1),COLORBB0000,LINETHICK1;
 DN:IF(DIF<VAR2 AND DEA=VAR2,MIN(HHV(VAR2,10),VAR3),VAR2),COLORAA00AA,LINETHICK1;
 DIF,COLORGREEN;
 DEA,COLORGREEN;
零上金叉买:0,COLORBLUE,CROSSDOT,LINETHICK1;
 IF(DIF>DEA,DIF,DRAWNULL),COLORRED,LINETHICK1;
 IF(DEA>REF(DEA,1),DEA,DRAWNULL),COLORMAGENTA;
 DRAWICON(CROSS(DIF,DEA),DEA,1);
 DRAWICON(CROSS(DEA,DIF),DEA,2);
 LOWV:=LLV(LOW,3);
 HIGHV:=HHV(HIGH,3);

 RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
 K:=SMA(RSV,3,1);
 D:=SMA(K,3,1);
 J:=3*K-2*D;
 STICKLINE(MACD<REF(MACD,1)AND CROSS(K,J),0,MACD,2,0),COLORGREEN;
 STICKLINE(MACD>REF(MACD,1)AND CROSS(J,K),0,MACD,2,0),COLORRED;
 

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。