您现在的位置:程序化交易>> 股票公式>> 通达信>> 通达信公式>>正文内容

航海家指标组合全套公式源码[通达信公式]

相关标签: 航海家全套指标源码 、 航海家指标公式源码 、 航海家指标公式 、 航海家经传旗舰版指标 、 航海家指标主力统计 、 航海家潜龙飞天指标 、 航海家最好的指标公式 、 航海家主力控盘指标 、 航海家指标大全 、

 

 

航海家指标组合公式源码

 指标说明:黄色线上穿红色线为下降趋势转入上升趋势中..另外这两根智能辅助线也可为支撑线.破线.后势看跌!
 


HHJSJDA:=(3*CLOSE+OPEN+LOW+HIGH)/6;
HHJSJDB:(20*HHJsjda+19*ref(HHJsjda,1)+18*ref(HHJsjda,2)+17*ref(HHJsjda,3)+16*ref(HHJsjda,4)+15*ref(HHJsjda,5)+14*ref(HHJsjda,6)
+13*ref(HHJsjda,7)+12*ref(HHJsjda,8)+11*ref(HHJsjda,9)+10*ref(HHJsjda,10)+9*ref(HHJsjda,11)+8*ref(HHJsjda,12)
+7*ref(HHJsjda,13)+6*ref(HHJsjda,14)+5*ref(HHJsjda,15)+4*ref(HHJsjda,16)+3*ref(HHJsjda,17)+2*ref(HHJsjda,18)+
ref(HHJsjda,20))/210,coloryelLOW;
HHJSJDC:MA(HHJSJDB,5),colorred; {本文来至程序化交易网 cxh99.com}

 

捕捞季节(副图)


指标说明:据说是航海家旗舰版里一个非常有用的指标.低位金叉买进,高位死叉卖出,绿色转红色为弱势转强势.强势状态再发出金叉信号可理解为空中加油(也有可能出现震荡趋势,请配合其他指标一起用.初学者应该只选择低位金叉进场)


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,8,0),colorred;
STICKLINE(xys0<0,xys0,0,8,0),colorgreen;
pjgj:=AMOUNT/vol/100;
ssrydjx:=MA(pjgj,13);
ssrcjl:=eMA(vol,13);
ssrcje:=eMA(AMOUNT,13);
DRAWTEXT_FIX(C>O,0.01,0.9,0,' WWW.CXH99.COM '),COLORRED;
DRAWTEXT_FIX(C>O,1,1,0,'程序化交易模型'),COLORRED;

ssrcbjx:=ssrcje/ssrcjl/100;
cys13:=(CLOSE-ssrcbjx)/ssrcbjx*100;
xyshsl:=eMA(vol/CAPITAL*100,13);
zzx:0,colorwhite;{本文来源: www.cxh99.com }
STICKLINE(xyshsl>6.1 and CYS13>5 ,2 ,0 ,8 ,0 ),COLORGREEN;
STICKLINE(xyshsl>3.8 and CYS13>5 ,1.5 ,0 ,8 ,0 ),COLORYELLOW;
STICKLINE(xyshsl>2.1 and CYS13>5 ,1 ,0 ,8 ,0 ),COLORCYAN;
STICKLINE(xyshsl>1.8 and CYS13>5 ,0.5 ,0 ,8 ,0 ),COLORBLUE;
xys1:MA(xys0,2); {内容来至程序化交易网 CXH99.COM}
xys2:MA(xys0,1); {内容来至程序化交易网 CXH99.COM}

飞鱼出水(副图)
指标说明:可理解为多空分界线.红色线向上代表多空力量正在转强.绿色线向上代表空方力量转强.反之,绿色线在上方向下代表多方力量转强,红色线由上向下代表空方力量转强.下方的小方格代表主力吸筹.


