---------------------綜合使用公式源碼---------------------------------
LC :=REF(CLOSE,1);
RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
RSI3:=SMA(MAX(CLOSE-LC,0),18,1)/SMA(ABS(CLOSE-LC),18,1)*100;
MMS:=MA(3*RSI2-2*SMA(MAX(CLOSE-LC,0),16,1)/SMA(ABS(CLOSE-LC),16,1)*100,3);
MMM:=EMA(MMS,5);
AAA:=MMS-MMM;
STICKLINE(AAA>=0,0,AAA*5,2.3,0),colorred;
STICKLINE(AAA<0,0,AAA*5,2.3,0),colorgreen;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)),colorred,LINETHICK3;
MA(CCI,5),LINETHICK2;
CYC13:=0.01*EXPMA(AMOUNT,13)/EXPMA(VOL,13);
CYS:=(CLOSE-CYC13)/CYC13*2000;
MA(CYS,3);
0;
-100;
100;
F1:=ZIG(C,8);
F3:=IF(F1>=REF(F1,1),0,100);
VARP1:=(CLOSE+LOW+HIGH)/3;
VARP2:=SUM(((VARP1-REF(LOW,1))-(HIGH-VARP1))*VOL/100000/(HIGH-LOW),0);
VARP3:=EMA(VARP2,1);
JCS:=VARP3;
JCM:=MA(VARP3,10);
QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
XVL:=(IF(CLOSE>OPEN,QJJ*(HIGH-LOW),IF(CLOSE
HSL:=(XVL/20)/1.15;
攻擊流量:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));
LLJX:=EMA(攻擊流量,3);
資金流量:=LLJX,colorred,LINETHICK2;
XXX:=F3=0 AND(CROSS(資金流量,0) AND CROSS(JCS,JCM));
YYY:=(F3=0 AND CROSS(REF(資金流量,1),0) AND CROSS(JCS,JCM));
ZZZ:=(F3=0 AND CROSS(資金流量,0) AND CROSS(REF(JCS,1),REF(JCM,1)));
DRAWTEXT(XXX OR YYY OR ZZZ,-120,'買入'),coloryellow;
MA05:=MA(C,3),LINETHICK3,COLOR00CCFF;
MA10:=MA(C,10);
MA20:=MA(C,20);
MA30:=MA(C,30);
五日乖離率:=(C-MA05)/MA05*100;
BB05:=ATAN((MA05/REF(MA05,1)-1)*100)*180/3.1416;
速度5:=SMA(EMA((MA05-REF(MA05,1))/REF(MA05,1),3)*100,3,1);
加速度5:=EMA((速度5-REF(速度5,1)),3),NODRAW;
BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;
三拾日乖離率:=(C-MA30)/MA30*100,NODRAW;
VAR111:=(MA20-MA30)>REF((MA20-MA30),1) AND MA20>REF(MA20,1) AND MA30>REF(MA30,1);
BB30:=ATAN((MA30/REF(MA30,1)-1)*100)*180/3.1416;
強(qiáng)勢(shì)狙擊:=FILTER(BB30>30 AND BB10>45 AND CROSS(BB05,60),10);
加倉(cāng):=FILTER(COUNT(CROSS(BB05,30),5)>=1 AND MA05>REF(MA05,1) AND 三拾日乖離率>REF(三拾日乖離率,1) AND MA10>REF(MA10,1)
AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1) ,10) ;
清倉(cāng):=FILTER(COUNT(CROSS(30,BB05),5)>=1 AND (C>MA30 OR O>MA30) AND MA05
DRAWTEXT(加倉(cāng) ,-20,'加碼'),colorred;
JC:=CROSS(0,五日乖離率) AND 三拾日乖離率REF(MA10,1) ;
減倉(cāng):=FILTER(JC,10);
MR:=COUNT(CROSS(五日乖離率,0),3)>=1 AND 三拾日乖離率>REF(三拾日乖離率,1) AND MA05>REF(MA05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)
買入:=FILTER(MR,10);
DRAWTEXT(減倉(cāng),100,'風(fēng)險(xiǎn)'),colorcyan;
從上面的源碼中可以看到,里面涉及到建倉(cāng)、加倉(cāng)、減倉(cāng)、乖離率、買入賣出、資金流量等不同的指標(biāo)使用方法,將其導(dǎo)入到軟件中的圖形解析如下:
--------------------------cci背離公式------------------------------------------
其實(shí),cci的背離公式是比較簡(jiǎn)單的,而且這樣的股價(jià)走勢(shì)形成與指標(biāo)的背離是具有一定的分析價(jià)值的,其具體的源碼如下:
DRAWTEXT(REF(COUNT(MA(C,5)
導(dǎo)入軟件之后的圖形顯示如下:
-----------------------------------cci黃金坑---------------------------------------
我們知道在股市的K線或者是量能的變化中有黃金坑的走勢(shì)形態(tài),但是在指標(biāo)的走勢(shì)中也是存在的,而且其走勢(shì)是可以用公式源碼表示的。
RR8:=MA(CLOSE,27);
RR9:=(CLOSE-RR8)/RR8*100;
RRA:=MA(RR9,2);
RRB:=BARSLAST(CROSS(-10,RRA)=1);
RRD:=RRA<-10 AND RRB>3;
STICKLINE(IF(RRD,-120,0),-120,0,8,0),colorliblue;
【黃金坑】:IF(RRD,-120,0),coloryellow,LINETHICK2;
TYP := (HIGH + LOW + CLOSE)/3;
CCI14:(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)),colormagenta,LINETHICK2;
將源碼導(dǎo)入到軟件中,能夠獲得圖形走勢(shì)如下:
以上就是本文講解的關(guān)于cci順勢(shì)指標(biāo)使用的源碼公式,其中主要講解了綜合使用的公式以及黃金坑和背離形態(tài)的股票公式,如果您還想要了解更多的股市技術(shù)指標(biāo)公式解析,請(qǐng)關(guān)注贏家財(cái)富網(wǎng),我們會(huì)為您提供更加專業(yè)的源碼介紹!
本文來自贏家財(cái)富網(wǎng),轉(zhuǎn)載請(qǐng)注明出處,datuav.com!
服務(wù)中心:鄭州市金水區(qū)農(nóng)業(yè)路經(jīng)三路
郵編:450002 網(wǎng)址:datuav.com
銷售熱線:0371-65350319
技術(shù)支持:13333833889