C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- {N 1 100 10}
- CC:=(H+L)/2;
- TJ1:=(EXIST(V=LLV(V,N),5) AND V/REF(V,1)>3) OR (EXIST(L=LLV(L,60),20) AND MA(V,10)/MA(REF(V,10),10)>1.5);
- DD:=SMA(CC,5,1)-SMA(CC,34,1);
- DDD:SMA(DD,2,1);
- B:IF(DDD>REF(DDD,1),DDD,DRAWNULL),STICK,COLORRED;
- S:IF(DDD<REF(DDD,1),DDD,DRAWNULL),STICK,COLORGREEN;
- TJ2:=DDD>REF(DDD,1) AND REF(DDD,2)>REF(DDD,1) AND DDD<0;
- 买入:EXIST(TJ1,N) OR TJ2,COLORYELLOW,LINETHICK1;