主力拉升前量能通达信指标公式源码

合集下载

主力拉升前量能通达信指标公式源码

主力拉升前量能通达信指标公式源码

主力拉升前量能通达信指标公式源码量能通达信指标(Up Volume Index)是一种研究主力资金流入的技术指标,可以辅助判断股票价格的走势。

通达信指标的公式源码如下:```python'''V1:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*VOL;#计算当天的涨幅比例乘以成交量V2:=SUM(IF(V1>0,V1,0),20);#计算过去20天内的正涨幅之和V3:=SUM(IF(V1<0,V1,0),20);#计算过去20天内的负涨幅之和V4:=(V2-V3)/(V2+V3)*100;#计算涨幅能量指标V4V5:MA(V4,5);#计算5日均涨幅能量指标V5V6:EMA(V5,5);#计算5日指数加权均涨幅能量指标V6'''```以下是对每个变量的解释:-V1是当天的涨幅比例乘以成交量的计算结果,表示当天主力资金的流入情况。

-V2是过去20个交易日内的正涨幅之和,表示主力资金近期的购买量。

-V3是过去20个交易日内的负涨幅之和,表示主力资金近期的卖出量。

-V4是涨幅能量指标,计算公式为(V2-V3)/(V2+V3)*100,表示主力资金近期的净买入量占总成交量的比例。

-V5是5日均涨幅能量指标,计算公式为对V4进行5日简单移动平均。

-V6是5日指数加权均涨幅能量指标,计算公式为对V5进行5日指数加权移动平均。

量能通达信指标可以用于判断主力资金对股票价格的影响程度。

当V4值较高时,表示主力资金大量买入,可能会推动股票价格上涨;反之,当V4值较低时,表示主力资金较为减仓,可能会导致股票价格下跌。

V5和V6指标可以用于平滑V4的变化趋势,提供更准确的判断。

以上是量能通达信指标的公式源码及其解释。

希望能对您有所帮助!。

主力拉升前量能通达信指标公式源码

主力拉升前量能通达信指标公式源码

主力拉升前量能通达信指标公式源码
通达信是一种常用的股票软件,在其中可以根据个人需求自定义指标,并编写指标公式。

以下是一个使用通达信公式语言编写的主力拉升前量能
指标的源码:
```text
通达信指标公式:主力拉升前量能
计算说明:
公式:
参数说明:
代码解释:
IF(VOL>=REF(VOL,1),VOL,0)表示,如果当天成交量大于等于昨天的
成交量,则取当天成交量,否则返回0。

SUM(IF(VOL>=REF(VOL,1),VOL,0),12)表示计算最近12个交易日的条
件成交量之和。

SUM(VOL,12)表示计算最近12个交易日的总成交量之和。

综上所述,以上代码为通达信指标公式“主力拉升前量能”的源码。

通过在通达信软件中运行该公式,可以得到主力拉升前量能指标的数值,
用于辅助股票分析和交易决策。

```
上述源码基于通达信的公式语言编写,通过对成交量的比较和累加计算,得到了主力拉升前量能指标的数值。

请注意,这只是一种可能的实现
方式,实际的指标公式可能根据具体需求和交易平台的特点有所差异。


了更好地理解和运用该指标,建议参考通达信软件的开发文档和相关教程。

主力拉升通达信指标公式源码.doc

主力拉升通达信指标公式源码.doc

