- UID
- 2
- 积分
- 2874674
- 威望
- 1387366 布
- 龙e币
- 1487308 刀
- 在线时间
- 13156 小时
- 注册时间
- 2009-12-3
- 最后登录
- 2024-11-24
|
【KDJ】
- Input:len(9),m1(3),m2(3),overbuy(80),oversell(20);
- var:rsv(50),kvalue(50),dvalue(50),JValue(50);
- value1 = Close - Lowest(low,len);
- value2 = Highest(high,len) - Lowest(low,len);
- if value2 <> 0 then begin
- rsv = 100*value1/value2;
- kvalue = SMA(rsv,m1,1);
- dvalue = SMA(kvalue,m2,1);
- end;
- JValue = 3*kvalue - 2*dvalue;
- plot1(kvalue,"K",white);
- plot2(dvalue,"D",yellow);
- //plot3(overbuy,"80",darkgray);
- //plot4(oversell,"20",darkgray);
- plot5(jvalue,"J",RGB(255,0,255));
- Value1 = TL_New_Self_BN(1,20,currentbar,20);
- value2 = TL_New_Self_BN(1,80,currentbar,80);
- TL_SetSize(value1,0.1);
- TL_SetSize(value2,0.1);
- TL_SetStyle(value1, 5);
- TL_SetStyle(value2, 5);
- TL_SetColor(value1,rgb(128,255,128));
- TL_SetColor(value2,LightGray);
复制代码 |
论坛官方微信、群(期货热点、量化探讨、开户与绑定实盘)
|