短線多頭:EMA(CLOSE,5),COLORFF00FF;xxx1:=(O+C+L+H)/4;短線空頭:EMA(xxx1,10);ma20:ma(close,20),COLORblue;ma30:ma(close,30),COLORgreen;ma60:ma(close,60);VAR2:=(HIGH+LOW+CLOSE*2)/4;VAR3:=EMA(VAR2,21);VAR4:=STD(VAR2,21);VAR5:=((VAR2-VAR3)/VAR4*100+200)/4;VAR6:=(EMA(VAR5,5)-25)*1.56;AK:=EMA(VAR6,2)*1.22;AD:=EMA(AK,2);AJ:=3*AK-2*AD;STICKLINE(CROSS(AK,AD),LOW,LOW-0.09,8,0),COLORRED;Var9:=EMA(Var7,8);
{早盤15分鐘,成交量}B:=DYNAINFO(8);BV:=REF(V,1);ZF2:=B/BV*100;{9點45 的漲幅}A:=DYNAINFO(7);AC1:=REF(C,1);ZF1:=(A-AC1)/AC1*100;{當前價格高于開盤價}D:=A-O;{股票昨天是漲的}{K:=REF(C,1)-REF(O,1);}{5日均線比10日均線高}KK:=MA(C,5)>MA(C,10) AND MA(C,5)>REF(MA(C,5),1);DEA5:="MACD.DEA#MIN5";DEA15:="MACD.DEA#MIN15";
漲停再啟動。AA:=COUNT(REF(C,1)*1.1-C0;BBB:="MACD.DIF#MIN60">REF("MACD.DIF#MIN60",1)AND "MACD.DEA#MIN60">=REF("MACD.DEA#MIN60",1);CCC:="KDJ.K#MIN60">=REF("KDJ.K#MIN60",1);XG: AA AND BBB AND CCC , COLORRED;
PARTLINE(DEA,DEA>REF(DEA,1) AND F1> REF(F1,1),RGB(255,127,0),DEA<</SPAN>REF(DEA,1) AND F1> REF(F1,1),RGB(0,100,255),DEA=REF(DEA,1) AND F1> REF(F1,1) ,RGB(0,255,50),F1<</SPAN> REF(F1,1),RGB(0,0,0)),Linethick4;STICKLINE(MACD<</SPAN>0 AND MACD<</SPAN>REF(MACD,1),0,MACD,2,0),colorFF8800;gt:=DEA>REF(DEA,1) AND REF(DEA,1)<</SPAN>REF(DEA,2);gt2:=dea<</SPAN>REF(DEA,1) AND REF(DEA,1)>REF(DEA,2);
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,2,0),COLORRED;STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,2,0),COLOR00FFFF;STICKLINE(MACD1<MACD2,0,MACD1,1,0),COLOR40FF00;
STICKLINE(MACD>ref(MACD,1)and MACD>0,0,MACD,3,0),COLOR0000FF;{0軸上長}STICKLINE(MACD0,0,MACD,3,0),COLOR0779e2;{0軸上短FF0099}STICKLINE(MACDref(MACD,1)and MACD<0,0,MACD,3,0),colorFFDD00;{0軸下短FFDD00};
三種頂背離大體還可以用,盡管MACD的頂背離表達得很不準確KDJ、RSI底背離也還可以,本例KDJ不精確KDJ、RSI底背離也還可以,本例RSI不精確MACD底背離基本不能用,幾個有用的波段大底,它毫無表示。將MACD底背離的一行調整成:B1:=REF(C,A1+2)=REF(MACD,1) AND REF(MACD,1)把DIF換成MACDB1:=REF(C,A1+2)=REF(MACD,1) AND REF(MACD,1)就MACD、KDJ和RSI三個公式而言,無論抄底還是逃頂,MACD都比KDJ和RSI更準確,更有用。
RSV:=(CLOSE-LLV(LOW,9))/(HHV(H,9)-LLV(LOW,9))*100-50;K:SMA(RSV,3,1);D:SMA(K,3,1),COLORFF00FF,linethick1;J:3*k-2*d,Color5200FF,linethick2;PARTLINE(J<=REF(J,1),J),ColorFFFFFF,linethick2;DRAWICON(CROSS(j,k),k,10);
DRAWTEXT(cross(diff,dea) and macd8>0 and diffs>deas,dea,''--臥槽馬'')color;{獵豹出擊}a2:=(CLOSE/REF(CLOSE,1)-1)*100;a3:=AMOUNT/FINANCE(7)/1000;{a2/a3;}a4:=INDEXC/ref(indexc,1);drawtext(a2/a4>9.5,DIFF8,''--獵豹出擊82''),coloryellow;{獵鷹出擊}出擊:=((C-O)/REF(C,1)),colormagenta;drawtext(cross(出擊,0.09) or 出擊>0.09,dea8,''--獵鷹出擊75'')coloryellow;股票論壇 www.55188.com.
MACD:(DIFF-DEA)2;STICKLINE(MACD>=0ANDMACD>=REF(MACD,1),0,MACD,0,0),COLORRED;STICKLINE(MACD>=0ANDMACDSTICKLINE(MACD=REF(MACD,1),0,MACD,0,0),COLORFF00FF;STICKLINE(MACD多轉空:=((((LLV(MACD,4)>0)AND(MACDREF(MACD,2)))AND(REF(MACD,2)>REF(MACD,3)));空轉多:=((((HHV(MACD,4)REF(MACD,1)))AND(REF(MACD,1)DRAWICON(多轉空,MACD1.002,5);
|
|