VAR1:=ref(LOW,1);
VAR2:=SMA(ABS(LOW-VAR1),3,1)/SMA(MAX(LOW-VAR1,0),3,1)*100;
VAR3:=EMA(IF(CLOSE*1.2,VAR2*10,VAR2/10),3);
VAR4:=LLV(LOW,38);
VAR5:=HHV(VAR3,38);
VAR6:=IF(LLV(LOW,90),1,0);
VAR7:=EMA(IF(LOW<=VAR4,(VAR3+VAR5*2)/2,0),3)/618*VAR6;
底部吸筹: STICKLINE(VAR7,0,VAR7,6,1),COLORRED ;
V1:=LLV(H,240);
飞鱼:100*(C-V1)/V1,COLORRED,LINETHICK1;
V2:=HHV(H,240);
海洋:100*(V2-C)/C,COLORGREEN,LINETHICK1;
V3:=SUM(VOL,5)/CAPITAL;
CYF5:=100-(100/(1+V3)); {本文来至CXH99.COM}

 

 

海洋寻底(副图)
指标说明:一种颜色为短底,两种颜色为中底,三种颜色为大底,四种颜色为绝对底..另外还有两根是牛马线.当各种底部信号出现之后配合牛马双线,牛线上穿马线时也可为买入信号.反之,牛线下穿马线为卖出信号.用法跟捕捞季节一样


P1:=6;
P2:=5;

SSRCJL:=EMA(VOL,13);
SSRCJE:=EMA(AMOUNT,13);
SSRCBJX:=((SSRCJE / SSRCJL) / 100);
SSRGL:=(((CLOSE - SSRCBJX) / SSRCBJX) * 100);
绝对底:=SSRGL<(0-18);
大底:=SSRGL<(0-14);
DRAWTEXT_FIX(C>O,0.01,0.9,0,' WWW.CXH99.COM '),COLORRED;
DRAWTEXT_FIX(C>O,1,1,0,'程序化交易模型'),COLORRED;

中底:=SSRGL<(0-10);
短底:=SSRGL<(0-6);
STICKLINE((SSRGL < (0 - 18)),60,80,3,0),COLORRED;
STICKLINE((SSRGL < (0 - 14)),40,60,3,0),COLORBLUE;
STICKLINE((SSRGL < (0 - 10)),20,40,3,0),COLORYELLOW;
STICKLINE((SSRGL < (0 - 6)),0,20,3,0),COLORWHITE;
高卖:80, POINTDOT,COLORRED;
低吸:20, POINTDOT,COLORGREEN;
VAR1:=LLV(LOW,P1);
VAR2:=HHV(HIGH,P1);
牛线: EMA((CLOSE-VAR1)/(VAR2-VAR1)*100,P2),COLORRED,LINETHICK1;
马线: EMA(0.667*ref(牛线,1)+0.333*牛线,2),COLORGREEN,LINETHICK1;

 

海洋追涨(副图)
指标说明:没有.因为到目前为止我都还没了解到底是怎么个追涨法..有请高手来说明一下,呵呵.


HHJSJDA:=(3*CLOSE+OPEN+LOW+HIGH)/6;
HHJSJDB:=(20*HHJSJDA+19*ref(HHJSJDA,1)+18*ref(HHJSJDA,2)+17*ref(HHJSJDA,3)+16*ref(HHJSJDA,4)+15*ref(HHJSJDA,5)+14*ref(HHJSJDA,6)
+13*ref(HHJSJDA,7)+12*ref(HHJSJDA,8)+11*ref(HHJSJDA,9)+10*ref(HHJSJDA,10)+9*ref(HHJSJDA,11)+8*ref(HHJSJDA,12)
+7*ref(HHJSJDA,13)+6*ref(HHJSJDA,14)+5*ref(HHJSJDA,15)+4*ref(HHJSJDA,16)+3*ref(HHJSJDA,17)+2*ref(HHJSJDA,18)+
ref(HHJSJDA,20))/210;
HHJSJDC:=MA(HHJSJDB,5);
QQ1:=MA(MA(CLOSE,3),3);
DRAWTEXT_FIX(C>O,0.01,0.9,0,' WWW.CXH99.COM '),COLORRED;
DRAWTEXT_FIX(C>O,1,1,0,'程序化交易模型'),COLORRED;
QQ2:=MA(MA(CLOSE,15),9);
XYSQS1:=(QQ1-ref(QQ1,1))/ref(QQ1,1)*100;
XYSQS2:=(QQ2-ref(QQ2,1))/ref(QQ2,1)*100;
XYSHSL:=EMA(VOL/CAPITAL*100,13);
STICKLINE(XYSQS2>=ref(XYSQS2,1)AND XYSHSL>1,0,40,2,0),COLORRED;
STICKLINE(XYSQS2>=ref(XYSQS2,1)AND XYSHSL>1 AND C>HHJSJDB AND HHJSJDB>HHJSJDC,41,88,2,0),COLORLIRED;
IF(XYSQS2>=ref(XYSQS2,1) AND XYSHSL>1,XYSQS1*178,0); {本文来至程序化交易网 cxh99.com}

 

 

