★資金抄底
結(jié)合了日線周期以及相對強弱的大單凈量的操作分析,從中判斷資金抄底的機會,風(fēng)險以及盈利機會,具體的源碼如下:
IF(PERIODNAME<>"日線")
{
統(tǒng)計:"該指標(biāo)只在日線周期下有效。";
RETURN;
}
//大單凈量
r:=((ZDMR[-1]+BDMR[-1])-(ZDMC[-1]+BDMC[-1]))/SHGZG*100;
//相對強弱
LC := REF(CLOSE,1);//前一日收盤價;
RSI$1:=SMA(MAX(CLOSE-LC,0),3,1)/SMA(ABS(CLOSE-LC),3,1)*100;
RSI$2:=SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100;
RSI$3:=SMA(MAX(CLOSE-LC,0),8,1)/SMA(ABS(CLOSE-LC),8,1)*100;
相對強弱:=0.5*RSI$1+0.31*RSI$2+0.19*RSI$3;
wave$1:=SMA(100*(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8)),3,1);
wave$2:=SMA(100*(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8)),5,1);
wave$3:=SMA(100*(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8)),8,1);
短線波段:=0.5*wave$1+0.31*wave$2+0.19*wave$3;
機會區(qū):20,POINTDOT,colorred;
風(fēng)險區(qū):80,POINTDOT,colorgreen;
風(fēng)險系數(shù):0.5*相對強弱+0.5*短線波段,coloryellow;
//買入條件;
CD1:=IF(風(fēng)險系數(shù)<20 AND CLOSE>OPEN AND r>0,1,0);//波段小于20,股價翻紅;
CD2:=IF(風(fēng)險系數(shù)<20 AND LOW>=REF(LOW,1) AND CLOSE>LOW AND r>0,1,0);//波段小于20,股價未翻紅,但未創(chuàng)新低;
CD3:=IF(REF(風(fēng)險系數(shù),1)<20 AND 風(fēng)險系數(shù)>REF(風(fēng)險系數(shù),1),1,0);//前一日波段小于20,今日轉(zhuǎn)向;
SIGNALBUY=(CD1=1 OR CD2=1 OR CD3=1);
X=(SIGNALBUY AND COUNT(SIGNALBUY,3)=1);
DRAWICON(X,機會區(qū),"buy");
從源碼中分析,在進行資金抄底的過程中,需要注意短線波段的操作變化,以及出現(xiàn)的風(fēng)險系數(shù)的大小,投資者要及時的做好買賣操作準(zhǔn)備,特別是在波段小于20,股價翻紅的時候,
★★因資而作股票指標(biāo)公式
依據(jù)資金的進出場以及均線中的壓力與支撐的變化進行買賣點的操作分析,做好抄底的準(zhǔn)備,以下是具體的操作源碼:
MA5:MA(C,5),COLORF00FF0;
MA10:MA(C,10),COLORYELLOW;
MA21:MA(C,21),COLORE66878;
MA30:MA(C,30),COLORWHITE;
MA120:MA(C,120),COLOR399C7F,POINTDOT;
MA240:MA(C,240),COLOR000999,POINTDOT;
X1:=(C+L+H)/3;
X2:=EMA(X1,6);
X3:=EMA(X2,5);
DRAWICON(CROSS(X2,X3),L*0.98,7);
DRAWICON(CROSS(X3,X2),H*1.02,8);
STICKLINE(X2>=X3,LOW,HIGH,0.1,1),COLORRED;
STICKLINE(X2>=X3,CLOSE,OPEN,2,2),COLORRED;
STICKLINE(X2>=X3,CLOSE,OPEN,2,8),COLORBROWN;
STICKLINE(X2
STICKLINE(X2
STICKLINE(CROSS(X2,X3),OPEN,CLOSE,2,1),COLORYELLOW;
STICKLINE(CROSS(X3,X2),OPEN,CLOSE,2,1),COLORBLUE;
ZLCM:=EMA(WINNER(CLOSE)*70,3);
SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);
ZZLKP:=ZLCM/(ZLCM+SHCM)*100;
ZZLJJ:=EMA(ZZLKP,89);
ZJLRQD:=ZZLKP-ZZLJJ;
AA:=EMA(ZJLRQD,3);
BB:=EMA(AA,5);
CC:=AA-BB;
STICKLINE(CC>REF(CC,1),CC,0,8,6), COLORRED;
資金進場:IF(CROSS(AA,BB),5,0),STICK,LINETHICK3,COLORFF00FF;
資金出場:IF(CROSS(BB,AA),-5,0),STICK,LINETHICK3,COLOR00FF00;
DRAWICON(資金進場>0,6,1);
DRAWICON(資金出場<0,-6,2);
A:=AMOUNT/V/100;VARA:=EMA((((A-EMA(A,13))/EMA(A,13))*(0-100)),5);
Y2:=(C+0.618*REF(C,1)+0.382*REF(C,2)+0.236*REF(C,3)+0.146*REF(C,4))/2.382;
壓力:MA(REF(HHV(C,30),1),2);支撐:MA(REF(LLV(C,30),1),2);
DA:=(EMA(C,1)+EMA(C,2)+EMA(C,3)+EMA(C,4))/4;
DB:=(EMA(C,10)+EMA(C,20)+EMA(C,40)+EMA(C,80))/4;
DRAWTEXT(60*(40*(EMA((EMA(CLOSE,12)-EMA(CLOSE,26)),9)<0
AND
COUNT(COUNT(CROSS
((EMA(CLOSE,12)-EMA(CLOSE,26)),EMA((EMA(CLOSE,12)-EMA(CLOSE,26)),9)),BARSLAST
(EMA((EMA(CLOSE,12)-EMA(CLOSE,26)),9)>=0))=2,21)=1)
AND SLOPE(MA(C,5),2)>0) AND
MA(C,55)>REF(MA(C,55),1) AND
REF(MA(C,55),1)<=REF(MA(C,55),2),L*0.95,'買入'),COLOR0080FF;
JH:=SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100;
DRAWICON(60*(40*(EMA((EMA(CLOSE,12)-EMA(CLOSE,26)),9)<0
AND
COUNT(COUNT(CROSS
((EMA(CLOSE,12)-EMA(CLOSE,26)),EMA((EMA(CLOSE,12)-EMA(CLOSE,26)),9)),BARSLAST
(EMA((EMA(CLOSE,12)-EMA(CLOSE,26)),9)>=0))=2,21)=1)
AND SLOPE(MA(C,5),2)>0) AND
MA(C,55)>REF(MA(C,55),1) AND
REF(MA(C,55),1)<=REF(MA(C,55),2),LOW,5);
該指標(biāo)中主要運用的均線有5日、10日、21日、30日、120日以及240日,從短期均線,中期均線以及長期均線都運用其中,分析個股不同階段的走勢形態(tài),具體的如圖國農(nóng)科技中的走勢變化,以及買賣點位置。
以上就是本文通過兩則實例講解的關(guān)于資金抄底與因資而作的指標(biāo)公式應(yīng)用技巧,如果您還想要了解更多的股市操作技巧,請點擊股票術(shù)語從基本的股票知識進行研究學(xué)習(xí),提升股市操作的經(jīng)驗。
服務(wù)中心:鄭州市金水區(qū)農(nóng)業(yè)路經(jīng)三路
郵編:450002 網(wǎng)址:datuav.com
銷售熱線:0371-65350319
技術(shù)支持:13333833889