大智慧多空趨勢指標公式
- 指標類別: 大智慧指標公式
- 授權方式: 免費版
- 指標評級: ★★★★★
- 指標分類: 量能
- 畫線方法: 副圖
- 日期:2019-08-24 來源:互聯(lián)網(wǎng)
大智慧多空趨勢指標公式:
AVPRICE:=(2*OPEN+2*CLOSE+2*HIGH+2*LOW)/8;
INDEXAVP:=(2*INDEXH+2*INDEXL+2*INDEXO+2*INDEXC)/8;
F:=(AVPRICE - REF(AVPRICE,1))/REF(AVPRICE,1);
F1:=(INDEXAVP - REF(INDEXAVP,1))/REF(INDEXAVP,1);
類比參數(shù)3:=(SUM(F,10) + SUM(F1,10))/10*1000;
類比大盤參數(shù):=IF(類比參數(shù)3 > 0,類比參數(shù)3,0);
類比參數(shù)2:=IF(類比參數(shù)3 < 0,-類比參數(shù)3,0);
STICKLINE(類比參數(shù)2 AND (150 - 類比參數(shù)2)>0,150,150 - 類比參數(shù)2,8,0),ColorFFFF00;
STICKLINE(類比大盤參數(shù) AND (150 - 類比大盤參數(shù))>0,150,150 - 類比大盤參數(shù),8,0),ColorFF00FF;
{量能}
AA:=AVPRICE;
BB:=(VOL*(AA*2 - HIGH - LOW)/(HIGH - LOW));
CC:=IF((HIGH = LOW) and (AA < REF(AA,1)),(-1)*VOL,VOL);
A:=IF((HIGH = LOW),CC,BB);
B:=SUM(A,11);
BBD:=((B/(CAPITAL*11))*10000);
BB1:=IF((BBD < 150) and (BBD > (-150)),BBD,150);
買方能量指標:=IF((BB1 > 0),BB1,0);
STICKLINE((BB1 > 0),0,買方能量指標,6,0),color00FFFF;
STICKLINE((BB1 < 0),0,(-BB1),6,0),Color00CC00;
主動買量:IF((BB1 > 0),BB1,0),PRECIS1,color00FFFF,LINETHICK0;
主動賣量:IF((BB1<0),BB1,0),PRECIS1,Color00CC00,LINETHICK0;
{界面}
A16:=(SUM((AVPRICE)*(VOL),16))/(SUM(VOL,16));
A11:=(SUM((AVPRICE)*(VOL),11))/(SUM(VOL,11));
A6:=(SUM((AVPRICE)*(VOL),6))/(SUM(VOL,6));
A7:=(SUM((AVPRICE)*(VOL),7) - (AVPRICE)*(VOL))/(SUM(VOL,7) - VOL);
A0:=((A11 - A16)/(AVPRICE))*(1000);
A00:=IF((A0 > 50),50,IF((A0 < (-50)),(-50),A0));
A1:=((A6 - A11)/(AVPRICE))*(1000);
AA11:=IF((A1 > 50),50,IF((A1 < (-50)),(-50),A1));
A2:=((((A6 - A7)/(A7))*(5))/(4))*(1000);
A22:=IF((A2 > 50),50,IF((A2 < (-50)),(-50),A2));
刻度線3:=(A00 + AA11 + A22);
趨勢線:=IF((刻度線3 > 0),刻度線3,0);
蘭刻度線:=IF((刻度線3 < 0),刻度線3,0);
做多趨勢:趨勢線,LAYER1,PRECIS1,Color0000ff;
做空趨勢:(-蘭刻度線),LAYER1,PRECIS1,coloRFF0000;
STICKLINE(趨勢線,0,趨勢線,3,0),coloR0000FF;
STICKLINE(蘭刻度線,0,(-蘭刻度線),3,0),ColorFF0000;
強弱界:50,DOTLINE,PRECIS1,Colorffffff;
觸頂線:145,PRECIS1,LAYER1,COLOR0000FF,LINETHICK2;
大盤頂線:90,PRECIS1,COLOR00FFFF,LINETHICK2;
啟動線:20,DOTLINE,PRECIS1,COLORCCFF00;
STICKLINE(趨勢線>觸頂線,130,150,8,0),coloRFF0000;
DRAWICON(趨勢線>觸頂線,150,2),LAYER0;
STICKLINE(-蘭刻度線>觸頂線,130,150,8,0),Color0000FF;
DRAWICON(-蘭刻度線>觸頂線,150,1),LAYER0;
STICKLINE(趨勢線>大盤頂線 AND HHV(趨勢線,3)<102,0,-8,14,0),COLORFFFF00;
STICKLINE(-蘭刻度線>大盤頂線 AND HHV(-蘭刻度線,3)<102,0,-8,14,0),COLORFF00FF;
大智慧多空趨勢指標公式實例圖解:
大智慧多空趨勢指標公式