私模老师所赠,值得大家参考,自己添加了其他老师的指标综合而成,分享给大家,供大家相互交流学习,这是我实盘在用的通达信附图指标,看下图VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND(VAR3AA>0),91,0);XG:=(FILTER((VAR4AA>90),45)),COLORYELLOW;STICKLINE(XG A150,0,4,0),COLOROOOQ99;STICKLINE(XG z150,0,2,0),COLOROOOOBB;STICKLINE(XG,150z O,l,0)z COLOROOOODD;STICKLINE(XG z150z0z0.9z0)z COLOR0000FF;DRAWTEXT(XG>0,130;★起暴点*),COLOROOC5FF;DIFF :=( EMA(CL0SE,12) - EMA(CLOSE,26))*100;DEA :=EMA(DIFF Z9);MACD :=2*(DIFF-DEA);抄底l:=ABS((CROSS(,'MACD.DIF n;,MACD.DEA n)&&n MACD.DEA n<=-0.07)*"MACD.DIF',)*1.09,COLORLIMAGENTA z LINETHICK2;STICKLINE(抄底1,0,50,4,0),COLOR770077;STICKLINE(抄底1,0,50,3,0),COLOR990099;STICKLINE(抄底1,0,50,2,0),COLORBBOOBB;STICKLINE(抄底1,0,50,1,0),COLORDDOODD;STICKLINE(抄底1,0,50,0.3,0),COLORFFOOFF;DRAWTEXT(抄底l>0,38,*超级拐点,),COLOROOC5FF;反向钟摆线:=MA((LLV(LOW,45)・CLOSE)/(HHV(HIGH,45)・LLV(LOW,45))*100,20);DK:=CROSS(-5,反向钟摆线);STICKLINE(DK,0,50,4,0)Z COLOR770077;STICKLINE(DK,0,50Z3Z0)Z COLOR990099;STICKLINE(DK,0,50,2,0),COLORBBOOBB;STICKLINE(DK,0,50,1,0),COLORDDOODD;STICKLINE(DK,0,50,0.3z0)z COLORFF00FF;DRAWTEXT(DK>0,48;★终极低点'),COLOROOC5FF;VAR2:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VAR3:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VAR4:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VAR5:=(((VAR2 + (2 * VAR3)) + (3 * VAR4)) / 6);VAR6:=MA(VAR5,3);VAR7:=DMA(EMA(CLOSE,12),((SUM(VOL,5) / 3) / CAPITAL));VAR8:=(((CLOSE - VAR7) / VAR7) * 100);VAR9:=((((REF(VAR8,1) < (0 - 40)) AND (VAR8 > REF(VAR8,1))) AND (REF(VAR8,1) <REF(VAR8,2))) AND ((VAR8 ・ REF(VAR8,1)) > 2.5));VARD:=REF(CLOSE,1);VARE:=((SMA(MAX((CLOSE - VARD),0),5,l) / SMA(ABS((CLOSE - VARD)),5,1)) * 100); VARF:=(((HIGH + LOW) + CLOSE) / 3);VAR10:=((VARF - MA(VARF,14)) / (0.015 * AVEDEV(VARF,14)));VARI 1:=(((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT Z110) / MA(VOL Z110)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100)) < (0 - 0.273));VAR12:=(((CLOSE ・ MA(CLOSE,30)) / MA(CLOSE,30)) < (0 ・ 0.125));VAR13:=(VAR11 AND VAR12);VAR14:=((((VAR2 >= (0 - 45)) AND (VAR2 <= (0 - 10))) AND (VAR3 <= (0 - 15))) AND (VAR4 <= (0 - 20)));VAR15:=(COUNT(VAR14,1) >= 1);VAR16:=(VAR13 AND VAR15);VAR17: = 1;VAR18:=(CLOSE * VOL);VAR19:=EMA((((((MA(VAR18,4) / MA(VOL,4)) + (MA(VAR18,6) / MA(VOL,6))) + (MA(VAR18,13) / MA(VOL,13))) + (MA(VAR18,24) / MA(VOL,24))) / 4),1);VAR1A:=(1 * VAR19);VAR1B:=(VAR19 * 0.92);VAR1C:=EMA(CLOSE,34);VAR1D:=MA((VAR1C * 1.12),5);VAR1E:=MA((VAR1C * 0.82),5);VAR1F:=(CLOSE < VAR1E);VAR20:=((((((MA(AMOUNT,5) * VAR17) / MA(VOL,5)) / 100) - ((MA(AMOUNT,125) / MA(VOL,125)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100)) < ((0 - 0.4) * VAR17));VAR21:=HHV(HIGH z500);VAR22:=LLV(LOW,500);VAR23:=HHV(HIGH z250);VAR24:=LLV(LOW,250);VAR25:=HHV(HIGH,125);VAR26:=LLV(LOW,125);VAR27:=MA(((((((VAR21 * 0.45) + (VAR23 * 0.5)) + VAR22) + VAR24) + VAR26) / 5),35); VAR28:=MA((((VAR23 * 0.62) + VAR26) / 2),35);VAR29:=MA((((VAR23 * 0.75) + VAR26) / 2),18);VAR2A:=MA((((((VAR23 * 0.93) + (VAR27 * 2)) + (VAR28 * 1.8)) + (VAR29 * 1.5)) / 4),18); VAR2B:=MA(((((VAR21 * 0.95) + (VAR27 * 3)) + (VAR28 * 2)) / 3),35);VAR2C:=VAR27;VAR2D:=VAR28;VAR2E:=VAR29;VAR2F:=VAR2A;VAR30:=VAR2B;VAR31:=((CLOSE ・ REF(MA(CLOSE,20),11)) < (0 -2));VAR35:=((VAR18 / (VAR18 + VAR19)) * VAR17);VAR36:=((VAR19 / (VAR18 + VAR19)) * VAR17);VAR37:=EMA(VAR35,10);VAR38:=EMA(VAR36,10);VAR39:=EMA(VAR37,10);VAR3A:=EMA(VAR38,20);VAR3B:=EMA(VAR37,3);VAR3C:=EMA(VAR39,6);VAR3D:=EMA(VAR3A,2);VAR3E:=(VAR3C - VAR3D);VAR3F:=(((VAR3C - REF(VAR3C,1)) > 0) AND ((REF(VAR3C,1) - REF(VAR3C,2)) < 0));VAR40:=IF((CROSS(VAR3B,VAR3C) AND (VAR3C <= 20)),30,0);VAR41:=VAR40;VAR42:=(SMA(((AMOUNT / VOL) / 100),13,1) * 1.15);VAR43:=(SMA(((AMOUNT / VOL) / 100),13,1) * 0.85);VAR44:=(CLOSE - REF(MA(CLOSE,20),11));VAR45:=(((((((((((((CLOSE < VAR IE) AND VAR20) AND (CLOSE < VAR43)) OR (((CLOSE < VAR1E) AND VAR31) AND VAR20)) OR ((CLOSE < VAR1E) AND (CLOSE < VAR43))) OR (((CLOSE < VAR1E) AND VAR20) AND (CLOSE < VAR43))) OR (VAR20 AND (CLOSE < VAR2C))) OR ((VAR20 AND VAR31) AND (VAR44 < (0 - 1.5)))) OR (VAR20 AND (CLOSE < VAR1E))) OR (VAR20 AND (VAR44 < (0 - 1.5)))) OR (VAR31 AND (CLOSE < VAR43))) OR ((CLOSE < VAR2C) AND (VAR44 < (0 - 1.5)))) OR ((CLOSE < VAR IE) AND VAR31)); VAR4B:=(((HIGH + LOW) + CLOSE) / 3);VAR4C:=((VAR4B - MA(VAR4B,14)) / (0.015 * AVEDEV(VAR4B,14)));VAR4D:=(((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,110) / MA(VOL,U0)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100)) < (0 - 0.273));VAR4E:=(((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) < (0 - 0.125));VAR4F:=(VAR11 AND VAR12);VAR50:=((((VAR2 >= (0 - 45)) AND (VAR2 <= (0 - 7))) AND (VAR3 <= (0 - 11))) AND (VAR4 <= (0 - 14)));VAR51:=(COUNT(VAR50,1) >= 1);VAR52:=(VAR4F AND VAR51);VAR53:=(((((VAR20 AND (CLOSE < VAR1E)) AND VAR31) AND (CLOSE < VAR2C)) AND VAR45) AND VAR52);VAR5B:=((((((VAR2 >= (0 - 15.8)) AND (VAR2 <= (0 - 12.2))) AND (VAR3 <= (0 - 20.8))) AND (VAR4 <= (0 - 27.5))) AND (VARE <= 11.7)) AND (VAR4C <= (0 - 145)));VAR5C:=9.999999884842E+0.26;VAR5D:=(COST(10) * 0);VAR5E:=((((MA(AMOUNT,5) / MA(VOL Z5)) / 100) - ((MA(AMOUNT,125) / MA(VOL,125)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100));VAR5F:=MA((((LLV(LOW,45) - CLOSE) / (HHV(HIGH,45) - LLV(LOW,45))) * 100),5);VAR60:=((CROSS((0 - 5),VAR5F) AND (VAR5E < (0 - 0.4))) AND (((CLOSE - MA(CLOSE,30)) /MA(CLOSE,30)) < (0 - 0.19)));VAR61:=MA(CLOSE,3);VAR62:=(REF(CLOSE,2) * 0.865);VAR63:=(REF(CLOSE, 13) * 0.772);VAR64:=MIN(VAR62,VAR63);VAR65:=((100 * VOL) / CAPITAL);抄底:IF(((((VAR9 OR VAR16) OR VAR53) OR VAR5B) OR ((((CLOSE - VAR64) / CLOSE) < 0.03) AND ((SUM(VAR65,5) / 5) < 1.8))),80,0)Z LINETHICK4/COLORRED;DRAWTEXT(抄底>0,抄底,'★游资)COLOROOC5FF;小V 逆转:=REF(C,l)vREF(O,l) AND O>REF(C,1) AND C> = REF(C,l)*1.08;STICKLINE(小V 逆转,20,0,4,0),COLOR000099;STICKLINE(小V 逆转,30,O z2z O),COLOROOOOBB;STICKLINE(小V 逆转,40,0,1,0),COLOROOOODD;STICKLINE(小V 逆转,60,0,0.9,0),COLOROOOOFF;DRAWICON(小V 逆转,60,34);DRAWTEXT(小V 逆转>0,30;小V 逆转'),COLOROOC5FF;HAN: = DATE<1151230;MA13: = MA(C, 13)Z COLORWHITE;MA34:=MA(C,34),COLORYELLOW;MA55: = M A(C,55),COLORRED;YY1:=O<MA13 AND C>MA13;YY2:=O<MA34 AND C>MA34;YY3:=O<MA55 AND C>MA55;YY4:=C/O>=1.04;YY5:=V>HHV(H,10);YY6: = MA13>=REF(MA13,1);天天涨停:=YY1 AND YY2 AND YY3 AND YY4 AND YY5 AND YY6;IF(天天涨停,57,DRAWNULL),LINETHICK4,POINTDOT,COLOROOFFOO;STICKLINE(天天涨停,26,20,1,0),COLORFFFFFF;STICKLINE(天天涨停,33,25,1,0),COLOR8800CC;STICKLINE(天天涨停,46,32,1,0),COLORAAOODD;STICKLINE(天天涨停,37,34,1,0),COLOROOAAFF;STICKLINE(天天涨停,50,44,l,0),COLOR000000;DRAWICON(天天涨停,39,9);VA:=IF(CLOSE>REF(CLOSE,1),VOL 广VOL);OBVl:=SUM(IF(CLOSE=REF(CLOSE,l),O z VA)z O);OBV2:=EMA(OBV1,3)-MA(OBV1,9);OBV3:=EMA(IF(OBV2>OQBV2,0),3);MAC3:=MA(C,3);SHORT: = 12;LONG:=26;MID:=9;DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG)COLORYELLOW ;主力买:IF(DIF>REF(DIF,1),DIF,0),NODRAW;主力卖:IF(DIF<REF(DIF,1),DIF,0),NODRAW;STICKLINE(OBV3>REF(OBV3,1) AND MAC3>REF(MAC3,1),0,MACD,4.9,0),COLORYELLOW; 吸:=MACDv0 AND MACD>REF(MACD,1);拉:=MACD>0 AND MACD>REF(MACD,1);派:=MACD>0 AND MACD<REF(MACD Z1);落:=MACDv0 AND MACD<REF(MACD,1);STICKLINE(吸,0,MACD,2.8,0),COLORRED;STICKLINE(拉QMACD,2.8,0),COLORRED;STICKLINE(派,0,MACD,3.8,0),COLORGREEN;STICKLINE(落,0,MACD,2.8,0),COLORGREEN;主力吸筹:吸Z COLORYELLOW,NODRAW;主力拉升:拉,COLORRED,NODRAW;主力出逃:派,COLORGREEN,NODRAW;主力砸盘:落,COLORFFAAOO,NODRAW;RSV:=(CLOSE・LLV(LOW,6))/(HHV(HIGH,6)・LLV(LOW,6))*100;K:=SMA(RSV,2,1);D:=SMA(K,2,1);J:=3*K-2*D;RS:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW Z9))*100;F: = 100;Kl:=RS> = 100;K2:=RS<100;DRAWICON(CROSS(K1,K2)Z K1,27);DRAWTEXT_FIX(1,O.O,O.O1,O Z * 水晶出现次日10: 30 之前是最佳''卖点'〃)COLORYELLOW; DRAWTEXT(CROSS(REF(ZIG(3,6),1),ZIG(3,6)),HIGH*0.1,‘★卖')COLORGREEN;DRAWICON(CROSS(REF(ZIG(3,6),1),ZIG(3Z6)),HIGH*0.1Z9);V1:=EMA(CLOSE,60)-EMA(CLOSE,300);V6:=CLOSE/REF(CLOSE,3)> = 1.1;V7:=BACKSET(V6,3);买入暴张:IF((V7 AND COUNT(V7,3)=1),30,0),COLORYELLOW,LINETHICK3;DRAWTEXT(V7*0.8>0z32;o *),COLOROOC5FF;{原始人实时内外盘主图指标}买卖盘比■: 1/DYNAINFO(51),COLORGRAY,NODRAW;IF(买卖盘比■ >0.9,买卖盘比・,DRAWNULL),COLORWHITE,NODRAW;IF(买卖盘比■ >1.3,买卖盘比・,DRAWNULL),COLORRED,NODRAW;DRAWTEXT_FIX(l,0.5,O z O,W)z COLORGRAY;DRAWTEXT_FIX(l,0.51,0,0,・‘),COLORGRAY;DRAWTEXT_FIX(1,0.52,0,0,・)COLORGRAY;DRAWTEXT_FIX(1,0.53QO,・)COLORGRAY;DRAWTEXT_FIX(l z0.54,0,0,W),COLORGRAY;DRAWTEXT_FIX(l z O,55,O z O,W),COLORGRAY;DRAWTEXT_FIX(l,0.56,0,0,・‘),COLORGRAY;DRAWTEXT_FIX(1,0.57,0,0,■'),COLORGRAY;DRAWTEXT_FIX(1,0.58,0,0,COLORGRAY;DRAWTEXT_FIX(买卖盘比・>0.5,0.5,0,0,・'),COLORLIGREEN;DRAWTEXT_FIX(买卖盘比・>0.6,0.51,O z O,W),COLORLIGREEN;DRAWTEXT_FIX(买卖盘比・>0.7,0.52,0Q・'),COLORLIGREEN; DRAWTEXT_FIX(买卖盘比・>0.75Q53,0,0,・'),COLOR00CCFF; DRAWTEXT_FIX(买卖盘比・>0.8,0.54,0,0,・'),COLOR00CCFF; DRAWTEXT_FIX(买卖盘比・>0.85,0.55,0,0,・'),COLOR00CCFF; DRAWTEXT_FIX(买卖盘比・>0.9,0.56,0,0,・'),COLOR000066; DRAWTEXT_FIX(买卖盘比・>0.95Q57,0,0,・)COLOR000066; DRAWTEXT_FIX(买卖盘比・>1,0.58,0,0,・'),COLOR000066; DRAWTEXT_FIX(l z0.56,0,0; 9'),COLORBU\CK;DRAWTEXT_FIX(1,0.6,0,0z W),COLORGRAY;DRAWTEXT_FIX(l z O,61,O z O,W)z COLORGRAY;DRAWTEXT_FIX(1,0.62,0,0,W),COLORGRAY;DRAWTEXT_FIX(l z0.63,0,0,W),COLORGRAY;DRAWTEXT_FIX(l z0.64,0,0,W),COLORGRAY;DRAWTEXT_FIX(l z O,65z O,0,W)z COLORGRAY;DRAWTEXTIFIX(lo.66oo、-・・)nOLORGRAWDRAWTEXT—Fx(lo.67oo、-・-)nOLORGRAWDRAWTEXTIFIX(lo.68oo、-・・)、COLORGRAY;DRAWTEXTIFIX (泊料盼乓■vlo5o.6oo、.・)nOLORGREEN; DRAWTEXTIFIX(*^^K・ VLlo.61oo、.・-)nOLORGREEN,DRAWTEXTIFIX(^B障长■Vl・15o.62oo、-・・)、COLORGREEN; DRAWTEXT—FX(沼B爵F・vl.2o.63oo、.・)nOLORYELLOW; DRAWTEXTIFIX(冲白薜氏■vl.25o.64op.・・)、COLORYELLOW; DRAWTEXTIFIX (泊料盼乓■vl.3o.65oo、_・)nOLORYELLOW; DRAWTEXTIFIX (冶朴障长■vl.4p66oo、-・-)nOLORRED; DRAWTEXT—FIX(斐料我乓・vl.5o.67oo、.・-)nOLORRED; DRAWTEXT—FX(泻w爵长■vl.6o.68oo、・-)nOLORRED;DRAWTEXT—FX(1O.65OO、- 7-)oOLORBgcK;MAlmXPMA(c、5)nOLORYELLOW、LINETHICK6;KK"MA1AREF(MA1,HIF(KK、MALDRAWNULL)、COLORGREEN、LINETHICK6;DD¥AlvREF(MALl)一IF(DDzALDRAWNULL)oOLORBLUE、LINETHICK6; BLAHHWHws—cyxHWHwoYLLWLOWwo))*-。

主力拉升前量能通达信指标公式源码

主力拉升前量能通达信指标公式源码

主力拉升前量能xx指标公式源码成交量:VOL,COLORWHITE,NODRAW;V1:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);HY1:=REF(EMA(V1,3),1);多空趋势:=(MA((CLOSE - HY1) * 10,2))*0.1;操盘4:STICKLINE(多空趋势=0 AND多空趋势=REF(多空趋势,1),6,6+多空趋势,1.5,0),COLORRED;减仓4:STICKLINE(多空趋势=0 AND多空趋势REF(多空趋势,1),6,6+多空趋势,1.5,0), COLORRED;反弹4:STICKLINE(多空趋势0 AND多空趋势=REF(多空趋势,1),6,6+多空趋势,1.5,0),COLORGREEN;寻底4:STICKLINE(多空趋势0 AND多空趋势REF(多空趋势,1),6,6+多空趋势,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(多空趋势=0,6,6.3),'多空'),COLORWHITE;换手:=V*100/CAPITAL;主力:=MA(换手,4);大户:=MA(换手,9);中户:=MA(换手,17);散户:=MA(换手,34);均量:=(主力+大户+中户+散户)/4;主力能量:(主力-均量)COLORMAGENTA,NODRAW;大户能量:(大户-均量)COLORYELLOW,NODRAW;中户能量:(中户-均量)COLORLIBLUE,NODRAW;散户能量:(散户-均量)COLORBLUE,NODRAW;操盘:STICKLINE(主力能量=0 AND主力能量=REF(主力能量,1),4.5,4.5+主力能量,1.5,0),COLORRED;减仓:STICKLINE(主力能量=0 AND主力能量REF(主力能量,1),4.5,4.5+主力能量,1.5,0),COLORRED;反弹:STICKLINE(主力能量0 AND主力能量=REF(主力能量,1),4.5,4.5+主力能量,1.5,0),COLORGREEN;寻底:STICKLINE(主力能量0 AND主力能量REF(主力能量,1),4.5,4.5+主力能量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(主力能量=0,4.2,4.8),'机构'),COLORMAGENTA;操盘1:STICKLINE(大户能量=0 AND大户能量=REF(大户能量,1),3,3+大户能量,1.5,0),COLORRED;减仓1:STICKLINE(大户能量=0 AND大户能量REF(大户能量,1),3,3+大户能量,1.5,0),COLORRED;反弹1:STICKLINE(大户能量0 AND大户能量=REF(大户能量,1),3,3+大户能量,1.5,0),COLORGREEN;寻底1:STICKLINE(大户能量0 AND大户能量REF(大户能量,1),3,3+大户能量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(大户能量=0,2.7,3.3),'大户'),COLORYELLOW;操盘2:STICKLINE(中户能量=0 AND中户能量=REF(中户能量,1),1.5,1.5+中户能量,1.5,0),COLORRED;减仓2:STICKLINE(中户能量=0 AND中户能量REF(中户能量,1),1.5,1.5+中户能量,1.5,0),COLORRED;反弹2:STICKLINE(中户能量0 AND中户能量=REF(中户能量,1),1.5,1.5+中户能量,1.5,0),COLORGREEN;寻底2:STICKLINE(中户能量0 AND中户能量REF(中户能量,1),1.5,1.5+中户能量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(中户能量=0,1.2,1.8),'中户'),COLORLIBLUE;操盘3:STICKLINE(散户能量=0AND 散户能量=REF(散户能量,1),0,散户能量,1.5,0),COLORRED;减仓3:STICKLINE(散户能量=0 AND散户能量REF(散户能量,1),0,散户能量,1.5,0),COLORRED;反弹3:STICKLINE(散户能量0 AND散户能量=REF(散户能量,1),0,散户能量,1.5,0),COLORGREEN;寻底3:STICKLINE(散户能量0 AND散户能量REF(散户能量,1),0,散户能量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(散户能量=0,-0.3,0.3),'散户'),COLORBLUE;。

通达信指标公式源码拉升涨停主图指标

通达信指标公式源码拉升涨停主图指标

通达信指标公式源码拉升涨停主图指标做价值的传播者,一路同行,一起成长问题:怎样才能每天都收到这类文章!答案:只需点击上方《通达信公式指标》N:=5;N1:=3;H1:EMA(CLOSE,N);H2:EMA(H1,N1);VAR1:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;VAR2:=SMA(VAR1,5,1);VAR3:=SMA(VAR2,8,1);VAR4:=CROSS(VAR2,VAR3) AND VAR3<20;VAR5:=CLOSE>LLV(CLOSE,60)+0.3*LLV(CLOSE,60) AND VAR4;VAR6:=IF(CLOSE>1000,VAR4,VAR5);DRAWICON(VAR6,H,2);DRAWTEXT(CROSS(H1,H2),H1*0.99,'○买点'),COLORYELLOW;MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;取舍线:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16* REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12* REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8* REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4* REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,L INETHICK1,COLORYELLOW;STICKLINE(C>取舍线,O,C,2,0),COLORRED;STICKLINE(C<取舍线,O,C,2,0),COLORGREEN;DRAWICON(CROSS(C,取舍线),L,1);DRAWICON(CROSS(取舍线,C),H,2);DRAWICON(CROSS(C,取舍线),L,26);{缺口}STICKLINE(L>REF(H,1) ,REF(H,1),L,1,-1),COLOR990099;STICKLINE(H<REF(L,1) ,REF(L,1),H,1,-1),COLOR999900;DRAWKLINE(H,O,L,C);{涨停分类}个线:=EMA(EMA(CLOSE,30),9);大线:=EMA(EMA(INDEXC,45),9);个股1:=CLOSE/个线*100;大盘1:=INDEXC/大线*100;GGQD:=(个股1-大盘1);回光返照:=COUNT(CROSS(MA(C,15),MA(C,5)),N1)=0 ANDHHV(GGQD,20)>23 AND MA(C,5)>MA(C,30) AND GGQD<HHV(GGQD,30) AND GGQD>5 AND (C-REF(C,1))/REF(C,1)*100>9.6 AND C=H,;ZT:=(C-REF(C,1))/REF(C,1)*100>8.5,COLORWHITE;开盘:=IF(REF(ZT,1)>0 ,(O-REF(C,1))/REF(C,1)*100,0),NODRAW;BIAS1 :=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;BIAS2 :=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;BIA:=(BIAS1-BIAS2);BIS:=LLV(BIAS1,3);超跌涨停:=ZT>0 AND BIS<0 AND BIA>5 AND MA(C,5)<MA(C,60);DRAWTEXT(超跌涨停,L*0.98,'超跌涨停'),COLORGREEN;MA5:=MA(C,5);MA10:=MA(C,10);MA20:=MA(C,20) ;MA30:=MA(C,30);MA60:=MA(C,34);F1:=(MA5-MA10)/MA10*100;F2:=(MA10-MA20)/MA10*100;F3:=(MA20-MA60)/MA10*100;拉升涨停:=F1>1 AND F2>3 AND F3>0 AND ZT>0;A1:=REF(C,20)=HHV(C,2*20+1);B1:=FILTER(A1,20);C1:=BAC KSET(B1,20+1);HD:=FILTER(C1,20);A:=REF(H,BARSLAST(HD));RSI1:=SMA(MAX(CLOSE-REF(CLOSE,1),0),5,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),5,1)*100;钝化涨停:=ZT>0 AND RSI1=HHV(RSI1,5) AND RSI1>80;钝化涨停1:=GGQD>15 AND ZT>0 AND RSI1=HHV(RSI1,5) AND RSI1>80 AND REF(GGQD>15 AND ZT>0 ANDRSI1=HHV(RSI1,5) AND RSI1>80,1)=0;新股首次:=COUNT(ZT>0,BARSCOUNT(C))=1 AND ZT>0 AND FINANCE(42)<100;突破涨停:=CROSS(C,A) AND ZT>0;DRAWTEXT(回光返照,L*0.99,'回光返照'),COLORBLUE;DRAWTEXT(拉升涨停,L*0.98,'拉升涨停'),COLORRED;DRAWTEXT(突破涨停,L*0.97,'突破涨停'),COLORYELLOW;DRAWTEXT(新股首次,L*0.96,'新股首次'),COLORMAGENTA;DRAWTEXT(钝化涨停1,L*0.95,'钝化涨停1'),COLORLIRED;DRAWTEXT(钝化涨停,L*0.94,'钝化涨停'),COLORLIBLUE;STICKLINE(CLOSE,REF(HIGH,BARSLAST(涨停)),REF(HIGH,BARSLAST(涨停)),0.1,0),COLORDDDD00;STICKLINE(CLOSE,REF(LOW,BARSLAST(涨停)),REF(LOW,BARSLAST(涨停)),0.1,0),COLOR00DDDD;风险提示:本指标公式仅作为知识分享,不构成任何投资建议,不作投资依据。

通达信量能指标公式源码

通达信量能指标公式源码

通达信量能指标公式源码```周期=22if (BarNumber > 周期)当前成交量 = Volume前期成交量 = Ref(Volume, 周期)//计算主力买卖盘力量当前成交量力量 = IFF((Current成交量 - 前期成交量) > 0, (Current成交量 - 前期成交量), 0)主力买卖盘力量=SUM(当前成交量力量,周期)//计算散户买卖盘力量当前成交量力量反=IFF((前期成交量-当前成交量)>0,(前期成交量-当前成交量),0)散户买卖盘力量=SUM(当前成交量力量反,周期)//计算总体买卖盘力量总体买卖盘力量=主力买卖盘力量+散户买卖盘力量//计算主力买卖比例主力买卖比例=IFF(总体买卖盘力量>0,(主力买卖盘力量/总体买卖盘力量)*100,0)//计算散户买卖比例散户买卖比例=100-主力买卖比例//画出主力买卖比例曲线和散户买卖比例曲线Plot(主力买卖比例, "主力买卖比例", colorRed)Plot(散户买卖比例, "散户买卖比例", colorGreen)```这段源码采用了TradingView的Pine Script语言编写。

其中 `周期`为指定的周期长度,`BarNumber`为当前的K线数量,`Volume`为当前K 线的成交量。

通过计算当前成交量和前期成交量的差值,可以得到主力买卖盘力量和散户买卖盘力量。

然后将这些力量进行累计,并计算主力买卖比例和散户买卖比例。

最后,通过`Plot(`函数将主力买卖比例和散户买卖比例画在图表上,使用红色和绿色分别表示。

这段代码的作用是计算并绘制通达信量能指标中的主力买卖比例和散户买卖比例曲线。

这些曲线可以帮助分析市场的买卖力量和趋势,更好地理解市场的活跃度和价格行为。

量能趋势通达信指标公式源码

量能趋势通达信指标公式源码

RV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;RG:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;J0:=(HIGH+LOW)/2;QJ:=EMA(J0,3);J1:=IF(CLOSE>QJ,VOL,0);J2:=IF(CLOSE<QJ,VOL,0);量能:IF(CAPITAL<1,MA(VOL,74),MA(SUM(J1-J2,22),3)),COLOR00DDDD,NODRAW; 趋势:IF(CAPITAL<1,EMA(量能,360),EMA(量能,21)),COLOR008800,NODRAW; VAR3:=(量能-趋势);VAR44:=SMA(RV,3,1);VAR55:=SMA(VAR44,3,1);STICKLINE(VAR3>0,20,10,5,1),COLOR0000FF;STICKLINE(VAR3<0,100,90,10,1),COLOR00FF00;DRAWICON(CROSS(VAR44,VAR55) AND VAR55<30,2,1);DRAWICON(CROSS(VAR55,VAR44) AND VAR55>30,97,2);DRAWBAND(VAR55,RGB(0,22,224),VAR44,RGB(255,50,50));遵:IF(VAR55>=VAR44,VAR55,DRAWNULL),COLORRED;守:IF(VAR44>=VAR55,VAR44,DRAWNULL),COLORFF9900;纪:IF(VAR55>=VAR44,VAR44,DRAWNULL),COLOR00FFFF;律:IF(VAR44>=VAR55,VAR55,DRAWNULL),COLOR00FF00;KK:=EMA(SMA(RG,3,1),2),LINETHICK0;DD:=SMA(KK,3,1),LINETHICK0;DRAWBAND(KK,RGB(155,50,50),DD,RGB(0,100,50));持:IF(KK>=DD,KK,DRAWNULL),COLORRED;观:IF(DD>=KK,DD,DRAWNULL),COLORFF9900;股:IF(KK>=DD,DD,DRAWNULL),COLOR00FFFF;望:IF(DD>=KK,KK,DRAWNULL),COLOR00FF00;DRAWICON(CROSS(KK,DD),KK,23);DRAWTEXT(CROSS(VAR44,VAR55) AND CROSS(KK,DD),10,'共振'),COLOR00FFFF;共振点:=(CROSS(VAR44,VAR55) AND CROSS(KK,DD));STICKLINE(共振点>0,0,30,2,0),COLOR008888;STICKLINE(共振点>0,0,30,1.5,0),COLOR00AAAA;STICKLINE(共振点>0,0,30,0.8,0),COLOR00DDDD;STICKLINE(共振点>0,0,30,0.3,0),COLOR00FFFF;VAR1:=1;VAR2:=((((2*CLOSE)+HIGH)+LOW) / 4);低金叉进:20,COLORFF00FF,LINETHICK2;高死叉出:90,COLORBLUE,LINETHICK2;VAR4:=LLV(LOW,5);VAR5:=HHV(HIGH,4);C1:=(EMA((((VAR2-VAR4)/(VAR5-VAR4))*100),4)*VAR1),COLORFF00FF,LINETHICK2; C2:=(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*VAR1),COLORFFFFFF,LINETHICK2; 条件:=CROSS(C1,C2) AND C1<40;条件0:=CROSS(C2,C1) AND C1>90;TJ1:=CROSS(C1,C2);TJ2:=CROSS(C2,C1);TJ3:=CROSS(C1,C2) AND REF(C1,1)<20;TJ4:=CROSS(C2,C1) AND REF(C1,1)>80;DRAWTEXT(FILTER((REF(条件,1) AND (REF(LOW,1)>LOW OR TJ2))OR (REF(条件,2) AND (REF(LOW,2)>LLV(LOW,3) OR TJ2))OR (REF(条件,3) AND (REF(LOW,3)>LLV(LOW,4) OR TJ2)),4),70,'止'),COLORRED; {DRAWTEXT(FILTER((REF(条件,1) AND (REF(LOW,1)>LOW OR TJ2))OR (REF(条件,2) AND (REF(LOW,2)>LLV(LOW,3) OR TJ2))OR (REF(条件,3) AND (REF(LOW,3)>LLV(LOW,4) OR TJ2)),4),60,'跌'),COLORRED;} DRAWTEXT(FILTER((REF(条件,1) AND (REF(LOW,1)>LOW OR TJ2)) OR(REF(条件,2) AND (REF(LOW,2)>LLV(LOW,3) OR TJ2))OR (REF(条件,3) AND (REF(LOW,3)>LLV(LOW,4) OR TJ2)),4),65,'买'),COLORRED; DRAWTEXT(条件,20,'买'),COLORRED;STICKLINE(条件,0,20,2,0),COLORRED;DRAWTEXT(条件0,85,'卖'),COLORBLUE;DRAWTEXT(CROSS(C1,75),70,'险区'),COLORGREEN;DRAWTEXT(TJ3,65,'安'),COLORRED;DRAWTEXT(TJ3,60,'买'),COLORRED;DRAWTEXT(TJ4,85,'逃顶'),COLORBLUE;STICKLINE(TJ4,100,80,2,0),COLORGREEN;VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100; VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;VAR400:=EMA(VAR300,5);操盘:=3*VAR300-2*VAR400;A1:=CROSS(操盘,VAR300) AND VAR300<2.1 AND C>O; STICKLINE(A1,20,0,4,0),COLOR770077;STICKLINE(A1,20,0,3,0),COLOR990099;STICKLINE(A1,20,0,2,0),COLORBB00BB;STICKLINE(A1,20,0,1,0),COLORDD00DD;STICKLINE(A1,20,0,0.3,0),COLORFF00FF;DRAWTEXT(A1,30,'财'),COLORFF00FF;★遵守纪律★:100,COLORRED,NODRAW;★交易之魂★:100,COLORRED,NODRAW;。

准备拉升指标通达信指标公式源码

准备拉升指标通达信指标公式源码

准备拉升指标通达信指标公式源码为了拉升指标通达信指标公式的源码,我们首先需要了解通达信指标公式的基本结构和使用方法。

然后,我们可以通过修改和优化源码来增加其功能和效率。

通达信指标公式的基本结构如下:```c++#include "stdafx.h"#include "Indicator.h"#define MAX_STOCK_NUM 2000//定义指标公式的输入参数struct INPUT_PARAMSdouble param1;double param2;//更多参数...};//定义指标公式的输出结果struct OUTPUT_RESULTSdouble result1;double result2;//更多结果...};//定义指标公式的计算函数void CalculateIndicator(INPUT_PARAMS inputParams, OUTPUT_RESULTS& outputResults)//计算指标//...// 将计算结果存入outputResults中//...//定义通达信指标公式的调用函数extern "C" __declspec(dllexport)void __cdecl Indicator(int nCount, INPUT_PARAMS* pInputParams, OUTPUT_RESULTS* pOutputResults)for (int i = 0; i < nCount; i++)CalculateIndicator(pInputParams[i], pOutputResults[i]);}```上述代码中,`INPUT_PARAMS`结构体定义了指标公式的输入参数,`OUTPUT_RESULTS`结构体定义了指标公式的输出结果,`CalculateIndicator`函数是实际的指标计算函数,`Indicator`函数是通达信指标公式的调用函数。

通达信拉升在即指标公式

通达信拉升在即指标公式

通达信拉升在即指标公式VAR1:=EMA(SMA((CLOSE-LLV(LOW,19))/(HHV(HIGH,19)-LLV(LOW,19))*100, 8,1),3);STICKLINE(VAR1>20 AND VAR1<80,VAR1,VAR1,10,1),COLORRED; STICKLINE(VAR1<REF(VAR1,1),VAR1,VAR1,10,1),COLORFFCC66; STICKLINE(VAR1>80,VAR1,VAR1,8,1),COLOR00FF00;STICKLINE(VAR1<20,VAR1,VAR1,8,1),COLORYELLOW;ABV:=MA(SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL, 0)),0)/25000,2);M1:=EMA(ABV,12);M2:=EMA(ABV,26);MTM:=CLOSE-REF(CLOSE,1);MMS:=((100)*(EMA(EMA(MTM,6),6)))/(EMA(EMA(ABS(MTM),6),6));MMM:=((100)*(EMA(EMA(MTM,12),12)))/(EMA(EMA(ABS(MTM),12),12)); MML:=((100)*(EMA(EMA(MTM,26),26)))/(EMA(EMA(ABS(MTM),26),26)); MTGJ:=C-REF(C,1);ZLGJ:=100*EMA(EMA(MTGJ,9),9)/EMA(EMA(ABS(MTGJ),9),9);MAZL:=MA(ZLGJ,5);A:=((VOL)/(CAPITAL))*(100);S:=((MA(A,30))/(MA(INDEXA,10)))*(MA(INDEXA,60));Y:=((MA(A,120))/(MA(INDEXA,10)))*(MA(INDEXA,60));X:=1;V1:=(HIGH+OPEN+LOW+(2)*(CLOSE))/(5);V2:=REF(V1,1);V3:=MAX(V1-V2,0);V4:=ABS(V1-V2);V5:=SMA(V3,10,1);V6:=SMA(V4,10,1);V8:=COUNT(((V5)/(V6)<0.2),5);V9:=COUNT((LLV(V1,10)=V1),10);主力进出:IF((MMS>REF(MMS,1) AND ZLGJ>REF(ZLGJ,1) AND CROSS(ABV,M2) AND ABV>REF(ABV,1) AND M1>REF(M1,1) AND M2>REF(M2,1)),65,0),COLORWHITE,POINTDOT;主进主轨:=ABV>M2 AND CROSS(ABV,M1) AND CROSS(ZLGJ,MAZL); STICKLINE(主力进出OR 主进主轨,65,0,4,1),COLORWHITE;精准买卖:=V8>=1 AND V9>=1 AND CLOSE>OPEN AND REF(CLOSE,1)>REF(OPEN,1) AND (VOL>REF(VOL,1)) AND MMS>MML AND CROSS(ABV,M2);短线买点:=V8>=1 AND V9>=1 AND CLOSE>OPEN AND REF(CLOSE,1)>REF(OPEN,1) AND (VOL>REF(VOL,1)) AND CROSS(MMS,MML) AND ABV>REF(ABV,1);中线买点:=V8>=1 AND V9>=1 AND CLOSE>OPEN ANDREF(CLOSE,1)>REF(OPEN,1) AND (VOL>REF(VOL,1)) AND ABV>REF(ABV,1) AND MMS>MML AND CROSS(MMM,MML) AND MMS>REF(MMS,1) AND MMM>REF(MMM,1) AND MML>REF(MML,1);主进主买:=ABV>M2 AND ZLGJ>MAZL AND CROSS(MMS,MML) AND MMS>REF(MMS,1) AND MMM>REF(MMM,1) AND MML>REF(MML,1);短中精:=精准买卖OR 短线买点OR 中线买点OR 主进主买;主力买卖:IF(短中精,60,0),COLORFF00FF,POINTDOT;STICKLINE(主力买卖,60,0,4,1),COLORFF00FF;主力轨迹:IF(ABV>M2 AND MMS>MML AND CROSS(ZLGJ,MAZL) AND ZLGJ>REF(ZLGJ,1) AND MAZL>REF(MAZL,1),55,0),COLORFFCC66,POINTDOT; STICKLINE(主力轨迹,55,0,4,1),COLORFFCC66;拉升在即:IF(S<X AND Y<X AND MMS>MML AND ABV>M1 AND CROSS(S,Y),50,0),COLORYELLOW,POINTDOT;STICKLINE(拉升在即,50,0,4,1),COLORYELLOW;底部构成:IF(V8>=1 AND V9>=1 AND CLOSE>OPEN AND REF(CLOSE,1)>REF(OPEN,1) AND VOL>REF(VOL,1) AND ABV>M2 AND ZLGJ>MAZL,45,0),COLOR00FF00,POINTDOT;STICKLINE(底部构成,45,0,4,1),COLOR00FF00;ROC:=(CLOSE-REF(CLOSE,12))/REF(CLOSE,12)*100;HSL:=100*VOL/CAPITAL;冲击波:IF(CROSS(ROC,16) AND HSL>3.5,40,0),COLOR0099FF,POINTDOT; STICKLINE(冲击波,40,0,4,1),COLOR0099FF;。

