龙听期货论坛's Archiver

龙听 发表于 2018-10-25 16:09

文华、博易指标公式(稳坐钓鱼台)

博易源码:[code]
强弱分界:(EMA(C,13)+MA(C,26)+MA(C,52))/3,LINETHICK2,COLOR00FFFF,PRECIS0;
中期位:MA(C,61)-2*STD(C,71),COLORFF8000,LINETHICK2,PRECIS0;
长期位:MA(C,125)-2*STD(C,145),COLOR800080,LINETHICK2,PRECIS0;

STICKLINE(C>=O OR (C=O AND C>REF(C,1)),O,C,4,1),COLORRED;
STICKLINE((C>=O AND C<>H) OR (C=O AND C>REF(C,1)),C,H,0.1,0),COLORRED;
STICKLINE((C>=O AND L<>O) OR (C=O AND C>REF(C,1)),L,O,0.1,0),COLORRED;
STICKLINE(C<O OR (C=O AND C>REF(C,1)),O,C,4,0),COLORCYAN;
STICKLINE((C<O AND C<>H) OR (C=O AND C>REF(C,1)),C,H,0.1,1),COLORCYAN;
STICKLINE((C<O AND L<>O) OR (C=O AND C>REF(C,1)),L,O,0.1,1),COLORCYAN;
[/code]

效果如下:
[attach]4889[/attach]


文华源码:

[code]
ZJX:MA(C,61)-2*STD(C,71),COLORRED;
CJX:MA(C,125)-2*STD(C,145),COLORMAGENTA;
A:(EMA(C,13)+MA(C,26)+MA(C,52))/3,COLORYELLOW;

TMP:=OPEN-CLOSE;
DRAWLINE(TMP>0.00001,HIGH,TMP>0.00001,OPEN,COLORCYAN);
DRAWLINE(TMP>0.00001,LOW,TMP>0.00001,CLOSE,COLORCYAN);
DRAWLINE(TMP<-0.00001,HIGH,TMP<-0.00001,CLOSE,COLORRED);
DRAWLINE(TMP<-0.00001,LOW,TMP<-0.00001,OPEN,COLORRED);
DRAWLINE(ABS(TMP)<0.00001,LOW,ABS(TMP)<0.00001,OPEN,COLORWHITE);
DRAWLINE(ABS(TMP)<0.00001,HIGH,ABS(TMP)<0.00001,OPEN,COLORWHITE);
STICKLINE(TMP>0,OPEN,CLOSE,COLORCYAN,0);
STICKLINE(TMP<=0,OPEN,CLOSE,COLORRED,1);
[/code]


效果如下:

[attach]4890[/attach]

龙听 发表于 2018-10-25 16:09

原址:[url]http://blog.sina.com.cn/s/blog_505cc3030100kw67.html[/url]

页: [1]