齋主MACD通道(成本區(qū)、波段底)指標(biāo)公式源碼

上傳人:xins****2008 文檔編號:53219928 上傳時間:2022-02-10 格式:DOCX 頁數(shù):14 大?。?74.65KB
收藏 版權(quán)申訴 舉報 下載
齋主MACD通道(成本區(qū)、波段底)指標(biāo)公式源碼_第1頁
第1頁 / 共14頁
齋主MACD通道(成本區(qū)、波段底)指標(biāo)公式源碼_第2頁
第2頁 / 共14頁
齋主MACD通道(成本區(qū)、波段底)指標(biāo)公式源碼_第3頁
第3頁 / 共14頁

下載文檔到電腦,查找使用更方便

0 積分

下載資源

還剩頁未讀,繼續(xù)閱讀

資源描述:

《齋主MACD通道(成本區(qū)、波段底)指標(biāo)公式源碼》由會員分享,可在線閱讀,更多相關(guān)《齋主MACD通道(成本區(qū)、波段底)指標(biāo)公式源碼(14頁珍藏版)》請在裝配圖網(wǎng)上搜索。

1、 【通達(dá)信】齋主MACD通道(成本區(qū)、波段底、加倉)-指標(biāo)公式源碼 DIF:=EMA(CLOSE,60)-EMA(CLOSE,130); DEA:=EMA(DIF,45); MACD:=(DIF-DEA)*2,COLORSTICK; {MACD} RC:=DYNAINFO(3)*1.1; DK:=MACD*2; STICKLINE(DK<0 AND DKREF (DK,1),DK+RC,RC,0.05,1),COLORWH

2、ITE; STICKLINE(DK>REF(DK,1) AND DK>0,DK+RC,RC,0.05,1),COLORRED; STICKLINE(DK0,DK+RC,RC,0.05,1),COLOR00FF00; VAR4S:=(2*CLOSE+HIGH+LOW)/4; 成本區(qū):EMA(VAR4S,90)*0.995,,COLORYELLOW,POINTDOT {CIRCLEDOT}; GJZ:=(C+H+L+O)/4; 阻Z:=L+(GJZ-L)+(C-L); 支Z:=L+(C-GJZ); NN:=100; 高點:=CO

3、NST(HHV(H,NN)); 低點:=CONST(LLV(L,NN)); 明日阻力:=L+(GJZ-L)+(C-L); 明日支撐:=L+(C-GJZ); 明日阻力2:=L+2*(GJZ-L)+(C-L); 明日支撐2:=L+(C-GJZ)-(GJZ-L); 今日阻力:=CONST(REF(明日阻力 , 1)),NODRAW; 今日支撐:=CONST(REF(明日支撐 , 1)),NODRAW; 今日阻力2:=CONST(REF(明日阻力2 , 1)),NODRAW; 今日支撐2:=CONST(REF(明日支撐2 , 1)),NODRAW; STICKLINE(ISLAST

4、BAR,今日阻力,今日阻力 2,20,0),COLORGRAY; STICKLINE(ISLASTBAR,今日支撐,今日支撐 2,20,0),COLORGRAY; MA60:=MA(CLOSE,60),COLORCYAN,LINETHICK2; MA120:=MA(CLOSE,120),COLORCYAN,LINETHICK2; LC:=REF(CLOSE,1); VAR28Z:=SMA(MAX(CLOSE-LC,0),5.5,1)/SMA(ABS(CLOSE- LC),6,1)*100; VARA00:=((AMOUNT)/(VOL))/(100); VARAB0