主力拉升【副图 指标】通达信指标公式源码

主力拉升【副图 指标】通达信指标公式源码

主力拉升【副图指标】RSV:=(CLOSE - LLV(LOW,18))/(HHV(HIGH,18) - LLV(LOW,18))*100;K:EMA(RSV,3);D:EMA(K,3);J:=(3*K-2*D);火山:IF(J<=0,-J*5,0),LINETHICK0;STICKLINE(J<=0,0,火山,2,0),COLORRED;KDJ1:=REF(COUNT(J<REF(J,1),5)>=3,1) AND REF(J,1)<20;KDJ2:=J>REF(J,1);反转:IF(FILTER(KDJ1 AND KDJ2,3),30,0);VAR1:=1;VAR3:=LLV(HIGH,240);VAR4:=100*(CLOSE-VAR3)/VAR3*VAR1;VAR5:=REF(LLV(CLOSE,480),1)*VAR1;VAR6:=REF(HHV(CLOSE,480),1)*VAR1;VAR7:=100*(CLOSE-VAR5)/(VAR6-VAR5)*VAR1;VAR8:=(CLOSE-LLV(CLOSE,981))/(HHV(CLOSE,981)-LLV(CLOSE,981))*100*VAR1; VAR9:=(CLOSE-LLV(CLOSE,393))/(HHV(CLOSE,393)-LLV(CLOSE,393))*100*VAR1; VARA:=(CLOSE-LLV(LOW,981))/(HHV(HIGH,981)-LLV(LOW,981))*100*VAR1; VARB:=(CLOSE-LLV(LOW,393))/(HHV(HIGH,393)-LLV(LOW,393))*100*VAR1; VARC:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),5)/4*VAR1; VARD:=IF(VARC>23.16,VARC,0)*VAR1;VARE:=VARC<1*VAR1;VARF:=VARD*VAR1;VAR10:=VAR4<0 AND VAR7<0;VAR11:=1;VAR12:=(HIGH+LOW+CLOSE*2)/4*VAR11;VAR13:=EMA(VAR12,21);VAR14:=STD(VAR12,21);VAR15:=((VAR12-VAR13)/VAR14*100+200)/4*VAR11;VAR16:=(EMA(VAR15,89)-25)*1.56*VAR11;VAR17:=EMA(VAR16,5)*1.22*VAR11;VAR18:=EMA(VAR17,3)*VAR11;VAR19:=3*VAR17-2*VAR18*VAR11;VAR1A:=IF(CROSS(VAR19,VAR17) AND CROSS(VAR19,VAR18) ANDCROSS(VAR17,VAR18),1,0);VAR1B:=IF(CROSS(VAR17,VAR19) AND CROSS(VAR18,VAR19) ANDCROSS(VAR18,VAR17),1,0);买点: IF(FILTER(VAR8=0 AND VARE AND VAR10 AND VAR1A,5)=1,50,0);卖点: IF(FILTER(VAR8=100 AND VARF AND VAR1B,5)=1,50,0);VAR1C:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),13)/4*VAR 1;VAR1D:=EMA(CLOSE,2)-EMA(CLOSE,89)*VAR1;VAR1E:=EMA(VAR1D,30)*VAR1;VAR1F:=2*(VAR1D-VAR1E)*10*VAR1;VAR20:=POW(VAR1F,3)*0.1+POW(VAR1F,2)*VAR1;VAR21:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));VAR22:=EMA(VAR21*0.97,3)*VAR1;VAR23:=(HIGH+LOW+CLOSE)/3*VAR1;VAR24:=(VAR23-MA(VAR23,14))/(0.015*AVEDEV(VAR23,14))*VAR1; VAR25:=IF(VAR1F>0.015,VAR20,0)/45*VAR1;拉升资金: VAR25,COLORRED;VAR26:=EMA(CLOSE,2)-EMA(CLOSE,150);VAR27:=EMA(VAR26,100);VAR28:=2*(VAR26-VAR27);VAR29:=POW(VAR28,3)*0.1+POW(VAR28,1);VAR2A:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));VAR2B:=EMA(VAR2A*0.97,3);VAR2C:=(HIGH+LOW+CLOSE)/3;VAR2D:=(VAR2C-MA(VAR2C,14))/(0.015*AVEDEV(VAR2C,14));主力资金: IF(VAR28>0.1,VAR29,0)*5;。

