相关简介:通达信航海家指标买点公式源码分享
通达信指标公式源码概况:
指标类别:通达信指标公式
授权方式:免费版
指标评级:★★★★★
指标分类:策略
画线方法:副图
大家梦寐以求的航海家指标,我发上来与大家分享了。不过是通达信版本的,大智慧不能正常显示,因为要使用的到历史的数据,股友们要记得每天盘后下载日线数据哦。不然不能正常显示。还有就是我这个不是网上流传的那种流动改编的哈。你们自己拿去和航海家的图片对比一下
通达信指标公式源码:
VAR2:=(((CLOSE-ma(CLOSE,6))/MA(CLOSE,6))*100);
VAR3:=(((CLOSE-MA(CLOSE,12))/MA(CLOSE,12))*100);
VAR4:=(((CLOSE-MA(CLOSE,24))/MA(CLOSE,24))*100);
VAR5:=(((VAR2+(2*VAR3))+(3*VAR4))/6);
VAR6:=MA(VAR5,3);
VAR7:=DMA(EMA(CLOSE,12),((SUM(,5)/3)/CAPITAL));
VAR8:=(((CLOSE-VAR7)/VAR7)*100);
VAR9:=((((REF(VAR8,1) (0-40))AND(VAR8 REF(VAR8,1)))AND(REF(VAR8,1) REF(VAR8,2)))AND((VAR8-REF(VAR8,1)) 2.5));
VARD:=REF(CLOSE,1);
VARE:=((SMA(MAX((CLOSE-VARD),0),5,1)/SMA(Abs((CLOSE-VARD)),5,1))*100);
VARF:=(((HIGH+LOW)+CLOSE)/3);
VAR10:=((VARF-MA(VARF,14))/(0.015*AVEDEV(VARF,14)));
VAR11:=(((((MA(AMOUNT,5)/MA(VOL,5))/100)-((MA(AMOUNT,110)/MA(VOL,110))/100))/((MA(AMOUNT,5)/MA(VOL,5))/100)) (0-0.273));
VAR12:=(((CLOSE-MA(CLOSE,30))/MA(CLOSE,30)) (0-0.125));
VAR13:=(VAR11ANDVAR12);
VAR14:=((((VAR2 =(0-45))AND(VAR2 =(0-10)))AND(VAR3 =(0-15)))AND(VAR4 =(0-20)));
VAR15:=(COUNT(VAR14,1)
VAR16:=(VAR13ANDVAR15);
VAR17:=1;
VAR18:=(CLOSE*VOL);
VAR19:=EMA((((((MA(VAR18,4)/MA(VOL,4))+(MA(VAR18,6)/MA(VOL,6)))+(MA(VAR18,13)/MA(VOL,13)))+(MA(VAR18,24)/MA(VOL,24)))/4),1);
VAR1A:=(1*VAR19);
VAR1B:=(VAR19*0.92);
VAR1C:=EMA(CLOSE,34);
VAR1D:=MA((VAR1C*1.12),5);
VAR1E:=MA((VAR1C*0.82),5);
VAR1F:=(CLOSE VAR1E);
VAR20:=((((((MA(AMOUNT,5)*VAR17)/MA(VOL,5))/100)-((MA(AMOUNT,125)/MA(VOL,125))/100))/((MA(AMOUNT,5)/MA(VOL,5))/100)) ((0-0.4)*VAR17));
VAR21:=HHV(HIGH,500);
VAR22:=LLV(LOW,500);
VAR23:=HHV(HIGH,250);
VAR24:=LLV(LOW,250);
VAR25:=HHV(HIGH,125);
VAR26:=LLV(LOW,125);
VAR27:=MA(((((((VAR21*0.45)+(VAR23*0.5))+VAR22)+VAR24)+VAR26)/5),35);
VAR28:=MA((((VAR23*0.62)+VAR26)/2),35);
VAR29:=MA((((VAR23*0.75)+VAR26)/2),18);
VAR2A:=MA((((((VAR23*0.93)+(VAR27*2))+(VAR28*1.8))+(VAR29*1.5))/4),18);
VAR2B:=MA(((((VAR21*0.95)+(VAR27*3))+(VAR28*2))/3),35);
VAR2C:=VAR27;
VAR2D:=VAR28;
VAR2E:=VAR29;
VAR2F:=VAR2A;
VAR30:=VAR2B;
VAR31:=((CLOSE-REF(MA(CLOSE,20),11)) (0-2));
VAR35:=((VAR18/(VAR18+VAR19))*VAR17);
VAR36:=((VAR19/(VAR18+VAR19))*VAR17);
VAR37:=EMA(VAR35,10);
VAR38:=EMA(VAR36,10);
VAR39:=EMA(VAR37,10);
VAR3A:=EMA(VAR38,20);
VAR3B:=EMA(VAR37,3);
VAR3C:=EMA(VAR39,6);
VAR3D:=EMA(VAR3A,2);
VAR3E:=(VAR3C-VAR3D);
VAR3F:=(((VAR3C-REF(VAR3C,1)) 0)AND((REF(VAR3C,1)-REF(VAR3C,2))
VAR40:=IF((crOSS(VAR3B,VAR3C)AND(VAR3C =20)),30,0);
VAR41:=VAR40;
VAR42:=(SMA(((AMOUNT/VOL)/100),13,1)*1.15);
VAR43:=(SMA(((AMOUNT/VOL)/100),13,1)*0.85);
VAR44:=(CLOSE-REF(MA(CLOSE,20),11));
VAR45:=(((((((((((((CLOSE VAR1E)ANDVAR20)AND(CLOSE VAR43))OR(((CLOSE VAR1E)ANDVAR31)ANDVAR20))OR((CLOSE VAR1E)AND(CLOSE VAR43)))OR(((CLOSE VAR1E)ANDVAR20)AND(CLOSE VAR43)))OR(VAR20AND(CLOSE VAR2C)))OR((VAR20ANDVAR31)AND(VAR44 (0-1.5))))OR(VAR20AND(CLOSE VAR1E)))OR(VAR20AND(VAR44 (0-1.5))))OR(VAR31AND(CLOSE VAR43)))OR((CLOSE VAR2C)AND(VAR44 (0-1.5))))OR((CLOSE VAR1E)ANDVAR31));
VAR4B:=(((HIGH+LOW)+CLOSE)/3);
VAR4C:=((VAR4B-MA(VAR4B,14))/(0.015*AVEDEV(VAR4B,14)));
VAR4D:=(((((MA(AMOUNT,5)/MA(VOL,5))/100)-((MA(AMOUNT,110)/MA(VOL,110))/100))/((MA(AMOUNT,5)/MA(VOL,5))/100)) (0-0.273));
VAR4E:=(((CLOSE-MA(CLOSE,30))/MA(CLOSE,30)) (0-0.125));
VAR4F:=(VAR11ANDVAR12);
VAR50:=((((VAR2 =(0-45))AND(VAR2 =(0-7)))AND(VAR3 =(0-11)))AND(VAR4 =(0-14)));
VAR51:=(COUNT(VAR50,1)
VAR52:=(VAR4FANDVAR51);
VAR53:=(((((VAR20AND(CLOSE VAR1E))ANDVAR31)AND(CLOSE VAR2C))ANDVAR45)ANDVAR52);
VAR5B:=((((((VAR2 =(0-15.8))AND(VAR2 =(0-12.2)))AND(VAR3 =(0-20.8)))AND(VAR4 =(0-27.5)))AND(VARE =11.7))AND(VAR4C =(0-145)));
VAR5C:=9.999999884842E+0.26;
VAR5D:=(COst(10)*0);
VAR5E:=((((MA(AMOUNT,5)/MA(VOL,5))/100)-((MA(AMOUNT,125)/MA(VOL,125))/100))/((MA(AMOUNT,5)/MA(VOL,5))/100));
VAR5F:=MA((((LLV(LOW,45)-CLOSE)/(HHV(HIGH,45)-LLV(LOW,45)))*100),5);
VAR60:=((CROSS((0-5),VAR5F)AND(VAR5E (0-0.4)))AND(((CLOSE-MA(CLOSE,30))/MA(CLOSE,30)) (0-0.19)));
VAR61:=MA(CLOSE,3);
VAR62:=(REF(CLOSE,2)*0.865);
VAR63:=(REF(CLOSE,13)*0.772);
VAR64:=MIN(VAR62,VAR63);
VAR65:=((100*VOL)/CAPITAL);
:IF(((((VAR9ORVAR16)ORVAR53)ORVAR5B)OR((((CLOSE-VAR64)/CLOSE) 0.03)AND((SUM(VAR65,5)/5) 1.8))),1,0)COLORRED;
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),13,1)/SMA(MAX(LOW-VAR2,0),13,1)*100;
VAR4:=EMA(IF(CLOSE*1.2,VAR3*13,VAR3/13),13);
VAR5:=LLV(LOW,34);
VAR6:=HHV(VAR4,34);
VAR7:=IF(LLV(LOW,55),1,0);
VAR8:=EMA(IF(LOW =VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
VAR9:=EMA(CLOSE,5);
VAR10:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*(-10);
VAR11:=EMA(IF(LOW =VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7*(-1);
VAR12:=EMA(CLOSE,5)*(-1);
TDXSTEP356:STICKLINE(VAR8 REF(VAR8,1),0,VAR8,6,1),COLOR10FFFF,LINETHICK3;
买点参考:IF(VAR8 REF(VAR8,1),0,VAR8),COLOR0FFFFF;
TDXSTEP357:STICKLINE(VAR11 REF(VAR11,1),0,VAR11,6,1),COLORFFF810;
界:0,COLORWHITE;
XL1:=MA(LOW,2)*0.96;
XL2:=MA(LOW,26)*0.85;
XL3:=REF(XL1,1) XL2ANDREF(XL1,1) XL1ANDREF(XL1,1) REF(XL1,2);
TDXSTEP358:STICKLINE(XL3,0,VAR8*3,4,0),COLORRED;
介入参考:IF(XL3,0,VAR8*3),COLORRED;
VA:=(2*CLOSE+HIGH+LOW)/4;
VB:=LLV(LOW,5);
VC:=HHV(HIGH,5);
红线上穿买:=EMA((VA-VB)/(VC-VB)*27,5);
红线下穿卖:=EMA(红线上穿买,3);
WY1001:=(2*CLOSE+HIGH+LOW)/4;
WY1002:=EMA(WY1001,4);
WY1003:=EMA(WY1002,4);
WY1004:=EMA(WY1003,4);
XYS0:(WY1004-REF(WY1004,1))/REF(WY1004,1)*100;
STICKLINE(XYS0 =0,XYS0,0,2,0),COLORRED;
STICKLINE(XYS0 0,XYS0,0,2,0),COLORGREEN;
PJGJ:=AMOUNT/VOL/100;SSRYDJX:=MA(PJGJ,13);
SSRCJL:=EMA(VOL,13);SSRCJE:=EMA(AMOUNT,13);
SSRCBJX:=SSRCJE/SSRCJL/100;
CYS13:=(CLOSE-SSRCBJX)/SSRCBJX*100;
XYSHSL:=EMA(VOL/CAPITAL*100,13);
ZZX:0,COLORWHITE;
N:=3;
M:=6;
VARS:=100;
VARZQ:=30;
RSV:=(CLOSE-LLV(LOW,VARZQ))/(HHV(HIGH,VARZQ)-LLV(LOW,VARZQ))*VARS;
K:=SMA(RSV,5,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
HS:=VOL/CAPITAL;
SH:=(HHV(HIGH,VARZQ)-CLOSE)/(HHV(HIGH,VARZQ)-LLV(LOW,VARZQ))*VARS-10;
JG:=(CLOSE-LLV(LOW,VARZQ))/(HHV(HIGH,VARZQ)-LLV(LOW,VARZQ))*VARS;
GF:=SMA(JG,13,8);
DDJG:=JG-REF(JG,1);
DTJG:=HS*DDJG*100/4;
VARZLSCJG:=(90+SUM(DTJG,0));
:SUM(DTJG,0)+90,LINETHICK1,COLORRED;
STICKLINE(DTJG 0,VARZLSCJG,VARZLSCJG+DTJG,1,0),COLORRED;
STICKLINE(DTJG 0,VARZLSCJG+DTJG,VARZLSCJG,1,0),COLORGREEN;
DDSH:=SH-REF(SH,1);
DTSH:=HS*DDSH*100/4;
VARZLSCSH:=(60+SUM(DTSH,0));
筹码:SUM(DTSH,0)+60,LINETHICK1,COLORWHITE;
STICKLINE(DTSH 0,VARZLSCSH,VARZLSCSH+DTSH,1,0),COLORRED;
STICKLINE(DTSH 0,VARZLSCSH+DTSH,VARZLSCSH,1,0),COLORGREEN;
DDGF:=GF-REF(GF,1);
DTGF:=HS*DDGF*100/4;
VARZLSCGF:=(30+SUM(DTGF,0));
跟风:SUM(DTGF,0)+30,LINETHICK1,COLORCYAN;
STICKLINE(DTGF 0,VARZLSCGF,VARZLSCGF+DTGF,1,0),COLORRED;
STICKLINE(DTGF 0,VARZLSCGF+DTGF,VARZLSCGF,1,0),COLORGREEN;
[源码注释]动态公式解读
MD赋值:收盘价的20日[1日权重]移动平均
VART1赋值:(收盘价-MD)的2乘幂
VART2赋值:VART1的20日简单移动平均
VART3赋值:VART2的开方
UPPER赋值:MD+2*VART3
UB赋值:1日前的UPPER
收盘价上穿UB