- UID
- 2
- 积分
- 2874604
- 威望
- 1387331 布
- 龙e币
- 1487273 刀
- 在线时间
- 13155 小时
- 注册时间
- 2009-12-3
- 最后登录
- 2024-11-24
|
自用的KDJ主图指标公式公式、源码[大智慧公式]
- input:N(9),m1(3),m2(3);
- RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
- K:SMA(RSV,m1,1),COLORFFFFFF,linethick0;
- D:SMA(K,m2,1),COLOR00FFFF,linethick0;
- J:3*K-2*D,linethick0;
- hh0:=HHV(HIGH,N);
- ll0:=LLV(LOW,N);
- jc:=ema((hh0+ll0)/2,N);
- bl:=(CLOSE-LL0)/(HH0-LL0);
- kz:=IF(BARSSINCE(C)<1,C,sma(jc*(1+(BL-0.5)/8),m1,1));
- dz:=IF(BARSSINCE(C)<1,C,sma(jc*(SMA(BL,3,1)-0.5)/8+jc,m2,1));
- jz:=IF(BARSSINCE(C)<1,C,3*kz-2*dz);
- POLYLINE(kz,kz),COLORFFFFFF;
- POLYLINE(dz,dz),COLOR00FFFF;
- POLYLINE(jz,jz);
- DRAWGBKLAST(c>0,STRIP(RGB(60,10,0),RGB(10,50,0),0));
- 进:=CROSS(kz,dz);
- DRAWTEXT(进,L*0.98,'短'),ALIGN1,colorred,LINETHICK2;CXH:=STRTONUM(STRRIGHT(DATESTR(CURRENTDATE),1));
复制代码 |
论坛官方微信、群(期货热点、量化探讨、开户与绑定实盘)
|