主力拉升信号指标公式

主力拉升信号指标公式

主力拉升信号指标公式1. 原理。

- MACD(Moving Average Convergence Divergence)即指数平滑异同移动平均线,是一种常用的技术分析指标。

底背离是指股价创新低,但MACD指标中的DIF(差离值)或DEA(异同平均数)没有创新低,这可能暗示股价即将反转向上,是主力可能拉升的信号。

2. 公式代码。

DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);DEA := EMA(DIFF,9);MACD := 2*(DIFF - DEA);LOWV := LLV(LOW,9);HIGHV := HHV(HIGH,9);RSV := EMA((CLOSE - LOWV)/(HIGHV - LOWV)*100,3);K := EMA(RSV,3);D := MA(K,3);A1 := REF(CLOSE,1);A2 := SMA(MAX(CLOSE - A1,0),7,1)/SMA(ABS(CLOSE - A1),7,1)*100;// 寻找股价创新低但MACD未创新低的情况。

底背离: REF(CLOSE,1)>CLOSE AND DIFF>REF(DIFF,1);在这个公式中:- 首先计算MACD指标的各个组成部分(DIFF、DEA和MACD值)。

- 然后计算了RSV、K和D值(这部分主要是为了后续可能的综合判断,可根据实际情况调整或去除)。

