通达信趋势导航源码

[复制链接]
查看74 | 回复0 | 2021-8-20 01:19:52 | 显示全部楼层 |阅读模式

以下是通达信趋势导航源码(无源码的请下载附件导入)

N1:=5;N2:=10;

STICKLINE(C>0,0,10,15,0),COLOR781816;

LC:=REF(CLOSE,1);

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);

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;

 

HR:=HHV(HIGH,55);

HRY:=LLV(LOW,55);

ST:=REF(UP,1)>REF(UP,2) AND DOWN<REF(UP,1);

VARA:=LLV(LOW,35);

VARB:=HHV(HIGH,30);

VARC:=EMA((CLOSE-VARA)/(VARB-VARA)*4,4)*25;

QS: VARC,COLORWHITE;

VARD:=87.5;

VARE:=(VARC-LLV(VARC,4))/(HHV(VARC,4)-LLV(VARC,4))*4*25;

DRAWTEXT(IF(CROSS(QS,VARD) AND VARE=100,50,0),56,'目标');

DRAWTEXT(IF(CROSS(VARD,QS),87,0),85,'跑');

DRAWTEXT(IF(CROSS(QS,VARE) AND QS>87,87,0),70,'卖');

VAR6:=(2*CLOSE+HIGH+LOW)/4;

VAR8:=LLV(LOW,30);

VARAA:=HHV(HIGH,30);

B:=EMA((VAR6-VAR8)/(VARAA-VAR8)*100,8);

B1:=EMA(B,5);

STICKLINE(B>0 AND B-B1>=0,79,80,3,0),COLORWHITE;

STICKLINE(B>0 AND B-B1<0,79,80,3,0),COLORCYAN;

STICKLINE(B>0 AND B-B1>=0,49,50,3,0),COLORRED;

STICKLINE(B>0 AND B-B1<0,49,50,3,0),COLORRED;

STICKLINE(B>0 AND B-B1>=0,19,20,3,0),COLORWHITE;

STICKLINE(B>0 AND B-B1<0,19,20,3,0),COLORCYAN;

STICKLINE(B-B1>0,B,B1,3,1),COLORRED;

STICKLINE(B-B1<0,B,B1,3,1),COLORWHITE;

V1:=(2*CLOSE+HIGH+LOW)/4; V2:=LLV(LOW,21);

VA:=HHV(HIGH,34);

FB:=EMA((V1-V2)/(VA-V2)*100,13);

FBB:=EMA((0.667*REF(FB,1)+0.333*FB),2);

ZLX:EMA(0.382*REF(FB,2)+0.618*FB,12),COLORYELLOW;

做空: IF(PEAKBARS(3,15,1)=1,80,100),COLORGREEN,LINETHICK1;

做多: IF(TROUGHBARS(3,15,1)=1 AND HIGH>LOW+0.01,20,-1),COLORYELLOW ,LINETHICK1;
 

79199191.png

79199191.png

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则