流动资金(副图)
指标说明:每天个股与大盘的资金流进或者流出的说明.盘后可看.


VAR1:=SMA(AMOUNT,10,1)/10000;
VAR2:=ref(VAR1,1);
VAR3:=SMA(AMOUNT,10,1)/10000;
资金运转: STICKLINE(VAR1>VAR2,VAR1,VAR2,8,0),COLORRED;
资金流失: STICKLINE(VAR1< VAR2,VAR1,VAR2,8,0),COLORGREEN;
起跑线: MA(VAR1,5);
警戒线: MA(VAR1,10),COLORYELLOW;
分界线: MA(VAR1,30),COLORCYAN;
DRAWTEXT(CROSS(警戒线,VAR3),警戒线*1.2,'警'),COLORWHITE;
DRAWTEXT(CROSS(分界线,VAR3),分界线*1.2,'走');

水手突破(副图)(飞狐软件里也可做主图用)
指标说明:选股票时可选次上趋势跟上趋势的股票来做的话就比较保险.
上趋势:MA(LOW,20)*1.2,color0080ff,LINETHICK2;
次上趋势:MA(LOW,20)*1.1,COLORYELLOW;
次下趋势:MA(HIGH,20)*0.9,COLORWHITE;
下趋势:MA(HIGH,20)*0.8,COLORGREEN,LINETHICK2;
ZD:=(C-ref(C,1))/ref(C,1)*100;
HDZF:=(HHV(H,20)-C)/(HHV(H,20)-LLV(L,20));
趋势强度:=IF(C>次上趋势,IF(C>上趋势,4,3),IF(C>次下趋势 AND C<次上趋势,2,IF(C<下趋势,0,1)));
STICKLINE(趋势强度=0,H,L,6,1),COLORBLUE;
STICKLINE(趋势强度=1,H,L,6,1),COLORGREEN;
STICKLINE(趋势强度=2,H,L,6,1),COLORGRAY;
STICKLINE(趋势强度=3,H,L,6,1),COLORYELLOW;
STICKLINE(趋势强度=4,H,L,6,1),COLORMAGENTA;
STICKLINE(趋势强度=0,C,O,5,0),COLORBLUE;
STICKLINE(趋势强度=1,C,O,5,0),COLORGREEN;
STICKLINE(趋势强度=2,C,O,5,0),COLORGRAY;
STICKLINE(趋势强度=3,C,O,5,0),COLORYELLOW;
STICKLINE(趋势强度=4,C,O,5,0),COLORMAGENTA; {内容来至程序化交易网 CXH99.COM}

 

主力追踪(副图)
指标说明:主力资金的进出.一眼便看明白..


MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
主力:(20*MID+19*ref(MID,1)+18*ref(MID,2)+17*ref(MID,3)+
16*ref(MID,4)+15*ref(MID,5)+14*ref(MID,6)+
13*ref(MID,7)+12*ref(MID,8)+11*ref(MID,9)+
10*ref(MID,10)+9*ref(MID,11)+8*ref(MID,12)+
7*ref(MID,13)+6*ref(MID,14)+5*ref(MID,15)+
4*ref(MID,16)+3*ref(MID,17)+2*ref(MID,18)+ref(MID,20))/210,COLORRED;