5、0:=((3)*(HIGH)+LOW+OPEN+(2)*(CLOSE))/(7); VARAC00:=((SUM(AMOUNT,7))/(VARA00))/(100); VARD0:=DMA(VARAB00,(VOL)/(VARAC00)); VARDE0:=((CLOSE-VARD0)/(VARD0))*(100); VARDE0F:=((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV (LOW,34)))*(100); VARDE0JF:=MA(VARDE0,20)+STD(VARDE0,20); BIAS18:=((CLOSE-MA(CLOSE,

6、18))/(MA(CLOSE,18)))* (100); AA:=SMA(VARDE0F,3,1); SS:=(REF(BIAS18,1)>=5) AND CROSS(VARDE0JF,VARDE0) AND (AA>79); 中軌:=MA(CLOSE,34)NODRAW; 上軌:=中軌*1.0618,CIRCLEDOT,COLORFF6600; 下軌:=中軌*0.89,CIRCLEDOT,COLOR6C6CFF; 頂軌:=中軌*1.191,COLORGREEN; 底軌:=中軌*0.809,COLORYELLOW; DRAWBAND(中軌,RGB(250,150,0)

7、,REF(中軌,2),RGB (00,50,200)); DRAWBAND(頂軌,RGB(200,50,51),REF(頂軌*1.005,1),RGB (0,160,100)); DRAWBAND(底軌,RGB(200,50,51),REF(底軌*0.995,1),RGB (0,160,100)); DRAWBAND(上軌,RGB(60,60,0),上軌*1.005,RGB (50,100,60)); DRAWBAND(下軌,RGB(50,100,60),下軌*0.995,RGB (60,60,0)); VA1:=CLOSE>REF(CLOSE,1) AND CL

