资源描述:
《5行指标microsoft word 文档 (2)》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、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,1
2、8)+REF(MID,20))/210,COLORGREEN{COLORRED};马线:=MA(牛线,6),COLORMAGENTA{COLORYELLOW};STICKLINE(C>牛线,2.5,4,8,0),COLORRED{COLORGREEN},LINETHICK2;STICKLINE(C<马线,2.5,4,8,0),COLORGREEN{COLORRED},LINETHICK2;STICKLINE(牛线>=CANDC>=马线,2.5,4,8,0),COLORGREEN{COLORMAGENTA}{COLORYELLOW},LINETHICK2;A:=MAX(MA(C,6
3、0),MA(C,120));B:=MIN(MA(C,60),MA(C,120));STICKLINE(C>=A,0.5,2,8,0),COLORRED{COLORGREEN},LINETHICK2;STICKLINE(C<=B,0.5,2,8,0),COLORGREEN{COLORRED},LINETHICK2;STICKLINE(A>=CANDC>=B,0.5,2,8,0),COLORGREEN{COLORMAGENTA}{COLORYELLOW},LINETHICK2;{R:=0;}E:=MAX(MA(C,45),MA(C,90));F:=MIN(MA(C,45),MA(C,
4、90));STICKLINE(C>E,-1.5,0,8,0),COLORRED{COLORGREEN},LINETHICK2;STICKLINE(C=CANDC>=F,-1.5,0,8,0),COLORGREEN{COLORMAGENTA}{COLORYELLOW},LINETHICK2;J:=MAX(MA(C,30),MA(C,60));K:=MIN(MA(C,30),MA(C,60));STICKLINE(C>J,-3.5,-2,8,0),COLORRED{C
5、OLORGREEN},LINETHICK2;STICKLINE(C=CANDC>=K,-3.5,-2,8,0),COLORGREEN{COLORMAGENTA}{COLORYELLOW},LINETHICK2{原文链接:HTTP://WWW.88GS.COM/SOFT/SORT013/SORT05/DOWN-63684.HTML};{以上是四量图指标}MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);P01:=IF(MA1>MA2,1,IF(
6、MA2>MA1,-1,0));MA3:=MA(CLOSE,3);MA4:=MA(CLOSE,5);P02:=IF(MA3>MA4,1,IF(MA4>MA3,-1,0));MA5:=MA(CLOSE,12);MA6:=MA(CLOSE,50);P03:=IF(MA5>MA6,1,IF(MA6>MA5,-1,0));{KDJ}RSV:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;K:=EMA(RSV,3);D:=EMA(K,3);P04:=IF(K>D,1,IF(D>K,-1,0));{MACD}DIF:=EMA(CLOSE,12)
7、-EMA(CLOSE,26);DEA:=EMA(DIF,9);MACD:=(DIF-DEA)*2;P05:=IF(DIF>DEA,1,IF(DEA>DIF,-1,0));{TRIX}TR2:=EMA(EMA(EMA(CLOSE,12),12),12);TRIX:=(TR-REF(TR,1))/REF(TR,1)*100;MATRIX:=MA(TRIX,9);P06:=IF(TRIX>MATRIX,1,IF(MATRIX>TRIX,-1,0));{DMI}TR1:=EMA(MAX(