資源描述:
《惡狼決策指標(biāo)主圖通達(dá)信指標(biāo)公式源碼》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在工程資料-天天文庫。
1、目前和好友一起研究了兒個(gè)指標(biāo),目前小有成效,特發(fā)出來供大家檢驗(yàn)以下是部分源碼:回歸斜率線A:=EMA(SLOPE(C,4)*20+C,42);經(jīng)典RL:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;經(jīng)典K:=SMA(經(jīng)典RL,3,1);經(jīng)典D:=SMA(經(jīng)典K,3,l);經(jīng)典J:=3*經(jīng)典12*經(jīng)典D;MAHLl:=100*((EMA((H+L)/2z3)-LLV(EMA((H+L)/2z5)z30)-(EMA(H,20)-EMA(L,20)))/(LLV(EMA((H+L)/2z5)
2、z30)-(EMA(Hz20)-EMA(L,20))));MAHL2:=IF(EMA(C,2)>冋歸斜率線AANDMAHLl>0,EMA(C,3),LLV(EMA((H+L)/2,5),30));{A}MAHL3:=IF(EMA(C,2)>回歸斜率線AANDMAHLl>0,LLV(EMA((H+L)/2,5)z30),EMA(Cz5));{A}回歸斜率帶:DRAWBAND(回歸斜率線A,RGB(235,0,230)zREF(回歸斜率線A,2),RGB(0,104,154));上線:=SMA(C,6.5,1);一號(hào)支撐線:SMA(C,14.5
3、,1);上線1:=SMA(C,3,1);一號(hào)支撐線1:=SMA(C,8,1);上線2:=SMA(C,3.5,1);DRAWTEXT(CROSS(一號(hào)支撐線1,上線l),H*l?08,洗盤'COLOROOFFOO;BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSEz12)+MA(CLOSEz25))/4;UPR:二BBI+3*STD(BBI,13)丄INETHICK2;DWN:=BBI-3*STD(BBI,13);安全:=MA(CLOSEZ55)ZLINETHICK2;LC:=REF(CLOSE,1);RSI:=SM
4、A(MAX(CLOSE-LCzO)z6zl)/SMA(ABS(CLOSE-LC)z6zl)*100;DRAWTEXT(CROSS(82,RSI)ANDCLOSE<上線1,HIGH*1.04;減倉?),COLORFF9966丄INETHICK2;A7:=(2*C+H+L)/4;操作:MA(A7,5),COLORBLUEZLINETHICK2;操作l:=MA(A7,5)*1.03,LINETHICK2;操作2:=MA(A7,5)*0.97,LINETHICK2;DRAWTEXT(CROSS(±線1,上線)AND上線1>操作丄OW*0.92;買進(jìn)
5、'),COLORYELLOW;VAR1:LLV(A7,21);VAR2:HHV(A7,30);DRAWTEXT(CROSS(±線1,操作)AND上線lv—號(hào)支撐線AND上線lv—號(hào)支撐線1AND上線lv上線ANDCLOSE>VAR1ZLOW*0.98;見底'),COLORYELLOW;YCX:=操作〉二REF(操作,1);H1:=MAX(MAX(上線,一號(hào)支撐線1),一號(hào)支撐線);L1:=MIN(MIN(上線,一號(hào)支撐線1),一號(hào)支撐線);DRAWTEXT(CROSS(±線1,一號(hào)支撐線1)AND上線1>操作丄0W*0.98;全倉1),CO
6、LORYELLOW;SK:=EMA((A7-VAR1)/(VAR2-VAR1)*1OO,7);SD:=EMA(0.667*REF(SK,l)4-0.333*SK,5);Ml:=1000*操作/一號(hào)支撐線v=1015AND1000*操作/一號(hào)支撐線〉=975;M2:=1000*一號(hào)支撐線1/一號(hào)支撐線v=1020AND—號(hào)支撐線1/一號(hào)支撐線>=980;M3:=1000*上線/一號(hào)支撐線<=1015AND上線/一號(hào)支撐線>=985;DRAWTEXT(IF(COUNT(CLOSE[6/10ANDCOUNT]
7、(SK>SDZ6)ANDREF(LOWZ5)=LLV(LOW,120)ANDREF(CLOSE>=OPENZ4)ANDREF(CLOSE>OPEN,3)ANDREF(CLOSE>OPEN,2)ANDREF(OPEN>CLOSEZ1)ANDOPEN>REF(CLOSEZ1),1,0),LOW*0.94Z'買進(jìn)')ZCOLORYELLOW;D:=MA(CLOSE,89)-MA(CLOSE,10)/3;DRAWTEXT(IF(CLOSEMA(VOL,5)/240ANDCLOSE>REF(CLOSE,l)*1.08ANDC
8、LOSE