- 接着计算了A2(一种类似短期超卖指标,也是为了综合判断)。

- 最后通过“底背离: REF(CLOSE,1)>CLOSE AND DIFF>REF(DIFF,1);”这一语句来确定底背离情况,即前一日收盘价高于当日收盘价(股价创新低),同时DIFF值大于前一日的DIFF值(MACD未创新低)。

1. 原理。

- 当股价上涨时,如果成交量同步放大,这往往是主力积极买入推动股价上升的信号。

一般来说,成交量的放大意味着市场交易活跃,有较大的资金流入。

通达信量能主升捕捉黑马主图公式源码

通达信量能主升捕捉黑马主图公式源码

通达信量能主升捕捉黑马主图公式
这是我自己常用的成交量买卖公式,经常会抓到你想要的牛股
公式原理:一支股票好与不好,成交量是关键,放量了股价也创新高了,这样的股票做中长线百分之百不亏,直到在顶部放巨量了赶紧跑吧,不管后面再如何涨,都是主力在为了出货而拉升股价
关注量爆出现后突破量爆的最高价
ZT:=REF(C,1)*1.1-C<0.01 AND H=C;
STICKLINE( ZT,C,O,2,0),COLORYELLOW;
走强线:EMA(COST(99),181),COLORYELLOW,LINETHICK2;
巨量平台:REF(H,BARSLAST(V=HHV(VOL,120))),COLORRED,LINETHICK2;
XG:= NOT(REF(巨量平台,1)=巨量平台) AND ZT;
DRAWTEXT(XG,L,'量爆'),COLORCYAN;
主升:=CROSS(C,巨量平台);
DRAWTEXT(主升,L,'↖主升'),COLORYELLOW;
DRAWTEXT(主升AND ZT,L,'↖超级主升'),COLORRED;。

