《海家系列指标源码.doc》由会员分享,可在线阅读,更多相关《海家系列指标源码.doc(4页珍藏版)》请在金锄头文库上搜索。
1、水手突破上趋势: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次下趋势ANDC次上趋势,2,IF(C下趋势,0,1);STICKLINE(趋势强度=0,H
2、,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,
3、0),COLORYELLOW;STICKLINE(趋势强度=4,C,O,5,0),COLORMAGENTA;航海家智能辅助线主图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,1
4、4)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20)/210,COLORRED;马线:MA(牛线,6),COLORGREEN;五日线:MA(CLOSE,5),POINTDOT,COLORLIBLUE;水平面:MA(CLOSE,60),POINTDOT,COLORYELLOW;航海家之海洋寻底参数:P1220缺省:5P2220缺省:4源码:SSRCJL:=EMA(VOL,13);SSRCJE:=EMA(AMOUNT,13);SSRCBJX:=(SSRCJE/SSRCJL)/100);SSRGL:=(CLOSE
5、-SSRCBJX)/SSRCBJX)*100);绝对底:=SSRGL(0-18);大底:=SSRGL(0-14);中底:=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,XYS0,0,2,0),COLORRED;STICKLINE(XYS06.1ANDCYS135,2,0,2,0),COLORGR
6、EEN;STICKLINE(XYSHSL3.8ANDCYS135,1.5,0,2,0),COLORYELLOW;STICKLINE(XYSHSL2.1ANDCYS135,1,0,2,0),COLORCYAN;STICKLINE(XYSHSL1.8ANDCYS135,0.5,0,2,0),COLORBLUE;XYS1:MA(XYS0,2);XYS2:MA(XYS0,1);海洋追涨HHJSJDA:=(3*CLOSE+OPEN+LOW+HIGH)/6;HHJSJDB:=(20*HHJSJDA+19*REF(HHJSJDA,1)+18*REF(HHJSJDA,2)+17*REF(HHJSJDA,3)+
7、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:=
8、MA(HHJSJDB,5);QQ1:=MA(MA(CLOSE,3),3);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)ANDXYSHSL1,0,40,2,0),COLORYELLOW;STICKLINE(XYSQS2=REF(XYSQS2,1)ANDXYSHSL1ANDCHHJSJDBANDHHJSJDBHHJSJ
9、DC,41,88,2,0),COLORRED;IF(XYSQS2=REF(XYSQS2,1)ANDXYSHSL1,XYSQS1*178,0);航海家之【海洋寻底】参数:P12,20,5P22,20,4源码:SSRCJL:=EMA(VOL,13);SSRCJE:=EMA(AMOUNT,13);SSRCBJX:=(SSRCJE/SSRCJL)/100);SSRGL:=(CLOSE-SSRCBJX)/SSRCBJX)*100);绝对底:=SSRGL(0-18);大底:=SSRGL(0-14);中底:=SSRGL(0-10);短底:=SSRGL(0-6);STICKLINE(SSRGL(0-18),6
10、0,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);K:EMA(CLOSE-VAR1)/(VAR2-VAR1)*100,P2),COLORRED,LINETHICK2;D:EMA(0.667*REF(K,1)+0.333*K,2),COLORGREEN,LINETHICK2;