文华、博易指标公式(趋势通道)zT

0
回复
6107
查看
[复制链接]

87

主题

6

回帖

1289

积分

超级版主

积分
1289
来源: 2020-5-30 10:21:31 显示全部楼层 |阅读模式
博易代码:# k2 n9 r) v5 ?; W. _: q' L: r
; {2 g7 A: e6 `* T/ q9 ]6 L

N:0 30 6;M:0 304(胶参数,其它品种参数使用者可自行调试)
STICKLINE(C>=O OR (C=O ANDC>REF(C,1)),O,C,4,1),COLORRED;
STICKLINE(C<O OR (C=O ANDC>REF(C,1)),O,C,4,0),COLORCYAN;: v$ v3 c4 h4 Q& P1 m" c
强弱道:EMA(EMA(EMA(HIGH,n),n),m),COLORWHITE;
地窖道:强弱道*0.9,COLORBLUE;
太空道:强弱道*1.1,COLORRED;
天空道:强弱道*1.05,COLORF00FF0;
地板道:强弱道*0.95,COLOR00FF00;
STICKLINE((C<O ANDC<>H) OR (C=O ANDC>REF(C,1)),C,H,0.1,1),COLORCYAN;" f4 \9 r! w% M* i
STICKLINE((C<O ANDL<>O) OR (C=O ANDC>REF(C,1)),L,O,0.1,1),COLORCYAN;
DRAWNUMBER(ISLASTBAR,强弱道,强弱道,0);, L( \' b7 i+ r
DRAWNUMBER(ISLASTBAR,地窖道,地窖道,0);4 L5 Y# M% |7 O; I4 M
DRAWNUMBER(ISLASTBAR,太空道,太空道,0);% y. {+ F% T* s% T  m3 S9 D
DRAWNUMBER(ISLASTBAR,天空道,天空道,0);
DRAWNUMBER(ISLASTBAR,地板道,地板道,0);
STICKLINE((C>=O ANDC<>H) OR (C=O ANDC>REF(C,1)),C,H,0.1,0),COLORRED;
STICKLINE((C>=O ANDL<>O) OR (C=O ANDC>REF(C,1)),L,O,0.1,0),COLORRED;1 X) V( S0 ?" @; i# P8 E
参数编辑框:

20200530101832.png
博易上的效果:
20200530101844.png
文华上源码:. N2 ~3 H! P. W6 T6 |
源码如下:(参数为胶的,其它品种自己调试)) N& F; B" A, F. w3 f% E9 o

qrd:EMA(EMA(EMA(HIGH,N),N),M),COLORWHITE;& b- j9 J' M& J; ]9 G! ~
djd:qrd*0.9,COLORBLUE;
tkd:qrd*1.1,COLORRED;* R( I, x* u1 J  M
ttd:qrd*1.05,COLORGREEN;
dbd:qrd*0.95,COLORLIGHTRED;
DRAWNUMBER(ISLASTBAR,qrd,qrd,0,COLORYELLOW);3 l9 i$ E- P6 T0 ]( p" x8 c
DRAWNUMBER(ISLASTBAR,djd,djd,0,COLORYELLOW);
DRAWNUMBER(ISLASTBAR,tkd,tkd,0,COLORYELLOW);7 B! |  b# E2 Q! _1 U" ~6 |, X5 Q
DRAWNUMBER(ISLASTBAR,ttd,ttd,0,COLORYELLOW);
DRAWNUMBER(ISLASTBAR,dbd,dbd,0,COLORYELLOW);
TMP:=OPEN-CLOSE;
DRAWLINE(TMP>0.00001,HIGH,TMP>0.00001,OPEN,COLORCYAN);7 n) Q+ C" X0 H1 J) c
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);! K( |  K  L% i( y. A9 F4 f
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);8 ?+ z4 h6 M. m9 @& e
参数设置框:
1 ^7 a* y7 |. f4 Z3 P+ B 20200530102045.png
原载:http://blog.sina.com.cn/s/blog_505cc3030100hv33.html








回复

使用道具 举报

您需要登录后才可以回帖 登录 | 免费注册
关注微信