通达信抄底指标源码主力进场主力拉升

通达信抄底指标源码主力进场主力拉升

通达信抄底指标源码主力进场主力拉升通达信抄底指标源码主力进场主力拉升一、引言在股票市场中,抄底是指投资者在股票价格下跌到一个相对较低的水平时,以较低的价格买入股票,以期待未来价格回升获取利润。

而主力进场和主力拉升是指大资金或机构投资者进入市场并推动股价上涨的行为。

本文将介绍通达信抄底指标源码中的主力进场和主力拉升指标。

二、通达信抄底指标源码1. 主力进场指标源码主力进场指标是通过分析成交量和价格走势来判断大资金或机构投资者是否进入市场。

以下是通达信抄底指标源码中的一个示例:```MA5:MA(CLOSE,5);MA10:MA(CLOSE,10);VOL_MA5:MA(VOL,5);VOL_MA10:MA(VOL,10);// 计算主力进场信号IF(MA5 > MA10 AND VOL_MA5 > VOL_MA10, 1, 0);```上述代码中,首先计算了收盘价的5日移动平均线(MA5)和10日移动平均线(MA10),以及成交量的5日移动平均线(VOL_MA5)和10日移动平均线(VOL_MA10)。

然后通过判断MA5是否大于MA10,并且VOL_MA5是否大于VOL_MA10来确定主力进场信号。

