龙听期货论坛's Archiver

龙听 发表于 2018-5-4 13:57

智慧操盘手[博易大师指标]

源码:
[code]
HH1:=IF(H<REF(H,2) AND REF(H,1)<REF(H,2),REF(H,2),0);
LL1:=IF(L>REF(L,2) AND REF(L,1)>REF(L,2),REF(L,2),0);
HH2:=VALUEWHEN(HH1>0,HH1);
LL2:=VALUEWHEN(LL1>0,LL1);
K1:=IF(CLOSE>HH2,-3,IF(CLOSE<LL2,1,0));
K2:=VALUEWHEN(K1<>0,K1);
G:IF(K2=1,HH2,LL2),COLOR00FFFF;
DRAWNUMBER(ISLASTBAR,G,G,2),ALIGN0;
G1:=VALUEWHEN(ISLASTBAR,G);
W1:=K2;
W2:=OPEN-CLOSE;
HT:=IF(OPEN>CLOSE,OPEN,CLOSE);
LT:=IF(OPEN<CLOSE,OPEN,CLOSE);
STICKLINE(W1<0,O,C,0.5,0 ),COLORRED;
STICKLINE(W1<0,O,H,0.3,0 ),COLORRED;
STICKLINE(W1<0,O,L,0.3,0 ),COLORRED;
STICKLINE(W1>=0,O,C,0.5,0 ),COLORCYAN;
STICKLINE(W1>=0,O,L,0.3,0 ),COLORCYAN;
STICKLINE(W1>=0,O,H,0.3,0 ),COLORCYAN;
STICKLINE(W1>=0,O,C,3,0),COLORFF6600;
STICKLINE(W1>=0,O,C,2,0),COLORFF9900;
STICKLINE(W1>=0,O,C,1.2,0),COLORFFCC00;
STICKLINE(W1>=0,O,C,0.2,0),COLORCYAN;
STICKLINE(W1<0,O,C,3,0),COLOR000099;
STICKLINE(W1<0,O,C,2,0),COLOR0000CC;
STICKLINE(W1<0,O,C,1.3,0),COLOR0000FF;
STICKLINE(W1<0,O,C,0.3,0),COLORCC66FF;
[/code]
效果:(只适合博易3.0及以上版本,3.0以下个别参数不支持)

[img]http://p.qhlt.cn/filestores/2018/05/04/de3d56700d3028d32ecdc210e5006e82.jpg[/img]

龙听 发表于 2018-10-25 15:49

[attach]4880[/attach]

页: [1]