股票论坛
标题:
请老师帮忙用码源做一个通达信选股器,谢谢!
[打印本页]
作者:
开心强可哥
时间:
2016-3-16 21:47
标题:
请老师帮忙用码源做一个通达信选股器,谢谢!
请老师帮忙做一个通达信选股器,当出现小手指向上时选股,谢谢!
DIFF:=(EMA(CLOSE,9) - EMA(CLOSE,27));
DEA:=EMA(DIFF,6);
MACD2:=(2 * (DIFF - DEA))*15;
E:=DIFF*100;
MA1:MA(E,5),COLORYELLOW,LINETHICK2;
MA2:MA(E,10);
MA3:MA(E,20);
STICKLINE(E<REF(E,1),E,MA(E,1),2,0),COLORD9D919;
STICKLINE(E<REF(E,2),E,MA(E,2),2,0),COLORD9D919;
STICKLINE(E<REF(E,3),E,MA(E,3),2,0 ),COLORD9D919;
STICKLINE(E<REF(E,4),E,MA(E,4),2,0 ),COLORD9D919;
STICKLINE(E> REF(E,4),E,EMA(E,4),2,0) ,COLORRED;
STICKLINE(E> REF(E,3),E,EMA(E,3),2,0) ,COLORRED;
STICKLINE(E> REF(E,2),E,EMA(E,2),2,0) ,COLORRED;
STICKLINE(E> REF(E,1),E,EMA(E,1),2,0) ,COLORRED;
DIF:=(EMA(CLOSE,4) - EMA(CLOSE,13));
F:=DIF*200;
MA5:=MA(F,5);
STICKLINE(F<REF(F,1),F,MA(F,1),2,0),COLORD9D919;
STICKLINE(F<REF(F,2),E,MA(F,2),2,0),COLORD9D919;
STICKLINE(F<REF(F,3),E,MA(F,3),2,0 ),COLORD9D919;
STICKLINE(F<REF(F,4),E,MA(F,4),2,0 ),COLORD9D919;
STICKLINE(F> REF(F,4),E,EMA(F,4),2,0) ,COLORRED;
STICKLINE(F> REF(F,3),E,EMA(F,3),2,0) ,COLORRED;
STICKLINE(F> REF(F,2),E,EMA(F,2),2,0) ,COLORRED;
STICKLINE(F> REF(F,1),E,EMA(F,1),2,0) ,COLORRED;
DRAWICON (CROSS(E,MA1),MA1-10,11);
DRAWICON (CROSS(MA1,E),MA1+10,12);
AA:=E<MA1 AND E>REF(E,1) ;
DRAWICON(AA,MA1-20,36);
BB:=E>MA1 AND E<=REF(E,1);
DRAWICON(BB,MA1+20,37);
作者:
老人与海
时间:
2016-3-16 21:47
DIFF:=(EMA(CLOSE,9)-EMA(CLOSE,27));
DEA:=EMA(DIFF,6);
MACD2:=(2*(DIFF-DEA))*15;
E:=DIFF*100;
MA1:=MA(E,5);
BBY:CROSS(E,MA1);
作者:
开心强可哥
时间:
2016-3-18 08:43
谢谢老人与海老师,已帮我解决了多个问题了。
欢迎光临 股票论坛 (http://100000w.com/)
Powered by Discuz! X3.2