C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
- DEA:=EMA(DIF,9);
- TJ1:=BARSLAST(CROSS(DIF,DEA));
- TJ2:=BARSLAST(REF(CROSS(DIF,DEA),1));
- DRAWICON(COUNT(CROSS(DIF,DEA),20)=2 AND REF(DIF,TJ1+1)>REF(DIF,TJ2+1),L*0.98,1);
-
- DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
- DEA:=EMA(DIFF,9);
- A0:=CROSS(DIFF,DEA);
- A:=A0 AND DIFF<0;
- FT:=BARSLAST(A);
- B:=COUNT(A0,FT);
- 第二个金叉:DIFF>0 AND DEA>0 AND A0 AND B<2,COLORRED ;
-
-
- MA(CLOSE,5)>MA(CLOSE,20) AND
- MA(CLOSE,5)>MA(CLOSE,60) AND
- MA(CLOSE,5)>MA(CLOSE,120) AND
- MA(CLOSE,10)>MA(CLOSE,60) AND
- MA(CLOSE,10)>MA(CLOSE,120) AND
- MA(CLOSE,20)>MA(CLOSE,60) AND
- MA(CLOSE,20)>MA(CLOSE,120) AND
- CLOSE>MA(CLOSE,20),COLORWHITE;
-
- DIFF:EMA(CLOSE,12)-EMA(CLOSE,27);
- DEA:EMA(DIFF,9);
- CROSS(DIFF,DEA) AND BARSLAST(CROSS(DEA,DIFF))>10,COLORRED ;