如果满足条件,则输出1,表示主力进场;否则输出0,表示非主力进场。

2. 主力拉升指标源码主力拉升指标是通过分析成交量和价格走势来判断大资金或机构投资者是否在推动股价上涨。

以下是通达信抄底指标源码中的一个示例:```REF_HIGH:REF(HIGH,1);REF_LOW:REF(LOW,1);UP:IF(CLOSE>REF_HIGH,1,0);DOWN:IF(CLOSE<REF_LOW,-1,0);// 计算主力拉升信号IF(SUM(UP,5)>3 AND SUM(DOWN,5)<-3, 1, 0);```上述代码中,首先计算了前一天的最高价(REF_HIGH)和最低价(REF_LOW)。

实战指标之【拉升进入主图】与【选股公式】通达信指标公式源码

实战指标之【拉升进入主图】与【选股公式】通达信指标公式源码

{拉升进入主图}A6:EMA(CLOSE,5),COLORGREEN;A10:EMA(CLOSE,10),COLORGREEN;RJ:(C+O)*1/2;STICKLINE(A6>REF(A6,3),A6,REF(A6,1),1,1),COLORRED;STICKLINE(A6<REF(A6,3),A6,REF(A6,1),1,1),COLORGREEN;IF(C>A6,A6,DRAWNULL),COLORWHITE,LINETHICK2;IF(C>A10,A10,DRAWNULL),COLORRED,LINETHICK2;JJJ:=IF(DYNAINFO(8)>0.01,0.01*DYNAINFO(10)/DYNAINFO(8),DYNAINFO(3)); DDD:=(DYNAINFO(5)<0.01 || DYNAINFO(6)<0.01);JJJT:=IF(DDD,1,(JJJ<(DYNAINFO(5)+0.01) && JJJ>(DYNAINFO(6)-0.01)));CYC1:IF(JJJT,0.01*EXPMA(AMOUNT,6)/EXPMA(VOL,6),EMA((HIGH+LOW+CLOSE)/3,6)),C OLORGREEN;CYC2:IF(JJJT,0.01*EXPMA(AMOUNT,8)/EXPMA(VOL,8),EMA((HIGH+LOW+CLOSE)/3,8)),C OLORGREEN;CYC3:IF(JJJT,0.01*EXPMA(AMOUNT,34)/EXPMA(VOL,34),EMA((HIGH+LOW+CLOSE)/3,34 ));CYC∞:IF(JJJT,DMA(AMOUNT/(100*VOL),100*VOL/FINANCE(7)),EMA((HIGH+LOW+CLOS E)/3,120));IF(CYC1>REF(CYC1,1) OR C>CYC1,CYC1,DRAWNULL),COLORWHITE,LINETHICK2;IF(C>CYC2,CYC2,DRAWNULL),COLORRED,LINETHICK2;{}B:=CROSS(CYC1>REF(CYC1,1) AND CYC2>REF(CYC2,1) AND CYC3>REF(CYC3,1)AND CYC∞>REF(CYC∞,1) AND C>CYC∞ AND RJ>REF(RJ,1) AND A6>REF(A6,1),0.2);拉升进入:= CROSS(C,CYC∞) AND CYC∞>REF(CYC∞,1) AND CYC1>REF(CYC1,1) AND CYC2>REF(CYC2,1) AND CYC3>REF(CYC3,1);DRAWTEXT(B,LOW-(H-L)*0.6,'升');DRAWTEXT(拉升进入,LOW-(H-L)*0.96,'拉升');{拉升进入选股}A6:=EMA(CLOSE,5),COLORGREEN;A10:=EMA(CLOSE,10),COLORGREEN;RJ:=(C+O)*1/2;{STICKLINE(A6>REF(A6,3),A6,REF(A6,1),1,1),COLORRED;STICKLINE(A6<REF(A6,3),A6,REF(A6,1),1,1),COLORGREEN;}Q1:=IF(C>A6,A6,DRAWNULL),COLORWHITE,LINETHICK2;Q2:=IF(C>A10,A10,DRAWNULL),COLORRED,LINETHICK2;JJJ:=IF(DYNAINFO(8)>0.01,0.01*DYNAINFO(10)/DYNAINFO(8),DYNAINFO(3)); DDD:=(DYNAINFO(5)<0.01 || DYNAINFO(6)<0.01);JJJT:=IF(DDD,1,(JJJ<(DYNAINFO(5)+0.01) && JJJ>(DYNAINFO(6)-0.01)));CYC1:=IF(JJJT,0.01*EXPMA(AMOUNT,6)/EXPMA(VOL,6),EMA((HIGH+LOW+CLOSE)/3,6)) ,COLORGREEN;CYC2:=IF(JJJT,0.01*EXPMA(AMOUNT,8)/EXPMA(VOL,8),EMA((HIGH+LOW+CLOSE)/3,8)) ,COLORGREEN;CYC3:=IF(JJJT,0.01*EXPMA(AMOUNT,34)/EXPMA(VOL,34),EMA((HIGH+LOW+CLOSE)/3, 34));CYC∞:=IF(JJJT,DMA(AMOUNT/(100*VOL),100*VOL/FINANCE(7)),EMA((HIGH+LOW+CL OSE)/3,120));P1:=IF(CYC1>REF(CYC1,1) OR C>CYC1,CYC1,DRAWNULL),COLORWHITE,LINETHICK2; P2:=IF(C>CYC2,CYC2,DRAWNULL),COLORRED,LINETHICK2;B:=CROSS(CYC1>REF(CYC1,1) AND CYC2>REF(CYC2,1) AND CYC3>REF(CYC3,1)AND CYC∞>REF(CYC∞,1) AND C>CYC∞ AND RJ>REF(RJ,1) AND A6>REF(A6,1),0.2);拉升进入:= CROSS(C,CYC∞) AND CYC∞>REF(CYC∞,1) AND CYC1>REF(CYC1,1) AND CYC2>REF(CYC2,1) AND CYC3>REF(CYC3,1);拉升:=IF(A6>REF(A6,1),1,0) ANDCROSS(C,A6),COLORRED;FILTER((拉升=1 AND V*1.5),5),COLORYELLOW;。