分时买卖(分时图里面的指标)
指标说明:没用过这个指标,既然是T+1的股票,就没必要看这个吧,呵呵.
input: P1(5,0,300),p2(10,0,300),p3(30,0,300),p4(60,0,300);
MA1:MA(CLOSE,P1);
MA2:MA(CLOSE,P2);
MA3:MA(CLOSE,P3);
MA4:MA(CLOSE,P4);
wyA001:=(2*CLOSE+HIGH+LOW)/4;
wyA002:=EMA(wyA001,4);
wyA003:=EMA(wyA002,4);
wyA004:=EMA(wyA003,4);
wyA柱:=(wyA004-ref(wyA004,1))/ref(wyA004,1)*100;
wyA线1:=MA(wyA柱,2);
wyA线2:=MA(wyA柱,1); {内容来至程序化交易网 CXH99.COM}

wy分时1线:=MA(CLOSE,1);
wy分时21线:=MA(CLOSE,21); {内容来至程序化交易网 CXH99.COM}

DRAWICON(WYA线1>0.25 AND WYA线2>0.25 AND CROSS(WYA线1,WYA线2),HIGH*1.0128,9);
DRAWICON(WYA线1<0 AND WYA线2<0 AND CROSS(WYA线1,WYA线2),HIGH*1.0128,9);
DRAWICON( CROSS(wy分时21线,wy分时1线),HIGH*1.0128,9) ; {内容来至程序化交易网 CXH99.COM}

//卖出信号

DRAWICON(WYA线1<-0.25 AND WYA线2<-0.25 AND CROSS(WYA线2,WYA线1),LOW,8);
DRAWICON(WYA线1>0 AND WYA线2>0 AND CROSS(WYA线2,WYA线1),LOW,8),coloryelLOW;
DRAWICON(cross(wy分时1线,wy分时21线),LOW,8),coloryelLOW;
//买入信号

 

动力一号排序(用于热度指数排列)
指标说明:数值越高代表越多人参与此股票.在飞狐软件里面的股票排列里按F6键,选出动力一号排序的指标位置,点确定.再到动力一号排序一列点右键刷新指标就出来了


HSL:=VOL/CAPITAL*100;
CYF:=(100-100/(1+EMA(HSL/3,13)))/2;
均价:=SUM(AMOUNT,3)/SUM(vol*100,3);
Cys3:=(c-均价)/均价*100; {本文来至CXH99.COM}

动力一号:CYF*689*CYS3*MA(vol,10)/10000000;
热度指数:(MA(VOL,3)/VOL)*((C-ref(C,1))/ref(C,1))*1000;

,航海家主力监测:VAR1:=ref((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);
VAR3:=EMA(VAR2,10);
VAR4:=LLV(LOW,33);
VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);
主力进场:IF(VAR5>ref(VAR5,1),VAR5,0),COLORRED,NODRAW;
STICKLINE(VAR5>ref(VAR5,1),0,VAR5,3,0 ),COLORRED;
洗盘:IF(VAR5<ref(VAR5,1),VAR5,0),COLORGREEN,NODRAW;
STICKLINE(VAR5<ref(VAR5,1),0,VAR5,3,0),COLORGREEN;

[1]

原码:
VAR1:=ref((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);
VAR3:=EMA(VAR2,10);
VAR4:=LLV(LOW,33);
VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);
主力进场:IF(VAR5>ref(VAR5,1),VAR5,0),COLORRED,NODRAW;
STICKLINE(VAR5>ref(VAR5,1),0,VAR5,3,0 ),COLORRED;
洗盘:IF(VAR5<ref(VAR5,1),VAR5,0),COLORGREEN,NODRAW;
STICKLINE(VAR5<ref(VAR5,1),0,VAR5,3,0),COLORGREEN;


航海家ZZ平均持股"平均持股:finance(7)/(zhizun(6)+zhizun(8)+zhizun(10)+zhizun(12))*10000;


