您現(xiàn)在的位置: 南方財富網(wǎng) >> 股票知識 >> 股票公式 >> 正文 |
南方財富搜索 |
v1:=MA(CLOSE,17)+ABS(MA(CLOSE,17)-REF(MA(CLOSE,17),1)); v2:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1); 分水嶺:IF(MA(CLOSE,17)<v2,v2,MA(CLOSE,17)),COLORFF00FF,LINETHICK1; ma10:=MA(C,10),COLORWHITE,LINETHICK1; ma30:MA(C,30),COLOR00ff00,LINETHICK2; stickline(ma10>= REF(ma10,1),ma10,ref(ma10,1),8,1),COLORRED,LINETHICK2; stickline(ma10< REF(ma10,1),ma10,ref(ma10,1),8,1),COLORff9900,LINETHICK2; A1:=BARSLAST(REF(CROSS("MACD.DIFF"(12,26,9),"MACD.DEA"(12,26,9)),1)); B1:=REF(C,A1+1)> C AND REF("MACD.DIFF"(12,26,9),A1+1)<"MACD.DIFF"(12,26,9) AND CROSS("MACD.DIFF"(12,26,9),"MACD.DEA"(12,26,9)); DRAWTEXT(B1> 0,L-0.02,'底背離'),COLOR00FFFF;{底背離} C1:=BARSLAST(REF(CROSS("MACD.DEA"(12,26,9),"MACD.DIFF"(12,26,9)),1)); D1:=REF(C,C1+1)<C AND REF("MACD.DIFF"(12,26,9),C1+1)>"MACD.DIFF"(12,26,9) AND CROSS("MACD.DEA"(12,26,9), "MACD.DIFF"(12,26,9)); DRAWTEXT(D1> 0,H+0.16,'頂背離'),COLOR00FF00;{頂背離} Jm:=CROSS("Macd.DIFF"(12,26,9),"Macd.DEA"(12,26,9)); Jma:=CROSS("Macd.DEA"(12,26,9),"Macd.DIFF"(12,26,9)); Drawtext (Jm,l,'金*'),colorwhite;{金*} Drawtext (Jma,h,'死*'),coloryellow;{死*} JmCOUNT:=COUNT(Jm,BARSLAST("Macd.DEA"(12,26,9)>=0)); Jmtj:1*("Macd.DEA"(12,26,9)<0 and Count(JmCount=2,21)=1); JmaCOUNT:=COUNT(Jma,BARSLAST("Macd.DEA"(12,26,9)>=0)); Jmatj:1*("Macd.DEA"(12,26,9)>0 and Count(JmaCount=2,21)=1); Drawtext (Jmtj,l,'二次金*'),colorwhite;{macd二次金*} Drawtext (Jmatj,h,'二次死*'),colorwhite;{macd二次死*} |
(責(zé)任編輯:張元緣) |
延伸閱讀
|
||||||||||
|
要聞導(dǎo)讀
|
||||||||||
|