您現(xiàn)在的位置: 南方財(cái)富網(wǎng) >> 股票知識(shí) >> 股票公式 >> 正文
南財(cái)搜索

背離共振副圖公式

2011-7-3 15:49:59   來源:本站原創(chuàng)   佚名
    

背離共振原碼(副圖)

{MA3:=MA(CLOSE,3); 
MA5:=MA(CLOSE,5); 
MA10:=MA(CLOSE,10); 
MA20:=MA(CLOSE,20); 
MA30:=MA(CLOSE,30); 
MA60:=MA(CLOSE,60); 
MA120:=MA(CLOSE,120); 
MA250:=MA(CLOSE,250); }
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,8);
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1)); 
B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA); 
MACD底背:IF(B1>0,50,0) AND L-0.1;
DRAWTEXT(MACD底背,72,'MACDY底背');
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
A2:=BARSLAST(REF(CROSS(K,D),1)); 
B2:=REF(C,A2+1)>C AND REF(K,A2+1)<K AND CROSS(K,D); 
KDJ底背:IF(B2>0,50,0) AND L-0.25;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
A3:=BARSLAST(REF(CROSS(RSI1,RSI2),1)); 
B3:=REF(C,A3+1)>C AND REF(RSI1,A3+1)<RSI1 AND CROSS(RSI1,RSI2); 
RSI底背:IF(B3>0,50,0) AND L-0.4;
全底背:IF(MACD底背 OR KDJ底背 OR RSI底背,50,0),COLORFF00FF;
DRAWTEXT(MACD底背,50,'M底背'),COLOR0000FF;
DRAWTEXT(KDJ底背,65,'K底背'),COLOR0000FF;
DRAWTEXT(RSI底背,80,'R底背'),COLOR0000FF;
DRAWTEXT(全底背,100,'全底背'),COLORYELLOW,LINETHICK2;
{--------------------}
趨勢: 5*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),2,1),LINETHICK0,COLOR7F52AF;
趨勢1: EMA(MA(趨勢,5),3),LINETHICK0,COLORA6B8C1;
STICKLINE(趨勢>=趨勢1,趨勢,趨勢1,5,0),COLOR7F52AF;
STICKLINE(趨勢<趨勢1,趨勢,趨勢1,5,0),COLORA6B8C1;
STICKLINE(趨勢>108 AND 趨勢>=趨勢1,趨勢,108,5,0),COLORFF0000;
STICKLINE(趨勢1>108 AND 趨勢<趨勢1,趨勢1,108,5,0),COLORFFFFFF;
STICKLINE(趨勢<0 AND 趨勢<趨勢1,趨勢,0,5,0),COLORF00FF0;
STICKLINE(趨勢1<0 AND 趨勢>趨勢1,趨勢1,0,5,0),COLORF0F000;
V1:= MA(CLOSE,5)=HHV(MA(CLOSE,5),20);
V2:= MA(CLOSE,5)>MA(CLOSE,20);
V3:= COUNT(MA(CLOSE,1)>REF(CLOSE,1),3)=3;
風(fēng)險(xiǎn): IF(V1 AND V2 AND V3,30,0),LINETHICK0,STICK,COLOR00FF00;
V11:= MA(CLOSE,5)=HHV(MA(CLOSE,5),120);
V21:= MA(CLOSE,5)>MA(CLOSE,120);
V31:= COUNT(MA(CLOSE,1)>REF(CLOSE,1),3)=3;
風(fēng)險(xiǎn)1: IF(V11 AND V21 AND V31,60,0),LINETHICK0,STICK,COLORF0F000;
底部: 5,LINETHICK0,COLOR00FFFF;
抄底: IF(CROSS(趨勢,底部),40,0),LINETHICK2,STICK,COLOR00FFFF;
DRAWTEXT(抄底,50,'抄底'),COLOR0000FF;
天線: 108,LINETHICK0,COLORFF9D00;
逃頂: IF(CROSS(天線,趨勢),1,0),LINETHICK0,STICK,COLORFF9D00;
STICKLINE(CROSS(天線,趨勢),90,108,3,0),COLORFF9D00;
DRAWTEXT(CROSS(天線,趨勢),85,'逃頂'),COLORFF9D00;

DRAWTEXT(CROSS(天線,趨勢),85,'逃頂'),COLORFF9D00;

(南方財(cái)富網(wǎng)SOUTHMONEY.COM)

(責(zé)任編輯:張曉軒)

    南方財(cái)富網(wǎng)聲明:股市資訊來源于合作媒體及機(jī)構(gòu),屬作者個(gè)人觀點(diǎn),僅供投資者參考,并不構(gòu)成投資建議。投資者據(jù)此操作,風(fēng)險(xiǎn)自擔(dān)。
商務(wù)進(jìn)行時(shí)
每日必讀
學(xué)院24小時(shí)排行
證券導(dǎo)讀
熱圖推薦

關(guān)于南方財(cái)富網(wǎng)版權(quán)聲明誠聘英才廣告服務(wù)網(wǎng)站地圖友情鏈接
特此聲明:廣告商的言論與行為均與南方財(cái)富網(wǎng)無關(guān)
dixmanbetx.com
南方財(cái)富網(wǎng) © 版權(quán)所有 閩ICP備09035581號(hào)