您现在的位置:好股网 >> 股票公式 >> 通达信公式 >> 一键转帖:趋势买卖 看长做短 副图源码

趋势买卖 看长做短 副图源码


指标功能:[B]国产软件[/B]
指标类型:简体中文
所需积分:0
推荐星级:
授权方式:共享版
公式大小:0 Bytes
更新时间:2012-06-07 08:07:00
公式简介:

趋势买卖,看长做短,红色持股,绿色观望。

N:=10;
N1:=5;N2:=10;N3:=600;
VAR1:=C-REF(C,1);
VAR2:=100*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6);
MA5:=EMA(C,5);
MA13:=EMA(C,13);
0,COLORGRAY,LINETHICK1;
UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS
(MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS
(MA5,MA13))+1),0),COLOR0000FF;
DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS
(MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS
(MA13,MA5))+1),0),COLOR00FF00;
BT:=(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR2<0,2) AND CROSS(VAR2,MA(VAR2,2))) AND
REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1);
DIFF:(EMA(DCLOSE,10)-EMA(DCLOSE,21))*N3,COLORCYAN,LINETHICK2;
DEA:EMA(DIFF,8),COLOR1474FF,LINETHICK3;
DRAWTEXT(CURRBARSCOUNT
=5,-100,'赵红卫2011'),COLORRED;
TJ1:EMA(DEA,3),COLORWHITE,LINETHICK3;
买:=CROSS(TJ1,DEA);
卖:=CROSS(DEA,TJ1);
DRAWICON(卖,DEA-2.6,1);
DRAWICON(买,DEA+1.1,2);
STICKLINE(DEA>TJ1 , DEA,TJ1 ,2.5,0),COLORRED,LINETHICK2;
STICKLINE(TJ1>DEA,DEA,TJ1,2.5,0),COLORGREEN,LINETHICK2;
买点:=CROSS(DEA,TJ1) AND DEA>TJ1;
DRAWTEXT(买点,DEA*1.18,'加仓'),COLORYELLOW;
卖点:=CROSS(TJ1,DEA) AND TJ1>DEA;
DRAWTEXT(卖点,TJ1*1.23,'减仓'),COLORYELLOW;


 


[url=http://www.goodgupiao.com/gupiaogongshi/20767.html][B]趋势买卖 看长做短 副图源码[/B][/url]