8、OSE>REF(CLOSE,2); VA2:=REF(VA1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VA3:=REF(VA2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VA4:=REF(VA3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VA5:=REF(VA4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);

9、VA6:=REF(VA5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VA7:=REF(VA6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VA8:=REF(VA7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VA9:=REF(VA8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAA:=REF(VA9,1) AND

10、CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAB:=REF(VAA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAC:=REF(VAB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); STICKLINE(VA1 OR VA2 OR VA3 OR VA4 OR VA5 OR VA6 OR VA7 OR VA8 OR VA9 OR VAA OR VAB OR VAC,CLOSE,REF (CLO

11、SE,1),3,0),COLORRED; VAD:=CLOSE=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAF:=REF(VAE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VA10:=REF(VAF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VA11:=REF(VA10,1)

12、 AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VA12:=REF(VA11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VA13:=REF(VA12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VA14:=REF(VA13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VA15:=REF(VA14,1) AND CLOSE<=

13、REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VA16:=REF(VA15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VA17:=REF(VA16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VA18:=REF(VA17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); STICKLINE(VAD OR VAE OR VAF OR VA10 OR VA

14、11 OR VA12 OR VA13 OR VA14 OR VA15 OR VA16 OR VA17 OR VA18,CLOSE,REF(CLOSE,1),3,0),COLORLIBLUE; VA19:=REF(VAD OR VAE OR VAF OR VA10 OR VA11 OR VA12 OR VA13 OR VA14 OR VA15 OR VA16 OR VA17 OR VA18,1) AND VA1; STICKLINE(VA19,REF(CLOSE,1),REF (CLOSE,2),3.4,0),COLORYELLOW; VA1A:=REF(

15、VA1 OR VA2 OR VA3 OR VA4 OR VA5 OR VA6 OR VA7 OR VA8 OR VA9 OR VAA OR VAB OR VAC,1) AND VAD; STICKLINE(VA1A,REF(CLOSE,1),REF (CLOSE,2),3.4,0),COLORBLUE; AA1:=3*SMA((C-LLV(L,9))/(HHV(H,9)-LLV(L,9)) *100,3,1)-2*SMA(SMA((C-LLV(L,9))/(HHV(H,9)-LLV (L,9))*100,3,1),3,1); 加倉:=IF(CROSS(AA1,REF(

16、AA1+0.01,1)) AND LLV(AA1,2) =LLV(AA1,8) AND BETWEEN(AA1,20,60),1,0); 波段底:=(3)*(SMA(((CLOSE - LLV(LOW,27))/(HHV (HIGH,27) - LLV(LOW,27)))*(100),5,1)) - (2)*(SMA(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1),3,1)); A:=(3*C+L+O+H)/6; X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*

17、REF(A,3) +16*REF(A,4)+15*REF(A,5)+ 14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9) +10*REF(A,10)+9*REF(A,11)+8*REF(A,12) +7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16) +3*REF(A,17)+2*REF(A,18)+ REF(A,20))/210; MTM:=C-REF(C,1); DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6); CB:=EMA(X

18、,13); 買:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0); 江恩線144: EMA (CLOSE,144),COLORRED,LINETHICK2,POINTDOT; 日:=50;昨前:=3; 高1:=REF(HHV(H,10),昨前); 高2:=REF(HHV(H,日),昨前); 低:=REF(LLV(L,10),昨前); 低1:=REF(LLV(L,日),昨前); 十日壓:REFDATE(高 1,DATE),COLORGREEN,LINETHIC

19、K1,POINTDOT; DRAWTEXT(ISLASTBAR,十日壓,'10 K線內(nèi)壓力點 位'),COLORGREEN; 五十日壓:REFDATE(高 2,DATE),COLORCYAN,LINETHICK1,POINTDOT; DRAWTEXT(ISLASTBAR,五十日壓,'50 K線內(nèi)壓力點 位'),COLORCYAN; 十日支撐:REFDATE (低,DATE),LINETHICK1,COLORYELLOW,POINTDOT ; DRAWTEXT(ISLASTBAR,十日支撐,'10 K線內(nèi)支撐點 位'),COLORYELLOW; 五十日支撐:R

20、EFDATE(低 1,DATE),COLORRED,LINETHICK1,POINTDOT; DRAWTEXT(ISLASTBAR,五十日支撐,'50 K線內(nèi)支撐點 位'),COLORRED; VAR5:=IF(YEAR=2002 AND MONTH=6 AND DAY=28,1,0); VAR6:=IF(YEAR=2002 AND MONTH=3 AND DAY=21,1,0); VAR7:=IF(YEAR=2001 AND MONTH=12 AND DAY=5,1,0); VAR8:=IF(YEAR=2001 AND MONTH=6 AND DAY=14,1,0); V

21、AR9:=IF(YEAR=2001 AND MONTH=1 AND DAY=11,1,0); VARA:=IF(YEAR=2000 AND MONTH=11 AND DAY=23,1,0); VARB:=IF(YEAR=2000 AND MONTH=8 AND DAY=22,1,0); VARC:=IF(YEAR=2000 AND MONTH=4 AND DAY=21,1,0); VARD:=IF(YEAR=1999 AND MONTH=6 AND DAY=30,1,0); VARE:=IF(YEAR=1999 AND MONTH=4 AND DAY=9,1,0); VARF:=I

22、F(YEAR=1998 AND MONTH=11 AND DAY=17,1,0); VAR10:=IF(YEAR=1998 AND MONTH=6 AND DAY=4,1,0); VAR11:=IF(YEAR=1997 AND MONTH=5 AND DAY=12,1,0); VAR12:=IF(YEAR=1996 AND MONTH=12 AND DAY=11,1,0); VAR13:=IF(YEAR=1994 AND MONTH=9 AND DAY=13,1,0); VAR14:=IF(YEAR=1993 AND MONTH=2 AND DAY=16,1,0); VAR15:=

23、IF(YEAR=1992 AND MONTH=5 AND DAY=26,1,0); VAR16:=IF(YEAR=2003 AND MONTH=3 AND DAY=4,1,0); VAR17:=IF(YEAR=2003 AND MONTH=4 AND DAY=16,1,0); VAR18:=(CROSS(100,"KDJ.J"(9,3,3)) OR CROSS ("KDJ.K"(9,3,3),"KDJ.J"(9,3,3))) AND "KDJ.D"(9,3,3)>75; VAR19:=IF(YEAR>1990 AND YEAR<2003,0,1); VAR1A:=IF(YE

24、AR=2003 AND MONTH=1 AND DAY=3,1,0); VAR1B:=IF(YEAR=2002 AND MONTH=6 AND DAY=6,1,0); VAR1C:=IF(YEAR=2002 AND MONTH=1 AND DAY=29,1,0); VAR1D:=IF(YEAR=2001 AND MONTH=10 AND DAY=22,1,0); VAR1E:=IF(YEAR=2001 AND MONTH=2 AND DAY=22,1,0); VAR1F:=IF(YEAR=2000 AND MONTH=9 AND DAY=26,1,0); VAR20:=IF(YEA

25、R=1999 AND MONTH=12 AND DAY=28,1,0); VAR21:=IF(YEAR=1999 AND MONTH=5 AND DAY=17,1,0); VAR22:=IF(YEAR=1999 AND MONTH=2 AND DAY=9,1,0); VAR23:=IF(YEAR=1998 AND MONTH=8 AND DAY=18,1,0); VAR24:=IF(YEAR=1998 AND MONTH=3 AND DAY=26,1,0); VAR25:=IF(YEAR=1997 AND MONTH=2 AND DAY=20,1,0); VAR26:=IF(YEA

26、R=1994 AND MONTH=7 AND DAY=29,1,0); VAR27:=IF(YEAR=2000 AND MONTH=5 AND DAY=15,1,0); VAR28:=IF(YEAR=1996 AND MONTH=1 AND DAY=19,1,0); VAR29:=IF(YEAR=1992 AND MONTH=11 AND DAY=20,1,0); VAR2A:=IF(YEAR=2003 AND MONTH=3 AND DAY=26,1,0); VAR2B:=IF(YEAR=2003 AND MONTH=5 AND DAY=13 AND CLOSE>200,1,

27、0); VAR2C:=MA(3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)- LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV (LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)) *100,5,1),3,1),5)*VAR19; VAR2D:=5; VAR2E:=CROSS(VAR2C,VAR2D); VAR2F:=VAR1A OR VAR1B OR VAR1C OR VAR1D OR VAR1E OR VAR1F OR VAR20 OR VAR21 OR VAR22 OR VA

28、R23 OR VAR24 OR VAR25 OR VAR26 OR VAR27 OR VAR28 OR VAR29 OR VAR2A OR VAR2B OR VAR2E; VAR30:=(VAR18 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC OR VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17){ AND CLOSE>200}; VAR24

29、Z:=EMA(AMOUNT/VOL/100,5); VAR25Z:=EMA(AMOUNT/VOL/100,13); VAR26Z:=VAR24Z-VAR25Z; VAR1Z:=(100-((90*(HHV(HIGH,21)-CLOSE))/(HHV (HIGH,21)-LLV(LOW,21)))); VAR2Z:=(100-((90*(HHV(HIGH,21)-CLOSE))/(HHV (HIGH,21)-LLV(LOW,21)))); VAR3Z:=(100-MA(((100*(HHV(HIGH,6)-CLOSE))/(HHV (HIGH,6)-LLV(LOW,6)))

30、,34)); DRAWTEXT(CROSS(VAR2Z,MA(VAR3Z,6)) AND CROSS(IF(1000*VAR26Z/VAR24Z>0,1000*VAR26Z/ VAR24Z,0)*0.19+1.9,IF((HHV(HIGH,13)-CLOSE)/(HHV (HIGH,13)-LLV(LOW,13))*120>100,100, (HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13)) *120)*0.07),(LOW*0.984),'↖強(qiáng)牛股出現(xiàn) '),COLORWHITE; SS1:=CROSS(波段底,3);

31、SS2:=FILTER(買=1,5); B1:=EMA((2*CLOSE+HIGH+LOW)/4,5); A1:IF(EMA((2*CLOSE+HIGH+LOW)/4,6)>REF(EMA ((2*CLOSE+HIGH+LOW)/4,6),1),B1,DRAWNULL),COLOR0000F F; A2:IF(EMA((2*CLOSE+HIGH+LOW)/4,6)

32、EMA((2*CLOSE+HIGH+LOW)/4,10)>REF(EMA ((2*CLOSE+HIGH+LOW)/4,13),1),B2,DRAWNULL),COLOR0000 FF; A4:IF(EMA((2*CLOSE+HIGH+LOW)/4,10)REF(EMA ((LO

33、W+CLOSE+OPEN)/3,28),1),B3,DRAWNULL),LINETHICK3, COLOR0000FF; A6:IF(EMA((LOW+CLOSE+OPEN)/3,28)REF ((EMA(LOW,125)+EMA ((CLOS

34、E+LOW)/2,250))/2,1),B4,DRAWNULL),COLOR0000FF; A8:IF((EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2

35、A(CLOSE,21); AAZ:=CLOSE>REF(CLOSE,1) AND REF(CLOSE,1)>REF (CLOSE,2) AND REF(CLOSE,1)=REF (CLOSE,5)),IF(REF(CLOSE,5)

36、 (CLOSE,6)REF(CLOSE,3) AND IF(REF (CLOSE,3)>REF(CLOSE,4),1,IF(REF(CLOSE,4)>REF (CLOSE,5),REF(CLOSE,1)>REF(CLOSE,4) OR (REF (CLOSE,2)>REF(CLOSE,4) AND REF(CLOSE,3)<=REF (CLOSE,5)),IF(REF(CLOSE,5)>REF

37、(CLOSE,6),1,REF (CLOSE,6)>REF(CLOSE,7)))); DRAWTEXT(AAZ AND CLOSE>REF(OPEN,2),L*0.98,'★+三平 底'),COLORYELLOW; DRAWTEXT(BBZ AND CLOSE

38、(CROSS(84,RSI) AND CROSS (76,VAR28Z),H*1.01,'賣出'),LINETHICK4,COLORGREEN; {DRAWICON(VAR2F,LOW-LOW*1/100,1);} DRAWICON(VAR2F AND CLOSE>江恩線144,LOW,1); DRAWICON(VAR30,HIGH,2); DRAWTEXT(VAR2F AND CLOSE<江恩線144,LOW,'秘密買 點!'), COLORYELLOW; DRAWTEXT(VAR2F AND CLOSE>江恩線144,LOW,'強(qiáng)勢買 點!'), COLORRED;

39、 DRAWTEXT(VAR30,HIGH,'秘密拋點'),COLOR00FF00; STICKLINE(SS2 AND SS1,L*0.96,L*0.98,2,0),COLORYELLOW; DRAWTEXT(SS2 AND SS1,L*0.96,'底買合 一'),COLORYELLOW; DRAWTEXT(FILTER(買=1,5),LOW-0.03,'買入'),COLORRED; DRAWTEXT(CROSS(波段底,3),L*0.97,'底'); DRAWTEXT(CROSS(MA60,MA120),MA60*0.99,'↑60金叉120牛 勢'),COLORYELLOW; DRAWTEXT(CROSS(MA120,MA60),MA60*0.99,'↓120死叉60熊 勢'),COLORWHITE; 【通達(dá)信】齋主MACD通道(成本區(qū)、波段底、加倉)-指標(biāo)公式效果圖 下載次數(shù): 0 2010-12-11 11:43 下載 (65.59 KB) 2010-12-11 11:41 (文檔來源:若水財經(jīng)社區(qū))

展開閱讀全文
溫馨提示:
1: 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
2: 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
3.本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
5. 裝配圖網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

相關(guān)資源

更多
正為您匹配相似的精品文檔
關(guān)于我們 - 網(wǎng)站聲明 - 網(wǎng)站地圖 - 資源地圖 - 友情鏈接 - 網(wǎng)站客服 - 聯(lián)系我們

copyright@ 2023-2025  zhuangpeitu.com 裝配圖網(wǎng)版權(quán)所有   聯(lián)系電話:18123376007

備案號:ICP2024067431-1 川公網(wǎng)安備51140202000466號


本站為文檔C2C交易模式,即用戶上傳的文檔直接被用戶下載,本站只是中間服務(wù)平臺,本站所有文檔下載所得的收益歸上傳人(含作者)所有。裝配圖網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對上載內(nèi)容本身不做任何修改或編輯。若文檔所含內(nèi)容侵犯了您的版權(quán)或隱私,請立即通知裝配圖網(wǎng),我們立即給予刪除!