主力拉升前量能通达信指标公式源码

主力拉升前量能通达信指标公式源码

主力拉升前量能通达信指标公式源码要计算主力拉升前的量能指标,我们可以使用通达信软件中的公式语言编写相应的指标公式。

主力拉升前的量能指标可分为两部分:主力资金流入指标和成交量放大指标。

主力资金流入指标的计算方法如下:首先,定义主力资金流入(MF)为当前成交价(Close)与上一个交易日收盘价(Previous Close)之差乘以当前成交量(Volume)。

MF = (Close - Previous Close) * Volume接下来,计算N天的主力资金流入平均值(MA)为N天内主力资金流入的累加和除以N。

MA=SUM(MF,N)/N其中,N为主力资金流入平均值的计算周期。

成交量放大指标的计算方法如下:定义放大倍数(DS)为当前成交量(Volume)除以上一个交易日成交量(Previous Volume)。

DS = Volume / Previous Volume接下来,计算N天的成交量放大平均值(MS)为N天内放大倍数的累加和除以N。

MS=SUM(DS,N)/N接下来,计算N天的成交量放大平均值(MS)的平滑平均值(MSA)为N天内成交量放大平均值的累加和除以N。

MA_MS=SUM(MS,N)/N其中,N为成交量放大平均值的计算周期。

最后,定义新的指标为主力资金流入平均值(MA)乘以成交量放大平滑平均值(MA_MS)。

New Indicator = MA * MA_MS整合以上计算方法,可以得到主力拉升前量能指标的通达信指标公式如下:样本维度:日线,N为主力资金流入平均值和成交量放大平均值的计算周期。

主力资金流入指标(MF):MF:=(C-REF(C,1))*V;MA:MA(MF,N);成交量放大指标(DS和MS):DS:=V/REF(V,1);MS:MA(DS,N);MA_MS:MA(MS,N);New Indicator: MA * MA_MS其中,C为收盘价,V为成交量,REF为引用前一交易日的数据,MA 为移动平均。

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

主力拉升前量能xx指标公式源码
成交量:
VOL,COLORWHITE,NODRAW;
V1:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);HY1:=REF(EMA(V1,3),1);
多空趋势:
=(MA((CLOSE - HY1) * 10,2))*0.1;
操盘4:STICKLINE(空趋势=0 AND多空趋势
=REF名空趋势,1),6,6哆空趋势,1.5,0),COLORRE喊仓4:STICKLINE(空趋势=0 AND多空趋势REF彭空趋势,1),6,6哆空趋势,1.5,0), COLORRE咳弹4:STICKLIN廖空趋势0 AND多空趋势
=REF名空趋势,1),6,6哆空趋
势,1.5,0),COLORGREEN;
寻底4:STICKLINE(空趋势0 AND多空趋势REF佟空趋势,1),6,6哆空趋势,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=HF(势=0,6,6.3),多空'),COLORWHITE;
换手:
=V*100/CAPITAL;
主力:
=MA(换手,4);
大户:
=MA(换手,9);
中户:
=MA(换手,17);
散户:
=MA(换手,34);
均量:
=(主力+大户+中户+散户)/4;
主力能量:
(主力-均量)COLORMAGENTA,NODRAVWP能量:
(大户-均量)COLORYELLOW,NODRAW;
中户能量:
(中户-均量)COLORLIBLUE,NODRAW;
散户能量:
(散户-均量)COLORBLUE,NODRAW;
操盘:
STICKLIN氐力能量=0 AND主力能量
=REF企力能量,1),4.5,4.5空力能
量,1.5,0),COLORRED;
减仓:
STICKLIN氐力能量=0 AND主力能量REF拒力能量,1),4.5,4.5空力能量, 1.5,0),COLORRE及弹:
STICKLIN氐力能量0 AND主力能量
=REF企力能量,1),4.5,4.5空力能
S ,1.5,0),COLORGREEN;
寻底:
STICKLIN氐力能量0 AND主力能量REF拒力能量,1),4.5,4.5空力能
量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAF?=^F(量=0,4.2,4.8),机构'),COLORMAGENT臊盘1:STICKLINE(户能量=0 AND大户能量=REF大户能
量,1),3,3+大户能量,1.5,0),COLORRED;
减仓1:STICKLINE(户能量=0 AND大户能量REF大户能量,1),3,3+大户能量,1.5,0),COLORRE及弹1:STICKLINE(户能量0 AND大户能量
=REF大户能量,1),3,3+大户能
量,1.5,0),COLORGREEN;
寻底1:STICKLINE(户能量0 AND大户能量REF大户能量,1),3,3+大户能
量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=HF(量=0,2.7,3.3),大户'),COLORYELLOW;盘2:STICKLINE(户能量=0 AND中户能量=REF中户能
量,1),1.5,1.5+中户能量,1.5,0),COLORRED;
减仓2:STICKLINE(户能量=0 AND中户能量REF中户能量,1),1.5,1.5+中户能量,1.5,0),COLORRE及弹2:STICKLINE(户能量0 AND中户能量
=REF中户能量,1),1.5,1.5+中户能
量,1.5,0),COLORGREEN;
寻底2:STICKLINE(户能量0 AND中户能量REF中户能量,1),1.5,1.5+中户能量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=HF(量=0,1.2,1.8),'中户'),COLORLIBLU操盘3:STICKLINE(户能量=0AND散户能量=REF散户能量,1),0,散户能
量,1.5,0),COLORRED;
减仓3:STICKLINE(户能量=0 AND散户能量REF>户能量,1),0,散户能量,1.5,0),COLORRED;
反弹3:STICKLINE(户能量0 AND散户能量
=REF散户能量,1),0,散户能量,1.5,0),COLORGREEN;底3:STICKLINE (户能量
0 AND散户能量REF散户能量,1),0,散户能
量,1.5,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,
IF(散户能量=0,-0.3,0.3),散户'),
COLORBLUE;。

相关文档
最新文档