成交量公式

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

成交量1
V AR2:=HIGH-LOW;
V AR3:=ABS(OPEN-CLOSE);
V AR4:=HIGH-IF(CLOSE>OPEN,CLOSE,OPEN);
V AR5:=IF(CLOSE>OPEN,OPEN,CLOSE)-LOW;
V AR6:=V AR3/VAR2*VOL;
V AR7:=V AR4/VAR2*VOL;
V AR8:=V AR5/VAR2*VOL;
V AR9:=IF(VOL/CAPITAL>0.001,1,EXP(ABS(LOG(VOL/CAPITAL*100))));
V ARA:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;
V ARB:=MA(CLOSE,5)>MA(CLOSE,10) AND MA(CLOSE,10)>MA(CLOSE,30) AND MA(CLOSE,30)>MA(CLOSE,60);
V ARC:=MA(CLOSE,5)<MA(CLOSE,10) AND MA(CLOSE,10)<MA(CLOSE,30);
多头成交: STICKLINE(CLOSE>MA(CLOSE,30),0,VOL,5,1), , COLORRED;
空头成交: STICKLINE(CLOSE<MA(CLOSE,30),0,VOL,5,1), , COLORGREEN;
向上攻击量: STICKLINE(V AR6>=V AR7 AND V AR6>=V AR8 AND CLOSE>OPEN,0,V AR6,4,0), , COLORRED;
向下攻击量: STICKLINE(V AR6>=V AR7 AND V AR6>=V AR8 AND CLOSE<OPEN,0,V AR6,4,0), , COLORGREEN;
上探量: STICKLINE(V AR7>V AR6 AND V AR7>V AR8,0,V AR7,4,0), , COLORCCCC66;
下探量: STICKLINE(V AR8>V AR6 AND V AR8>V AR7,0,V AR8,4,0), , COLORFF6633;
相对地量: STICKLINE(V AR9>2 AND VOL<MA(VOL,5)/2,0,VOL,4,0), , COLORYELLOW;
地量: DRAWTEXT(V AR9>2 AND VOL<MA(VOL,5)/2,VOL,'地量'), , COLORYELLOW;
放量: STICKLINE(VOL>MA(VOL,5)*2.5,0,VOL,4,0), , COLORWHITE;
逢高出货: DRAWTEXT(V AR7>V AR6 AND V ARA>2 AND V AR7>V AR8 AND CLOSE>MA(CLOSE,5) AND CLOSE>MA(CLOSE,30) AND HIGH>MA(CLOSE,60) AND VOL>MA(VOL,5) AND V AR7>=MA(VOL,5),VOL,'▼'), , COLORGREEN;
逢低跟进: DRAWTEXT(V AR8>V AR6 AND V AR8>V AR7 AND V ARA<-2 AND CLOSE<MA(CLOSE,30) AND V AR8<MA(VOL,5)/2 AND MA(VOL,5)<MA(VOL,10),VOL+20,'逢低跟进'), , COLORWHITE;
强势参与: DRAWTEXT(V AR6>MA(VOL,5)*2 AND V AR6>=V AR7 AND V AR6>=V AR8 AND CLOSE>OPEN OR VOL>MA(VOL,5)*3 AND V ARB,VOL,'▼'), , COLORCC99CC;
空头释放: DRAWTEXT(V AR6>=V AR7 AND V AR6>=V AR8 AND CLOSE<OPEN AND V AR6/VOL>0.7 AND V ARC AND V AR6>MA(VOL,5),V AR6*2,'空头释放'), , COLORGREEN; {MA5:MA(VOL,5), , COLORRED;
MA10: MA(VOL,10), , COLORGREEN;
MA20:MA(VOL,20), , COLORYELLOW;}
MA5:MA(VOL,5),COLORYELLOW;
MA13:MA(VOL,13),COLORWHITE;
DRAWTEXT(CROSS(MA5,MA13),CROSS(MA5,MA13),'注意'),COLORWHITE;
21.觅庄建仓:
Var2:=REF(LOW,1);
Var3:=SMA(ABS(LOW-Var2),13,1)/SMA(MAX(LOW-Var2,0),13,1)*100;
Var4:=EMA(IF(CLOSE*1.2,Var3*13,Var3/13),13);
Var5:=LLV(LOW,34);
Var6:=HHV(Var4,34);
Var7:=IF(LLV(LOW,56),1,0);
Var8:=EMA(IF(LOW<=Var5,(Var4+Var6*2)/2,0),3)/618*Var7;
Var9:=EMA(CLOSE,5);
Var10:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*(-10);
STICKLINE(Var9>REF(Var9,1),0,Var9*0.25,4,0),color10E410;
减仓:IF(Var9>REF(Var9,1),Var9*0.25,0),color10E410,STICK;
STICKLINE(Var9<REF(Var9,1),0,Var9*0.25,4,0),color1010FF;
增仓:IF(Var9<REF(Var9,1),Var9*0.25,0),color1010FF,STICK;
STICKLINE(Var8>REF(Var8,1),0,Var8,4,0),color10FFFF;
主力进场:IF(Var8>REF(Var8,1),Var8,0),color10FFFF,STICK;
STICKLINE(Var8<REF(Var8,1),0,Var8*1.5,4,0),colorFFF810;
洗缓:IF(Var8<REF(Var8,1),Var8*1.5,0),colorFFF810,STICK;
增减力度:Var10*0.2,colorFF7676;
XL1:=MA(LOW,2)*0.96;
XL2:=MA(LOW,26)*0.85;
XL3:=REF(XL1,1)<XL2 AND REF(XL1,1)<XL1 AND REF(XL1,1)<REF(XL1,2); STICKLINE(XL3,0,Var8*3,4,0),Color006EFF;
↑买↑:XL3,Color006EFF,STICK;
DRAWTEXT(XL3,Var8*3.5,'买'),Color006EFF;
DRAWICON(XL3,15,1),COLORRED;
===================================================================== ====================================
2.主力成交量
VAR2:=HIGH-LOW;
VAR3:=ABS(OPEN-CLOSE);
VAR4:=HIGH-IF(CLOSE>OPEN,CLOSE,OPEN);
VAR5:=IF(CLOSE>OPEN,OPEN,CLOSE)-LOW;
VAR6:=VAR3/VAR2*VOL;
VAR7:=VAR4/VAR2*VOL;
VAR8:=VAR5/VAR2*VOL;
VAR9:=IF(VOL/CAPITAL>0.001,1,EXP(ABS(LOG(VOL/CAPITAL*100)))); VARA:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;
VARB:=MA(CLOSE,5)>MA(CLOSE,10) AND MA(CLOSE,10)>MA(CLOSE,30) AND MA(C LOSE,30)>MA(CLOSE,60);
VARC:=MA(CLOSE,5)<MA(CLOSE,10) AND MA(CLOSE,10)<MA(CLOSE,30);
多头成交: STICKLINE(CLOSE>MA(CLOSE,30),0,VOL,8,1), , COLORRED;
空头成交: STICKLINE(CLOSE<MA(CLOSE,30),0,VOL,8,1), , COLORGREEN;
向上攻击量: STICKLINE(VAR6>=VAR7 AND VAR6>=VAR8 AND CLOSE>OPEN,0,VAR6, 8,0), , COLORRED;
向下攻击量: STICKLINE(VAR6>=VAR7 AND VAR6>=VAR8 AND CLOSE<OPEN,0,VAR6, 8,0), , COLORGREEN;
上探量: STICKLINE(VAR7>VAR6 AND VAR7>VAR8,0,VAR7,8,0), , COLORCCCC66;
下探量: STICKLINE(VAR8>VAR6 AND VAR8>VAR7,0,VAR8,8,0), , COLORFF6633;
相对地量: STICKLINE(VAR9>2 AND VOL<MA(VOL,5)/2,0,VOL,2.5,0), , COLORY ELLOW;
地量: DRAWTEXT(VAR9>2 AND VOL<MA(VOL,5)/2,VOL,'地量'), , COLORYELLOW;
放量: STICKLINE(VOL>MA(VOL,5)*2.5,0,VOL,2.5,0), , COLORWHITE;
逢高出货: DRAWTEXT(VAR7>VAR6 AND VARA>2 AND VAR7>VAR8 AND CLOSE>MA(CL OSE,5) AND CLOSE>MA(CLOSE,30) AND HIGH>MA(CLOSE,60) AND VOL>MA(VOL,5) AND VAR7>=MA(VOL,5),VOL,'逢高出货'), , COLORGREEN;
逢低跟进: DRAWTEXT(VAR8>VAR6 AND VAR8>VAR7 AND VARA<-2 AND CLOSE<MA(C LOSE,30) AND VAR8<MA(VOL,5)/2 AND MA(VOL,5)<MA(VOL,10),VOL,'逢低跟进'), , COLORyellow;
强势参与: DRAWTEXT(VAR6>MA(VOL,5)*2 AND VAR6>=VAR7 AND VAR6>=VAR8 AND CLOSE>OPEN OR VOL>MA(VOL,5)*3 AND VARB,VOL,'强势参与'), , COLORCC99C C;
空头释放: DRAWTEXT(VAR6>=VAR7 AND VAR6>=VAR8 AND CLOSE<OPEN AND VAR6/ VOL>0.7 AND VARC AND VAR6>MA(VOL,5),VAR6*2,'空头释放'), , COLORGREEN;
MA5:= MA(VOL,5), , COLORRED;
MA10:= MA(VOL,10), , COLORGREEN;
MA20:= MA(VOL,20), , COLORYELLOW;
===================================================================== ====================================
3.量能饱和度
SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));
饱和度:IF(SAT>1,1,SAT)*100,Color9368FF,POINTDOT;
起点量能≤5:0,COLORRED;
STICKLINE(饱和度<=5 ,5,饱和度+20,4,0),COLORRED;
温和量5~50:0,COLOR5290FF;
STICKLINE((饱和度>5 AND 饱和度< 50) ,5,饱和度+8,4,0),COLOR5290FF;
放量50~97:0,COLORFFCC00;
STICKLINE((饱和度>50 AND 饱和度< 97) ,5,饱和度,4,0),COLORFFCC00;
放巨量≥97:0,COLORGREEN;
STICKLINE(饱和度>=97 ,5,饱和度,4,0),COLORGREEN;
===================================================================== ====================================
4.庄影难逃
{n:1.100.8 }
总成交量:VOL,CIRCLEDOT;
AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
实际买盘:IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(C LOSE-LOW)),VOL/2)),POINTDOT,COLORRED, LINETHICK1;
挂单买盘:MA(实际买盘,3),COLORFF7FFF;
实际卖盘:IF(CLOSE>OPEN,AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,AA* (HIGH-LOW),VOL/2)),COLORGREEN, LINETHICK1;
挂单卖盘:MA(实际卖盘,3),COLOR00FFFF;
换手率%:VOL/CAPITAL*100,POINTDOT,COLORYELLOW;
STICKLINE(实际买盘>0,0,VOL*N,6,0),COLOR00E400;
STICKLINE(实际买盘>0,0,实际买盘*N,6,0),COLORRED;
STICKLINE(实际卖盘<0,0,实际卖盘,4,0),COLORGREEN;
===================================================================== =====通达信135均线公式
EMA13:EMA(C,13),COLORYELLOW,LINETHICK2;
EMA34:EMA(C,34),COLORWHITE;
EMA55:EMA(C,55),COLORFF00FF;
EMA120:EMA(C,120),COLORFFCC66;
AR1:=EMA55>EMA34 AND EMA34>EMA13;
AR2:=BARSLAST((C-EMA13)/EMA13*100<-6);
AR3:=EMA13>=REF(EMA13,2);
AR4:=COUNT(CROSS(C,EMA13),AR2)=1;
AR5:=AR1 AND AR2 AND AR3 AND AR4;
AR6:=AR5 AND FILTER(AR5,10);
DRAWTEXT(AR6,L-0.09,'红杏出墙'),COLORYELLOW;
{STICKLINE(AR6,H,L,0.5,1),COLORYELLOW;
STICKLINE(AR6,O,C,6,1),LINETHICK2,COLORYELLOW;}
BR1:=COUNT(BETWEEN((C-REF(C,1))/REF(C,1)*100,0,5) ,5)=5;
BR2:=ABS((EMA13-EMA34)+(EMA34-EMA55))/C<0.2;
BR3:=C>EMA55 AND (REF(C,1)<REF(EMA55,1) OR REF(C,2)<REF(EMA55,2) OR REF(C,3)<REF(EMA55,3) OR REF(C,4)<REF(EMA55,4) OR
REF(C,5)<REF(EMA55,5));
BR4:=BR1 AND BR2 AND BR3;
DRAWTEXT(BR4 AND FILTER(BR4,10),L-0.09,'蚂蚁上树'),COLOR00C5FF; {STICKLINE(BR4 AND FILTER(BR4,10),H,L,0.5,1),COLOR00C5FF;
STICKLINE(BR4 AND FILTER(BR4,10),O,C,6,1),LINETHICK2,COLOR00C5FF;} CR1:=(C-REF(C,1))/REF(C,1)*100>0.5;
CR2:=V>MA(V,5)*0.6;
CR3:=COUNT(CROSS(EMA13,EMA55),3)=1;
CR4:=ABS(EMA34-EMA55)/EMA55<0.03;
CR5:=EMA55<=EMA120 AND EMA55>=REF(EMA55,1);
CR6:=FILTER(CR1 AND CR2 AND CR3 AND CR4 AND CR5,2);
{STICKLINE(CR6,H,L,0.5,1),COLORF00FF0;
STICKLINE(CR6,O,C,6,1),LINETHICK2,COLORF00FF0;}
DRAWTEXT(CR6,L-0.09,'红衣侠女'),COLORF00FF0;
DR1:=EMA13>EMA34 AND EMA34<EMA55;
DR2:=BARSLAST(CROSS(C,EMA55) );
DR3:=H=HHV(H,DR2);
DR4:=BARSLAST(DR3);
DR5:=COUNT(O>C AND C<REF(C,1) AND C>EMA55 AND BETWEEN((C-EMA55)/EMA55,0,0.02),DR4)=1;
DR6:=C>REF(C,1) ;
DR7:= DR1 AND DR5 AND DR6 ;
DR8:=DR7 AND FILTER(DR7 ,10);
DRAWTEXT(DR8,L-0.09,'黑客点击'),COLORD6BA63;
{STICKLINE(DR8,H,L,0.5,1),COLORD6BA63;
STICKLINE(DR8,O,C,6,1),LINETHICK2,COLORD6BA63;}
ER:=BARSLAST(REF(CROSS(EMA55,EMA34),1)) AND CROSS(EMA34,EMA55); DRAWTEXT(ER,L-0.09,'均线互换'),COLOR0099FF;
{STICKLINE(ER,H,L,0.5,1),COLOR0099FF;
STICKLINE(ER,O,C,6,1),LINETHICK2,COLOR0099FF;}
FR:=BARSLAST(REF(CROSS(EMA34,EMA13),1)) AND CROSS(EMA13,EMA34); DRAWTEXT(FR,L-0.09,'梅开二度'),COLORWHITE;
{STICKLINE(FR,H,L,0.5,1),COLORWHITE;
STICKLINE(FR,O,C,6,1),LINETHICK2,COLORWHITE;}
GR1:=BARSLAST(BETWEEN("BIAS.BIAS2"(6,13,24),0,5) );
GR2:=EMA13>EMA34 AND EMA34>EMA55 AND EMA13>REF(EMA13,1);
GR3:=COUNT("BIAS.BIAS2"(6,13,24)>10 AND H=HHV(H,GR1),GR1);
GR4:=H=HHV(H,GR1);
GR5:="MACD.MACD"(12,26,9)<REF("MACD.MACD"(12,26,9),1);
GR6:=GR2 AND GR3 AND GR4;
GR7:=GR2 AND GR3 AND GR4 AND GR5;
DRAWTEXT(GR6 AND GR7,H+0.13,'见好就收!'),COLOR00FF00;
STICKLINE(GR6 AND GR7,H,H+0.09,4,0),COLOR00FF00;
HR2:=EMA13>=REF(EMA13,3) AND EMA34>=REF(EMA34,1) AND
EMA55>=REF(EMA55,1) AND CROSS(C,EMA13) AND CROSS(C,EMA34) AND CROSS(C,EMA55);
DRAWTEXT(HR2 AND FILTER(HR2,10),L-0.09,'三线推进'),COLORFFC8FF; STICKLINE(HR2 AND FILTER(HR2,10),H,L,0.5,1),COLORFFC8FF;
STICKLINE(HR2 AND FILTER(HR2,10),O,C,6,1),LINETHICK2,COLORFFC8FF;====================== =========。

相关文档
最新文档