首頁(yè) > 股票投資 > 股票技術(shù)指標(biāo)公式 > 正文

股票公式:資金抄底+因資而作指標(biāo)源碼

來(lái)源:【贏家江恩】責(zé)任編輯:fanxiaonan添加時(shí)間:2016-12-06 10:09:49
  投資者在進(jìn)行抄底之前,必須要保證資金倉(cāng)位的充足,以及本身盈利的操作機(jī)會(huì)與風(fēng)險(xiǎn)分析,那么為了幫助投資者掌握實(shí)戰(zhàn)操作技巧,贏家財(cái)富網(wǎng)總結(jié)了資金抄底+因資而作指標(biāo)的源碼公式,以及判斷操作機(jī)會(huì)的要點(diǎn)。
資金抄底股票公式

  ★資金抄底

  結(jié)合了日線周期以及相對(duì)強(qiáng)弱的大單凈量的操作分析,從中判斷資金抄底的機(jī)會(huì),風(fēng)險(xiǎn)以及盈利機(jī)會(huì),具體的源碼如下:

  IF(PERIODNAME<>"日線")

  {

  統(tǒng)計(jì):"該指標(biāo)只在日線周期下有效。";

  RETURN;

  }

  //大單凈量

  r:=((ZDMR[-1]+BDMR[-1])-(ZDMC[-1]+BDMC[-1]))/SHGZG*100;

  //相對(duì)強(qiáng)弱

  LC := REF(CLOSE,1);//前一日收盤價(jià);

  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;

  相對(duì)強(qiáng)弱:=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;

  機(jī)會(huì)區(qū):20,POINTDOT,colorred;

  風(fēng)險(xiǎn)區(qū):80,POINTDOT,colorgreen;

  風(fēng)險(xiǎn)系數(shù):0.5*相對(duì)強(qiáng)弱+0.5*短線波段,coloryellow;

  //買入條件;

  CD1:=IF(風(fēng)險(xiǎn)系數(shù)<20 AND CLOSE>OPEN AND r>0,1,0);//波段小于20,股價(jià)翻紅;

  CD2:=IF(風(fēng)險(xiǎn)系數(shù)<20 AND LOW>=REF(LOW,1) AND CLOSE>LOW AND r>0,1,0);//波段小于20,股價(jià)未翻紅,但未創(chuàng)新低;

  CD3:=IF(REF(風(fēng)險(xiǎn)系數(shù),1)<20 AND 風(fēng)險(xiǎn)系數(shù)>REF(風(fēng)險(xiǎn)系數(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,機(jī)會(huì)區(qū),"buy");

資金抄底

  從源碼中分析,在進(jìn)行資金抄底的過(guò)程中,需要注意短線波段的操作變化,以及出現(xiàn)的風(fēng)險(xiǎn)系數(shù)的大小,投資者要及時(shí)的做好買賣操作準(zhǔn)備,特別是在波段小于20,股價(jià)翻紅的時(shí)候,

  ★★因資而作股票指標(biāo)公式

  依據(jù)資金的進(jìn)出場(chǎng)以及均線中的壓力與支撐的變化進(jìn)行買賣點(diǎn)的操作分析,做好抄底的準(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

  STICKLINE(CC>REF(CC,1),CC,0,8,6), COLORRED;

  資金進(jìn)場(chǎng):IF(CROSS(AA,BB),5,0),STICK,LINETHICK3,COLORFF00FF;

  資金出場(chǎng):IF(CROSS(BB,AA),-5,0),STICK,LINETHICK3,COLOR00FF00;

  DRAWICON(資金進(jìn)場(chǎng)>0,6,1);

  DRAWICON(資金出場(chǎng)<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)中主要運(yùn)用的均線有5日、10日、21日、30日、120日以及240日,從短期均線,中期均線以及長(zhǎng)期均線都運(yùn)用其中,分析個(gè)股不同階段的走勢(shì)形態(tài),具體的如圖國(guó)農(nóng)科技中的走勢(shì)變化,以及買賣點(diǎn)位置。

因資而作股票指標(biāo)公式

  以上就是本文通過(guò)兩則實(shí)例講解的關(guān)于資金抄底與因資而作的指標(biāo)公式應(yīng)用技巧,如果您還想要了解更多的股市操作技巧,請(qǐng)點(diǎn)擊股票術(shù)語(yǔ)從基本的股票知識(shí)進(jìn)行研究學(xué)習(xí),提升股市操作的經(jīng)驗(yàn)。

鄭州亨瑞軟件開(kāi)發(fā)有限公司
版權(quán)所有

服務(wù)中心:鄭州市金水區(qū)農(nóng)業(yè)路經(jīng)三路
郵編:450002 網(wǎng)址:m.datuav.com

銷售熱線:0371-65350319
技術(shù)支持:13333833889

注冊(cè)下載;