龙听期货论坛's Archiver

C
+
+


 微信: QQ:

龙听 发表于 2018-5-4 14:03

稳赢趋势[博易指标][文华指标]

博易大师指标源码:
[code]
HH:=HHV(HIGH,13);
LL:=LLV(LOW,13);
HH1:=BARSLAST((HH>REF(HH,1)));
LL1:=BARSLAST((LL<REF(LL,1)));
A:=IF((HH1 < LL1),1,IFELSE((HH1 > LL1),-1,0));
AA:IF(A>=0,LL,HH),COLORYELLOW;
STICKLINE(HH1<=LL1,O,C,4,1),COLORRED;
STICKLINE(HH1<=LL1,C,H,0.1,0),COLORRED;
STICKLINE(HH1<=LL1,L,O,0.1,0),COLORRED;
STICKLINE(HH1>LL1,O,C,4,0),COLORCYAN;
STICKLINE(HH1>LL1,C,H,0.1,1),COLORCYAN;
STICKLINE(HH1>LL1,L,O,0.1,1),COLORCYAN;
DRAWTEXT(CROSS(HH1,LL1),HH,'开空');
DRAWTEXT(CROSS(LL1,HH1),LL,'开多');
[/code]


效果:
[attach]4881[/attach]
[img]http://p.qhlt.cn/filestores/2018/05/04/cc75cc728eec6e38ae5e13a797696334.jpg[/img]

龙听 发表于 2018-5-4 14:04

文华财经源码公式如下:
[code]
HH:=HHV(HIGH,13);
LL:=LLV(LOW,13);
HH1:=BARSLAST((HH>REF(HH,1)));
LL1:=BARSLAST((LL<REF(LL,1)));
A:=IFELSE((HH1 < LL1),1,IFELSE((HH1 > LL1),-1,0));
AA:IFELSE(A>=0,LL,HH),COLORYELLOW;
DRAWTEXT(CROSS(HH1,LL1),HH,'开空');
DRAWTEXT(CROSS(LL1,HH1),LL,'开多');
DRAWLINE(HH1>LL1,HIGH,HH1>LL1,OPEN,COLORCYAN);
DRAWLINE(HH1>LL1,LOW,HH1>LL1,CLOSE,COLORCYAN);
DRAWLINE(HH1<=LL1,HIGH,HH1<=LL1,CLOSE,COLORRED);
DRAWLINE(HH1<=LL1,LOW,HH1<=LL1,OPEN,COLORRED);
STICKLINE(HH1>LL1,OPEN,CLOSE,COLORCYAN,0);
STICKLINE(HH1<=LL1,OPEN,CLOSE,COLORRED,1);
[/code]

页: [1]