- UID
- 2
- 积分
- 2893097
- 威望
- 1396580 布
- 龙e币
- 1496517 刀
- 在线时间
- 13326 小时
- 注册时间
- 2009-12-3
- 最后登录
- 2024-12-26
|
源码:- N:=9;M1:=3;M2:=3;
- RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
- K:SMA(RSV,M1,1);
- D:SMA(K,M2,1);
- J:3*K-2*D;
- 低位金:=CROSS(K,D) AND D<20;
- STICKLINE(低位金,D,D+8,5,0),COLORYELLOW;
- JCCOUNT:=COUNT(CROSS(K,D),BARSLAST(K>=D));
- 二次金:=CROSS(K,D) AND D<20 AND COUNT(JCCOUNT=2,34)=1;
- STICKLINE(二次金,D,D+5,5,0),COLORFF80FF;
- DRAWICON(二次金,D*0.85,1) ;
- A1:=BARSLAST(REF(CROSS(K,D),1));
- 底背离:=REF(CLOSE,A1+1)>CLOSE AND K>REF(K,A1+1) AND CROSS(K,D);
- STICKLINE(底背离,D,D+5,5,0),COLORRED;
- DRAWLINE(A1=0,D,底背离,D,0),COLORRED,LINETHICK2;
- DRAWTEXT(底背离>0,J,'底'),COLORRED;
- A2:=BARSLAST(REF(CROSS(D,K),1));
- 顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(D,A2+1)>D AND CROSS(D,K);
- DRAWLINE(A2=0,D,顶背离,D,0),COLORGREEN,LINETHICK2;
- DRAWTEXT(顶背离>0,K+2,'顶'),COLORGREEN;
复制代码 |
论坛官方微信、群(期货热点、量化探讨、开户与绑定实盘)
|