中户:MA(zhizun(5),5),coloryelLOW,LINETHICK2;
大户:MA(zhizun(7),5),colorred,LINETHICK3;
超大户:MA(zhizun(9),5),colorMAgenta,LINETHICK4;
散户:MA(zhizun(11),5),colorgreen;




股东人数:zhizun(6)+zhizun(8)+zhizun(10)+zhizun(12);


ZZ分类持仓
机构持仓:zhizun(1),colorMAgenta,LINETHICK3;
法人持仓:zhizun(3),coloryelLOW,LINETHICK2;
普通帐户:100-zhizun(1)-zhizun(3),colorgreen,;

ZZ分量持仓
中户:MA(zhizun(5),5),coloryelLOW,LINETHICK2;
大户:MA(zhizun(7),5),colorred,LINETHICK3;
超大户:MA(zhizun(9),5),colorMAgenta,LINETHICK4;
散户:MA(zhizun(11),5),colorgreen;

[1]

ZZ股东人数
股东人数:zhizun(6)+zhizun(8)+zhizun(10)+zhizun(12);

ZZ平均持股
平均持股:finance(7)/(zhizun(6)+zhizun(8)+zhizun(10)+zhizun(12))*10000; {本文来至CXH99.COM}

 

 

 


航海家哭笑脸主图


MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
取舍线:(20*MID+19*ref(MID,1)+18*ref(MID,2)+17*ref(MID,3)+16*ref(MID,4)+15*ref(MID,5)+14*ref(MID,6)+13*ref(MID,7)+12*ref(MID,8)+11*ref(MID,9)+10*ref(MID,10)+9*ref(MID,11)+8*ref(MID,12)+7*ref(MID,13)+6*ref(MID,14)+5*ref(MID,15)+4*ref(MID,16)+3*ref(MID,17)+2*ref(MID,18)+ref(MID,20))/210,LINETHICK1,COLORYELLOW;
生命线:MA(取舍线,6),LINETHICK1,COLORRED;
五日线:MA(CLOSE,5),POINTDOT,COLORLIBLUE;
水平面:MA(CLOSE,60),CIRCLEDOT,COLORLIMAGENTA;
MA1:=MA(CLOSE,5);
MA2:=MA(CLOSE,10);
MA3:=MA(CLOSE,30);
MA4:=MA(CLOSE,60
);
WYA001:=(2*CLOSE+HIGH+LOW)/4;
WYA002:=EMA(WYA001,4);
WYA003:=EMA(WYA002,4);
WYA004:=EMA(WYA003,4);
WYA柱:=(WYA004-ref(WYA004,1))/ref(WYA004,1)*100;
WYA线1:=MA(WYA柱,2);
WYA线2:=MA(WYA柱,1); {内容来至程序化交易网 CXH99.COM}

WY分时1线:=MA(CLOSE,1);
WY分时21线:=MA(CLOSE,21);
DRAWICON(WYA线1>0.25 AND WYA线2>0.25 AND CROSS(WYA线1,WYA线2),HIGH*1.0128,6);
DRAWICON(WYA线1<0 AND WYA线2<0 AND CROSS(WYA线1,WYA线2),HIGH*1.0128,6);
DRAWICON( CROSS(WY分时21线,WY分时1线),HIGH*1.0128,6) ;
DRAWICON(WYA线1<-0.25 AND WYA线2<-0.25 AND CROSS(WYA线2,WYA线1),LOW*0.99,5);
DRAWICON(WYA线1>0 AND WYA线2>0 AND CROSS(WYA线2,WYA线1),LOW*0.99,5),COLORYELLOW;
DRAWICON(CROSS(WY分时1线,WY分时21线),LOW*0.99,5),COLORYELLOW; {本文来至程序化交易网 cxh99.com}

 

{别忘了将本网告诉您身边的朋友,可能您的不经意传达让他(她)在本网找到灵感,迅速发财。}

 

 

(责任编辑:程序化交易网整理)

 

 

 

有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友

可联系技术人员 QQ: 262069696  点击在线交流进行 有偿 编写!不贵!点击查看价格!

 


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容