通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
量价齐升指标公式源码
顶背2:MA(C,2)REF((MA(C,2)),1) AND MA(V,2)REF((MA(V,2)),1);
底背2:MA(C,2)REF(MA(C,2),1) AND MA(V,2)REF(MA(V,2),1);
DRAWICON(顶背2,1,16);
DRAWICON(底背2,1,30);
顶背3:MA(C,3)REF((MA(C,3)),1) AND MA(V,3)REF((MA(V,3)),1);
底背3:MA(C,3)REF(MA(C,3),1) AND MA(V,3)REF(MA(V,3),1);
DRAWICON(顶背3,1.5,16);
DRAWICON(底背3,1.5,30);
顶背4:MA(C,4)REF((MA(C,4)),1) AND MA(V,4)REF((MA(V,4)),1);
底背4:MA(C,4)REF(MA(C,4),1) AND MA(V,4)REF(MA(V,4),1);
DRAWICON(顶背4,2,16);
DRAWICON(底背4,2,30);
顶背5:MA(C,5)REF((MA(C,5)),1) AND MA(V,5)REF((MA(V,5)),1);
底背5:MA(C,5)REF(MA(C,5),1) AND MA(V,5)REF(MA(V,5),1);
DRAWICON(顶背5,2.5,16);
DRAWICON(底背5,2.5,30);
多头:STICKLINE((CLOSE MA(CLOSE,30)),0,VOL,3,1),COLORRED;
空头:STICKLINE((CLOSE MA(CLOSE,30)),0,VOL,3,1),COLORGREEN;
AL1:=MA(VOL,5);
AL2:=MA(VOL,18);
AL3:=MA(VOL,110);
{20日量布林线}
MID : MA(VOL,20),COLORWHITE;
饱和:MID + 2*STDP(V,20),COLORYELLOW;
LLW:=MID - 2*STDP(V,20);
突变:V+REF(V,1)=(REF(V,2)+REF(V,3)+REF(V,4)+REF(V,5)+REF(V,6))/5*3 AND V2*REF(V,1) AND CO AND CMA(C,21),COLORFF00FF;
STICKLINE(量能突变,2*V/3,V,3,0),COLORFF00FF;
量价配合:REF(V,1)MAX(MA(V,5),MAX(MA(V,10),MA(V,20))) AND VMAX(MA(V,5),MAX(MA(V,10),MA(V,20))) AND V2*REF(V,1) AND CROSS(C,MA(C,21));
STICKLINE(量价配合,V/3,2*V/3,3,0),COLORYELLOW;
STICKLINE(V=LLV(V,15),0,V,3,0),COLORWHITE;
量价:C=HHV(C,15) AND V=HHV(V,15),COLOR00FFFF;
STICKLINE(量价突破,0,V/3,3,0),COLOR00FFFF;
MV1:=EMA(V,9);
MV2:=EMA(V,34);
{FILLRGN(MV1,MV2,MV1MV2,RGB(255,255,0),MV1MV2,RGB(0,255,255));};
N1:=16;
N2:=26;
N3:=9;
SAT:=(AMOUNT/CLOSE)/HHV((AMOUNT/CLOSE),26);
能量:IF(SAT1,1,SAT)*100,COLORYELLOW,NODRAW;
换手:VOL/CAPITAL*100,COLORWHITE,NODRAW;
①量:=EMA(换手,N1)-EMA(换手,N2);
②量:=EMA(①量,N3);
①价:=EMA(CLOSE,N1)-EMA(CLOSE,N2);
②价:=EMA(①价,N3);
柱能:=(①价-②价)*2;
坑:IF(②价0,②价,0),COLORRED,NODRAW;
STICKLINE(CROSS(①量,②量),HHV(①量,60),0,0,0),COLORMAGENTA;
STICKLINE((①价-②价)*20,(①价-②价)*2,0,2.5,0),COLORRED;
STICKLINE((①价-②价)*20,(①价-②价)*2,0,2.5,0),COLORFF8A15;
STICKLINE((①价-②价)*2REF((①价-②价)*2,1) AND (①价-②价)*20,(①价-②价)*2,0,2.5,0),COLOR6F51E3;
STICKLINE((①价-②价)*2REF((①价-②价)*2,1) AND (①价-②价)*20,(①价-②价)*2,0,2.5,0),COLORCECE00;
DRAWTEXT(CROSS(②价,0),REVERSE(柱能), #39;☆ #39;),COLORYELLOW;
STICKLINE(CROSS(②价,0),0,REVERSE(柱能),0,0),COLORFFFF68;
DRAWTEXT(CROSS(0,②价),REVERSE(柱能), #39;☆ #39;),COLORGREEN;
STICKLINE(CROSS(0,②价),0,REVERSE(柱能),0,0),COLORWHITE;
STICKLINE(①量②量,①量,②量,1,1),COLORYELLOW;
STICKLINE(①量=②量,①量,②量,0.5,0),COLORWHITE;
STICKLINE(①价②价,①价,②价,1,0),COLORBLUE;
STICKLINE(①价②价 AND ①价REF(①价,1),①价,②价,1,0),COLORMAGENTA;
STICKLINE(①价=②价,①价,②价,1,0),COLORBROWN;
A:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,240,DRAWNULL)))));
B:=FLOOR((FROMOPEN/A));
万手:VOL/10000,LINETHICK0,NODRAW;
AA:=IF(CURRBARSCOUNT=1,SUM(VOL,B)*A/FROMOPEN,DRAWNULL);
预测:STICKLINE(AA,0,AA,4,0),COLORYELLOW;
{STICKLINE(CURRBARSCOUNT=1,AA,0,2.5,0),COLORYELLOW};
BB:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主动买:=IF(CLOSEOPEN,BB*(HIGH-LOW),IF(CLOSEOPEN,
BB*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
主买:主动买/10000,COLORRED,NODRAW;
主动卖:=IF(CLOSEOPEN,0-BB*((HIGH-CLOSE)+(OPEN-LOW)),
IF(CLOSEOPEN,0-BB*(HIGH-LOW),0-VOL/2));
主卖:-主动卖/10000,COLORGREEN,NODRAW;
差额:(主动买+主动卖)/10000,NODRAW;
STICKLINE(CLOSEREF(CLOSE,1),0,VOL,2.5,0),COLORLICYAN;
STICKLINE(CLOSEREF(CLOSE,1),0,VOL,2.5,0),COLORLIGREEN;
STICKLINE(CLOSE=REF(CLOSE,1),0,VOL,2.5,0),COLORWHITE;
{如果您还想用以前的假阴阳线,就把上面三行代码用大括号()括起来!}
{并把下面四行代码的大括号()去掉!}
STICKLINE(C-1,0,VOL,3,1),COLORRED;
STICKLINE(CO,0,VOL,3,1),COLORFFFF00;
STICKLINE(C=OANDCREF(C,1),0,VOL,2,1),COLORFFFF00;
STICKLINE(C=OANDCREF(C,1),0,VOL,2,1),COLORRED;
STICKLINE(主动买0,0,主动买,1,0),COLORRED;
STICKLINE(主动卖0,VOL,主动买,1,0),COLORBLUE;
STICKLINE(1,主动买-VOL,0,2,0),COLOR0FF000;
持币:IF(SAR(10,2,20)=H,SAR(10,2,20),DRAWNULL),CIRCLEDOT,COLORGREEN;
持股:IF(SAR(10,2,20)=L,SAR(10,2,20),DRAWNULL),CIRCLEDOT,COLORMAGENTA;
五日:MA(V,5)COLORWHITE;
十日:MA(V,10)COLORYELLOW;
买盘:MA(主动买,5),LINETHICK2,COLOR00FFFF;
卖盘:MA(VOL-主动买,5),LINETHICK2,COLORFF00FF;
VAR22:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
获利盘:WINNER(CLOSE)*100;
VAR33:=SMA(VAR22,3,1);
VAR44:=SMA(VAR33,9,1);
VAR55:=3*VAR33-2*VAR44;
VAR66:=VOL;
:VOL/MA(VOL,5);
涨跌:(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
角度:(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;
换手:VOL/CAPITAL*100;
VAR77:=SUM(换手,30);
VAR88:=LLV(INDEXL,5);
VAR99:=HHV(INDEXH,5);
VARAA:=EMA((INDEXC-VAR88)/(VAR99-VAR88)*100,4);
VARBB:=MA(EMA(0.667*REF(VARAA,1)+0.333*VARAA,2),9);
VARCC:=MA(VARBB,30);
VARDD:=EMA(获利盘,4);
本盘亿股:CAPITAL/1000000,;
V5:MA(VOL,5)*2;
VARE:=MA(V5,3);
V34:MA(VOL,34)*2;
VARF:=(涨跌VARDDAND角度-30AND涨跌3);
CROSS(VARBB,VARCC)ANDVARCC29;
CROSS(VARCC,VARBB)ANDVARCC58;
STICKLINE(VOLANDVAR33VAR44,0,VOL,3,1),COLORRED;
STICKLINE(VOLANDVAR33=VAR44,0,VOL,3,1),COLORCYAN;
DRAWTEXT(CROSS(VARBB,VARCC)AND角度-18ANDVARCC29,VOL*1.2, #39;买 #39;),COLORYELLOW;
W:DRAWTEXT(CROSS(VARCC,VARBB)ANDVARCC58,VOL*1.2, #39;卖 #39;),COLORWHITE;
DRAWTEXT(CROSS(VARE,V5)AND角度22,V5, #39;---- #39;);
VAR2:=CLOSE-REF(CLOSE,1);
VAR3:=IF(CLOSE-REF(CLOSE,1)=0,VAR2,0);
VAR4:=REF(CLOSE,1)-CLOSE;
VAR5:=IF(CLOSE-REF(CLOSE,1)=0,VAR4,0);
VAR6:=SUM(VAR3,16)/SUM(VAR5,16);
VAR7:=100-100/(1+VAR6);
VAR8:=EMA(VAR7,16);
VAR9:=EMA(VAR8,8);
VARA:=EMA(VAR8,45);
MO:=(VAR8-VARA);
ML:=(VAR9-VARA);
VAR1A:=EMA(CLOSE,32);
VAR2A:=MA(OPEN,32);
:=(VAR1A-VAR2A);
STICKLINE(MOMLAND趋势0ANDMOREF(MO,3)AND趋势REF(趋势,3),VOL,0,3,0)COLORYELLOW;