股市中波段操作最好用的通达信指标公式(1)

合集下载

做波段很不错的指标通达信指标公式源码

做波段很不错的指标通达信指标公式源码

做波段很不错的指标通达信指标公式源码通达信(TDX)是国内知名的股票分析软件,采用C语言开发。

在TDX中,可以通过编写指标公式实现自定义技术指标。

下面是一个使用通达信指标公式源码实现的简单的波段指标示例。

```javascript#include "stdio.h"//定义波段指标计算函数void BollingerBands(int n, double *close, double *upper_band, double *middle_band, double *lower_band)int i, j;double sum, sum_squares, sd, temp;//计算SMA(简单移动平均线)for(i=n-1; i<total_bars; i++)sum = 0;for(j=i-n+1; j<=i; j++)sum += close[j];}middle_band[i] = sum/n;}//计算标准差for(i=n-1; i<total_bars; i++)sum = 0;sum_squares = 0;for(j=i-n+1; j<=i; j++)temp = close[j] - middle_band[i];sum += temp;sum_squares += temp * temp;}sd = sqrt(sum_squares / n);upper_band[i] = middle_band[i] + 2 * sd;lower_band[i] = middle_band[i] - 2 * sd;}int maiint n = 20; // 计算波段指标使用的周期长度double close[] = {1.2, 1.5, 1.4, 1.6, 1.8, 1.7, 1.9, 1.8, 1.7, 1.6}; // 收盘价数据//计算波段指标double upper_band[10], middle_band[10], lower_band[10];BollingerBands(n, close, upper_band, middle_band, lower_band);//打印波段指标结果printf("Upper Band:\n");for(int i=0; i<10; i++)printf("%.2f ", upper_band[i]);}printf("\n");printf("Middle Band:\n");for(int i=0; i<10; i++)printf("%.2f ", middle_band[i]);}printf("\n");printf("Lower Band:\n");for(int i=0; i<10; i++)printf("%.2f ", lower_band[i]);}printf("\n");return 0;```以上代码实现了一个简单的波段指标计算函数BollingerBands,并在主函数中进行了调用和打印结果。

波段指标——做波段的利器通达信指标公式源码

波段指标——做波段的利器通达信指标公式源码

波段指标——做波段的利器用着还不错。

如果你选好合适的股,短线获利也很丰厚。

GJ:=(C+H+L+O)/4;明日阻力:=L+(GJ-L)+(C-L);明日支撑:=L+(C-GJ);"下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100);""RRRSV:=SMA(下档线,3,1);""KKK:=SMA(RRRSV,3,1);"DDDDD:=((3 * RRRSV) - (2 * KKK));"JJ12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100);" "RSV24:=SMA(JJ12,3,1);""K24:=SMA(RSV24,3,1);"D24:=((3 * RSV24) - (2 * K24));"压力2:=IF(CROSS(D24,DDDDD),HIGH,REF(HIGH,BARSLAST(CROSS(D24,DDDDD)) )),COLORFFFFFF;""底部:=LLV(HIGH,30),COLOR00FF00;""今日阻力:REF(明日阻力, 1),NODRAW;""今日支撑:REF(明日支撑, 1),NODRAW;""压力位:IF(ISLASTBAR,压力2,DRAWNULL),NODRAW;""底部位:IF(ISLASTBAR,底部,DRAWNULL),NODRAW;"" VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);"" VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);"" VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);"" VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);"" VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);"" VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);"" VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);"" VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);"" VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);"" VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);"" VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);"" VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);"" VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);"" VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);"" VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);"" VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);"" VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);"" VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);"" VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);"" VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);"" VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);"" VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);"" VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);"" VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);"" VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1;" "DRAWICON(CROSS(LLV(AMOUNT/V/100,3),L) AND V>REF(V,3) ANDC<O,O*1.1,2);""MA6:EMA(C,6),COLORMAGENTA;""MA18:EMA(C,18),COLORYELLOW;""STICKLINE(MA6>MA18 AND MA6>=REF(MA6,1) ANDMA18>REF(MA18,1),MA6,MA18,0.3,0),COLORRED;""STICKLINE(MA6>MA18 AND MA6<REF(MA6,1) ANDMA18>=REF(MA18,1),MA6,MA18,0.3,0),COLORYELLOW;""STICKLINE(MA6<MA18 AND MA6<=REF(MA6,1) ANDMA18<REF(MA18,1),MA6,MA18,0.3,0),COLORGREEN;""STICKLINE(MA6<MA18 AND MA6>REF(MA6,1) ANDMA18<=REF(MA18,1),MA6,MA18,0.3,0),COLORCYAN;""STICKLINE(MA6>MA18 AND MA6>REF(MA6,1) ANDMA18<=REF(MA18,1),MA6,MA18,0.3,0),COLORMAGENTA;" "STICKLINE(MA6<MA18 AND MA6<REF(MA6,1) ANDMA18>=REF(MA18,1),MA6,MA18,0.3,0),COLORBLUE;""买进:=CROSS(MA6,MA18) AND MA18>=REF(MA18,1);" "DRAWICON(买进,L*0.95,9);""DRAWTEXT(CROSS(85,RSI),(HIGH * 1.02),'S'),COLORCYAN;"。

通达信波段顶底区域指标公式

通达信波段顶底区域指标公式

通达信波段顶底区域指标公式HDY:=EMA (100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3);DRAWBAND(HDY,RGB(255,000,139),10,RGB(255,255,71));STICKLINE(C>0,90,10,10,0),COLOR000000;RSV1:=(CLOSE-LLV(LOW,35))/(HHV(HIGH,35)-LLV(LOW,35))*100;K1:=SMA(RSV1,13,1);D1:=SMA(K1,13,1);STICKLINE(EMA(D1,3)>REF(EMA(D1,3),1),EMA(D1,3),REF(EM A(D1,3),1),8,0),COLORFF5D00;STICKLINE(EMA(D1,3)>REF(EMA(D1,3),1),EMA(D1,3),REF(EM A(D1,3),1),7,0),COLORFF5D10;STICKLINE(EMA(D1,3)>REF(EMA(D1,3),1),EMA(D1,3),REF(EM A(D1,3),1),6,0),COLORFF7710;STICKLINE(EMA(D1,3)>REF(EMA(D1,3),1),EMA(D1,3),REF(EM A(D1,3),1),5,0),COLORFF8810;STICKLINE(EMA(D1,3)>REF(EMA(D1,3),1),EMA(D1,3),REF(EM A(D1,3),1),4,0),COLORFF9910;VA1:=HHV(HIGH,9)-LLV(LOW,9);VA2:=HHV(HIGH,9)-CLOSE;VA3:=CLOSE-LLV(LOW,9);VA4:=VA2/VA1*100-70;VA5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;VA6:=(CLOSE+HIGH+LOW)/3;VA7:=SMA(VA3/VA1*100,3,1);VA8:=LLV(LOW,34);VA9:=SMA(VA7,3,1)-SMA(VA4,9,1);VARA:=IF(VA9>100,VA9-100,0);VARB:=HHV(HIGH,34);VARC:=EMA((VA6-VA8)/(VARB-VA8)*100,13);VARD:=EMA(0.667*REF(VARC,1)+0.333*VARC,2);VARE:=SMA(MAX(CLOSE-REF(CLOSE,1),0)/CLOSE,8,1)/SMA(ABS(INDEXC-REF(INDEXC,1))/INDEXC,8,1)*100-25;VARF:=MA(VARE,3);VAR1:=HHV(HIGH,9)-LLV(LOW,9);VAR2:=HHV(HIGH,9)-CLOSE;VAR3:=CLOSE-LLV(LOW,9);VAR4:=((VAR2)/(VAR1))*(100)-70;VAR5:=((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60)))*(100);VAR6:=((2)*(CLOSE)+HIGH+LOW)/(4);VAR7:=SMA(((VAR3)/(VAR1))*(100),3,1);VAR8:=LLV(LOW,34);VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);VAR10:=IF((VAR9>100),VAR9-100,0);VAR11:=HHV(HIGH,34);B1:=EMA(((VAR6-VAR8)/(VAR11-VAR8))*(100),8);DRAWKLINE(EMA(B1,5),EMA(B1,5),B1+1,B1);V1:=MA(C,5)=HHV(MA(C,5),20);V2:=MA(C,5)>MA(C,10);V3:=MA(V,5)>MA(V,40)*1.01;V4:=COUNT(MA(C,1)>REF(C,1),2)=2;VV:=V1 AND V2 AND V3 AND V4;A1:=EMA(CLOSE,8);A2:=EMA(A1,20);A3:=CROSS(A1,A2);A4:=A1<EMA(CLOSE,120);A5:=3*SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,21,1)-2*SMA(SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,20,1),8,1),CIRCLEDOT ,COLORFF9900 ;安全:=20;VAR18:=HHV(HIGH,30);VAR19:=LLV(LOW,30);VAR44:=REF(CLOSE,1);VAR45:=SMA(MAX(CLOSE-VAR44,0),6,1)/SMA(ABS(CLOSE-VAR44),6,1)*100;。

【炒股必看】通达信众赢波段专家指标公式

【炒股必看】通达信众赢波段专家指标公式

通达信众赢波段专家指标公式T1:=5;T2:=4;P:=((2)*(CLOSE) + HIGH + LOW + OPEN)/(5);BB:=MA(P,3);CC:=(SUM(IF((P > REF(P,1)),(P)*(VOL),0),4))/(SUM(IF((P < REF(P,1)),(P)*(VOL),0),4)); DD:=REF(100 - (100)/(1 + CC),1);A1:=HHV(P,15);A2:=LLV(P,15);A3:=A1 - A2;A4:=(EMA((P - A2)/(A3),2))*(100);B1:=HHV(P,60);B2:=LLV(P,60);B3:=B1 - B2;B4:=(EMA((P - B2)/(B3),2))*(100);C1:=HHV(P,240);C2:=LLV(P,240);C3:=C1 - C2;C4:=(EMA((P - C2)/(C3),2))*(100);长风险:C4,LINETHICK2,COLORAA7755{COLOR443434};中风险:B4,COLOR44AABB,LINETHICK2;短风险:A4,COLORRED;VAR4:=LLV(LOW,T1);VAR5:=HHV(HIGH,T2);散户:=EMA(((P - VAR4)/(VAR5 - VAR4))*(100),T2),LINETHICK2,COLOR3333DD;庄家:=EMA((0.667)*(REF(散户,1)) + (0.333)*(散户),2),LINETHICK2,COLORDDCC00;快线:散户,COLORMAGENTA,LINETHICK2;慢线:庄家,COLORYELLOW,LINETHICK2;警戒线:80,COLORYELLOW;启动线:20,COLORMAGENTA;50,POINTDOT,COLOR00DCDC;IF(FILTER((中风险< REF(中风险,1)) AND (中风险> 90) AND (BB < REF(BB,1)),5),92,100),LINETHICK2,COLOR44BB00;IF(FILTER((中风险> REF(中风险,1)) AND (中风险< 5) AND (CLOSE > REF(CLOSE,1)),5),14,0),LINETHICK2,COLOR2222FF;VAR6:=((HHV(HIGH,4) - P)/(HHV(HIGH,4) - LLV(LOW,4)))*(100) - 72;VAR7:=((P - LLV(LOW,4))/(HHV(HIGH,4) - LLV(LOW,4)))*(100);VAR8:=SMA(VAR7,2,1);DRAWTEXT(CROSS(散户,庄家) AND (散户< 50) AND (25 < 散户),20,8),COLORRED; DRAWTEXT(CROSS(庄家,散户) AND (散户> 40) AND (71 > 散户),70,9),COLORFF0000;DRAWTEXT(CROSS(散户,庄家) AND (散户< 30),30,10),COLORRED;DRAWICON(CROSS(散户,庄家) AND (散户< 30),20,5),COLORYELLOW;DRAWICON(CROSS(庄家,散户) AND (庄家> 73),80,6),COLORFF00FF;VAR9:=CLOSE - REF(CLOSE,5);VARA:=((EMA(EMA(VAR9,5),5))/(EMA(EMA(ABS(VAR9),5),5)))*(100);VARB:=((EMA(EMA(VAR9,10),10))/(EMA(EMA(ABS(VAR9),10),10)))*(100);VARC:=((EMA(EMA(VAR9,20),20))/(EMA(EMA(ABS(VAR9),20),20)))*(100);卖出:=IF((VARA > 0) AND CROSS(VARC,VARA),10,0);{DRAWICON((卖出> 0),60,19),COLOR00FF00;}CCI:=((P - MA(P,14))*(100))/((1.5)*(AVEDEV(P,14)));RSI1:=((SMA(MAX(CLOSE - REF(CLOSE,1),0),6,1))/(SMA(ABS(CLOSE - REF(CLOSE,1)),6,1)))*(100);STICKLINE((CCI > 100),106,100,2,0),COLOR00AC00;STICKLINE((RSI1 > 80),103,100,2,0),COLORBLUE;STICKLINE((CCI < (-100)),(-6),0,2,0),COLORYELLOW;STICKLINE((RSI1 < 25),(-3),(-0),2,0),COLORMAGENTA;D1:=(中风险> REF(中风险,1)) AND (短风险> REF(短风险,1)) AND (长风险> REF(长风险,1))AND (长风险< 8) AND (中风险< 10) AND (短风险< 15);D2:=CROSS(短风险,中风险) AND (中风险< 8);D3:=CROSS(短风险,长风险) AND (长风险< 8) AND (中风险< 20);DRAWICON(FILTER(D1 OR D2 OR D3 AND (DD < 15)AND (CLOSE > REF(CLOSE,1)),5),8,25);DRAWICON(FILTER((中风险< REF(中风险,1)) AND (短风险< REF(短风险,1))AND (长风险< REF(长风险,1)) AND (中风险> 95) AND (短风险> 85)OR (长风险> 100) AND (中风险> 100) AND (短风险> 100),5),95,23);。

通达信波段指标公式

通达信波段指标公式

通达信波段指标公式一、KDJ指标:1.K值=(2*移动平均线(n日内最高价+最低价之和)/3-最低价)/(最高价-最低价)×1002.D值=移动平均线(K值)3.J值=3*K值-2*D值二、MACD指标:1、DIF=短期EMA(12)-长期EMA(26)2、DEA=移动平均线(DIF)3、BAR=(DIF-DEA)*2三、RSI指标:1、RSI=100*(n日内上涨点数的总和/n日内上涨及下跌点数之和)2、RSI=100*(n日内上涨点数的总和/n日内上涨点数的总和+n日内下跌点数的总和)四、CCI指标:1、中心线=(n日内最高价+n日内最低价+收盘价之和)/32、偏差平均值=(n日内(最高价-中心线)+n日内(最低价-中心线)+n日内(收盘价-中心线))/n3、CCI=(收盘价-中心线)/偏差平均值/0.015五、OBV指标:1、OBV=前一日的OBV+(当日的收盘价-前一日的收盘价)*成交量2、OBV=前一日的OBV-(前一日的收盘价-当日的收盘价)*成交量六、多空对比指标:1、多空对比指标=(近n日内多头持仓量/近n日内多头持仓量+空头持仓量)×1002、多空对比指标=(今天多头持仓量/今天多头持仓量+昨天空头持仓量)×100七、能量潮指标:1、能量潮=(今日收盘价-过去20日最低价之差)/(过去20日最高价-过去20日最低价之差)×1002、能量潮=(今日最高价-过去20日最低价之差)/(过去20日最高价-过去20日最低价之差)×100八、随机指标:1、K值=50*(当日最高价-当日开盘价)/(当日最高价-当日最低价)+50*(当日最低价-当日开盘价)/(当日最高价-当日最低价)2、D值=移动平均线(K值)3、J值=3*K值-2*D值。

通达信波段抓牛股选股公式

通达信波段抓牛股选股公式

通达信波段抓牛股选股公式个人常用的一个波段选股公式(带指标副图),经测试比较准,分享给大家。

E13:=EXPMA(C,13);M8:=MA(C,8);M21:=MA(C,21);M233:=MA(C,233);E10:=EXPMA(C,10);ZZT:=C/REF(C,1)>1.095 AND C=H;ZA:=BARSLASTCOUNT(ZZT);ZT:=BARSLAST(CROSS(ZA=3,0.5));ZLL:=REF(L,(ZT+2));ZTJ:=C<ZLL;ZAA:=COUNT(ZTJ,ZT+1)=1 AND ZTJ;ZTA:=BARSLAST(ZAA);ZLT:=BARSLAST(L=LLV(L,ZTA+1));ZTJ1:=CROSS(C,E10);ZXG:=COUNT(ZTJ1,ZLT+1)=1 AND ZTJ1 AND TOTALBARSCOUNT>200;HA:=M8/M21*100;HTJ:=BARSLASTCOUNT(RANGE(HA,99.9,100.3));HHB:=MAX(C,O)/MIN(C,O)*100-100;HTJ1:=BARSLASTCOUNT(HHB<2);HZF:=(HHV(H,5)-LLV(L,5))/LLV(L,5)*100;HDZF:=(H-L)/REF(C,1)*100;HTJ2:=COUNT(MIN(C,O)/L>1.03,5)=0;HTJ3:=COUNT(H<REF(L,1),5)=0;HTJ4:=C>M233;HXG:=HTJ>4 AND HTJ1>4 AND HZF<10 AND HTJ2 AND HTJ3 AND HTJ4;ZF:=(C-REF(C,1))/REF(C,1)*100;TJ:=EVERY(RANGE(ZF,-2.22,2.55),15);TJ1:=C>O AND C/REF(C,1)>1.03;TJ2:=COUNT(E13>=REF(E13,1),15);JD:=(ATAN((E13/REF(E13,15)-1)*100)*180/3.1415926);A:=IF(MIN(C,O)>E13,MAX(C,O)/E13*100-100,IF(MAX(C,O)<E13,E13/MIN(C,O),E13));B:=MAX(C,O)/MIN(C,O)*100-100;LL:=LLV(A,15);HH:=HHV(A,15);HB:=COUNT(BB>3,15)<2;XG:=REF(TJ,1) AND TJ1 AND TJ2>13 AND JD>72 AND REF(LL,1)<1.37 AND REF(HH,1)<11.15;WT:=BARSLAST(WEEKOFYEAR!=REF(WEEKOFYEAR,1));C1:=REF(C,WT+1);C2:=REF(C1,WT+1);C3:=REF(C2,WT+1);C4:=REF(C3,WT+1);C5:=REF(C4,WT+1);C6:=REF(C5,WT+1);C7:=REF(C6,WT+1);C8:=REF(C7,WT+1);C9:=REF(C8,WT+1);WM10:=(C+C1+C2+C3+C4+C5+C6+C7+C8+C9)/10;E20:=EXPMA(C,20);E120:=EXPMA(C,120);E250:=EXPMA(C,250);WA:=MACD.DIF;WB:=MACD.DEA;WT1:=BARSLAST(CROSS(WA,WB));WST:=BARSLAST(CROSS(WB,WA));WZF:=(HHV(H,110)-LLV(L,110))/LLV(L,110)*100;WTJ:=EVERY(V>REF(V,1),2);WHH:=MAX(MAX(E20,E120),E250);WLL:=MIN(MIN(E20,E120),E250);WNH:=WHH/WLL*100-100;WTJ1:=EVERY(WNH<40,25);WZZF:=(C-REF(C,10))/REF(C,10)*100 ;WTJA:=C>WM10;WXG:=WT1=0 AND WA<REF(WA,WST) AND WB<REF(WB,WST) AND WZF<70 AND WTJ AND WTJ1 AND WZZF<1.4 AND WTJA;M5:=MA(C,5);M10:=MA(C,10);M15:=MA(C,15);FTJ:=M5>REF(M5,1) AND M10>REF(M10,1) AND M15>=REF(M15,10);FT:=BARSLAST(CROSS(FTJ,0.5));FTT:=BARSLAST(WEEKOFYEAR!=REF(WEEKOFYEAR,1));FHH:=MAX(MAX(M5,M10),M15);FLL:=MIN(MIN(M5,M10),M15);FNH:=FHH/FLL*100-100;FZZF:=(C-REF(C,FTT+1))/REF(C,FTT+1)*100;FZZF1:=REF(FZZF,FTT+1);FTJ2:=CROSS(FZZF>20,0.5) OR CROSS(FZZF1>20,0.5);FJD:=(ATAN((M5/REF(M5,1)-1)*100)*180/3.1415926);FTJA:=FZZF1>0 AND FZZF1>0 ;FDT:=M10/M15*100-100>1 AND H/MAX(C,O)<1.03;FBL:=MIN(C,O)/M5;FBL5:=M5/M10*100-100;FXG:=FTJ2 AND C=HHV(C,5) AND BETWEEN(FT,0,5)AND FTJA AND FNH<12 AND FDT AND FBL<1.045 AND FBL5<7.2 AND FJD<77.5;DTJ:=O>REF(H,1) AND C<O AND O/C<C/L AND V>REF(V,1);DTT:=BARSLAST(REF(ZA>1,1) AND DTJ);DXG:=COUNT(CROSS(C,REF(H,DTT)),DTT+1)=1 AND CROSS(C,REF(H,DTT));QT:=BARSLAST(C>REF(C,1)*1.095 AND C=H);QTJ:=(C-REF(C,QT+1))/REF(C,QT+1)*100;QTJ1:=EVERY(C<O,QT);QTJ2:=COUNT(REF(C,1)/C>1.09,QT)>0 AND REF(C,1)/C>1.09;QA:=QTJ>-1 AND QTJ1 AND QTJ2;QTA:=BARSLAST(QA);QHH:=REF(H,QTA);QTJ3:=EVERY(MAX(C,O)<QHH,QTA);QTJ4:=MIN(C,O)<QHH AND MAX(C,O)>QHH AND COUNT(MIN(C,O)<QHH AND MAX(C,O)>QHH,QTA)=1;QTJ5:=REF(QTJ3,1) AND QTA<69 AND IF(C<O,O/QHH>1.007,C>O) AND IF(C<O,REF(C,1)/C<1.06,C>O);QXG:=QTJ4 AND QTJ5;DIF:=MACD.DIF;H300:=HHVBARS(DIF,300);IA:=BOLL.UB;IT:=BARSLAST(CROSS(IA>=REF(IA,1),0.5));E25:=EXPMA(C,25);IZF:=EVERY(RANGE(C/REF(C,1),0.97,1.05),IT+1);IZFF:=(HHV(H,IT+1)-LLV(L,IT+1))/LLV(L,IT+1)*100;ITJ:=EVERY(MAX(C,O)/IA<1.02 ,IT+1);IXL:=(ATAN((E25/REF(E25,IT)-1)*100)*180/3.1415926);ITJ1:=CROSS(DIF>=REF(DIF,H300),0.5) AND IZFF<17 AND IZF AND ITJ;ITJ2:=MIN(C,O)/E25>1.04;IXG:=ITJ1 AND IXL>75;LT8:=LLVBARS(L,60);LTT8:=BARSLAST(CURRBARSCOUNT=CONST(LT8)+1);HT8:=FINDHIGHBARS(H,LT8+1,60,1);A8:=DRAWLINE(CURRBARSCOUNT=CONST(HT8)+1,H,ISLA STBAR,REF(H,HT8),0);TT8:=BARSLAST(CURRBARSCOUNT=CONST(HT8)+1);AA8:=CROSS(C,CONST(A8));TJ8:=COUNT(AA8,TT8+1)=1 AND AA8;TJ18:=COUNT(V<MA(V,277),TT8+1) ;BL8:=TJ18/(TT8+1)*100;XG8:=TJ8 AND TT8>40 AND BL8>70;XGT8:=BARSLAST(CURRBARSCOUNT=CONST(BARSLAST(X G8))+1);ZH8:=REF(H,TT8);YL8:=REF(L,LTT8);XC8:=REF(C,XGT8);YZ8:=(XC8-YL8)/YL8*100;ZBL8:=YZ8/REF(LTT8,XGT8);XGA8:=XG8 AND ZBL8<2.95;SNH:=E120/E250*100-100;STA:=EVERY(SNH<3 AND E120>E250,20);STB:=CROSS(E20,MAX(E120,E250));STC:=MIN(C,O)/E20<1.08;SXG:=STB AND STA AND STC;联合选股:ZXG OR HXG OR XG OR WXG OR FXG OR QXG OR IXG OR XGA8 OR SXG OR DXG;。

通达信指标公式源码波段鬼王指标公式

通达信指标公式源码波段鬼王指标公式

通达信波段鬼王指标公式{Z波段鬼王Z}VAR4:=100-ABS((C-MA(C,13))/MA(C,13)*100);VARC:=100-KDJ.J(75,20,15);看我实力:(100-KDJ.J(75,20,15)),LINETHICK6,COLORRED ;散户:MA(WINNER(CLOSE*0.95)*100,3),COLORYELLOW;新庄:(100-IF(1/WINNER(C)>5,IF(1/WINNER(C)<100,1/WINNER(C),VAR4-10),0) ), ,COLORGREEN;VARD:=散户>VAR4;VARE:=REF(L,1)*0.9;VARF:=LOW*0.9;VAR10:=(VARF*V+VARE*(CAPITAL-V))/CAPITAL;VAR11:=EMA(VAR10,30);VAR15:=RSI.RSI1(7,13,13);VAR16:=RSI.RSI2(7,13,13);VAR17:=BARSCOUNT(C);VAR19:=100-2*WR.WR1(60,60);VAR1B:=SMA((KDJ.K(15,4,4)-50)*2,3,1);VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100; VAR1D:=SMA(VAR1C,4,1);VAR1E:=SMA(VAR1D,3,1);VAR1F:=(HHV(H,30)-C)/C*100;VAR20:=RSI.RSI1<=25 AND VAR19<-95 AND VAR1F>20 AND VAR1B<-30 AND VAR1E<30 AND VAR11-CLOSE>=-0.25 AND VAR15<22 AND VAR16<28 AND VAR17>50;VAR22:=((H+L+C)/3-MA((H+L+C)/3,14))/(0.015*AVEDEV((H+L+C)/3,14)); VAR23:=((H+L+C)/3-MA((H+L+C)/3,70))/(0.015*AVEDEV((H+L+C)/3,70)); VAR24:=IF(VAR22>=150 AND VAR22<200 AND VAR23>=150 ANDVAR23<200,10,0);VAR25:=IF(VAR22<=-150 AND VAR22>-200 AND VAR23<=-150 ANDVAR23>-200,-10,VAR24);绝处逢生: IF(VAR23>=200 AND VAR22>=150,15,IF(VAR23<=-200 AND VAR22<=-150,-15,VAR25))+50,LINETHICK2,CROSSDOT;STICKLINE(VARD,VAR4,散户,5,0), , COLORRED;STICKLINE(1,散户,0,1,0), ,COLORYELLOW;STICKLINE(1,新庄,100,1,0), , COLORGREEN;STICKLINE(VAR20,0,80,5,0),LINETHICK3,COLORRED,;DRAWTEXT(CROSS(VAR20,0.5) AND COUNT(VAR20=1,10)=1,60,'有钱不赚傻!'),LINETHICK7 , COLORYELLOW;DRAWTEXT(CROSS(VARD,0.5) AND COUNT(VARD=1,10)=1,70,'**我走啦!!!'),LINETHICK7 , COLORGREEN;波段王:KDJ.D(27,3,3),LINETHICK2 ;波段鬼: SMA(KDJ.D(27,3,3),3,1),LINETHICK2 , COLORYELLOW;地狱: IF(CROSS(波段王,波段鬼) AND 波段王<40,35,0),LINETHICK2 , COLORRED;天堂: IF(CROSS(波段鬼,波段王) AND 波段鬼>75,70,100),LINETHICK2 , COLORGREEN;DRAWTEXT(CROSS(波段王,波段鬼) AND 波段王<40,25,'逢低吸呐'),LINETHICK4 , COLORWHITE;DRAWTEXT(CROSS(波段鬼,波段王) AND 波段鬼>75,85,'减磅是老师!'),LINETHICK4 ;。

非常有用的通达信波段买点选股指标公式

非常有用的通达信波段买点选股指标公式

非常有用的通达信波段买点选股指标公式
通达信是国内股票交易软件中较为常用的一款,有着丰富的技术指标供投资者
使用。

针对波段交易中的买点选股,通达信也提供了一些非常有用的指标公式。

以下是一些经常被投资者使用的通达信波段买点选股指标公式:
1. MACD指标公式:MACD指标是一种经典的趋势指标,可以帮助投资者判
断买入和卖出的时机。

在通达信中,MACD指标公式为:MACD(12,26,9);通过观
察MACD线和信号线的金叉和死叉情况,投资者可以判断股票的买点。

2. KDJ指标公式:KDJ指标是一种颇具实用性的波段买点指标,通达信中的KDJ指标公式为:KDJ(9,3,3);KDJ指标通过计算股票的随机值,判断买点与卖点。

当K线低于20时,为买入信号。

3. 均线穿越指标公式:均线穿越也是一种较为常用的技术指标,在通达信中可
以通过公式实现。

比如,当短期均线(如5日均线)上穿长期均线(如20日均线)时,为买入信号。

4. 成交量指标公式:在波段买点选股中,成交量是非常重要的参考因素之一。

通达信中提供了成交量指标公式,可以计算股票的成交量变化情况。

投资者可以关注成交量的放大情况,结合价格走势,判断波段买点。

以上所列举的通达信波段买点选股指标公式是投资者常用的一些指标,通过对
这些指标的综合应用与分析,可以辅助投资者判断买卖时机,提高投资成功的概率。

当然,投资决策应该综合考虑市场情况,不同股票的特点以及个人风险偏好等因素。

通达信波段选股指标公式(一)

通达信波段选股指标公式(一)

通达信波段选股指标公式(一)通达信波段选股指标公式本文列举了通达信波段选股指标公式的相关公式,并通过举例进行解释说明。

1. 移动平均线指标 (MA)移动平均线指标是一种常用的技术指标,用于平滑价格曲线,帮助判断股票价格的趋势以及买卖点。

•公式:MA(N) = (C + C1 + C2 + … + C(N-1)) / N 其中,MA表示移动平均线,N表示计算周期,C表示收盘价。

例子:假设我们选取5日移动平均线指标,计算周期为5天。

若股票收盘价连续5天分别为10、12、15、14、16元,则第5天的5日移动平均线指标为(10 + 12 + 15 + 14 + 16) / 5 = 元。

2. 相对强弱指标 (RSI)相对强弱指标是一种用于测量价格变动强弱的指标,帮助判断股票的超买超卖情况。

•公式:RSI = 100 * (1 - 1 / (1 + RS)) 其中,RSI表示相对强弱指标,RS表示相对强度,计算方式为上涨日总涨幅 / (上涨日总涨幅 + 下跌日总跌幅)。

例子:假设过去14个交易日中,上涨日的总涨幅为300点,下跌日的总跌幅为200点。

则相对强弱指标RSI = 100 * (1 - 1 / (1 + 300 / (300 + 200))) = 60。

3. MACD指标MACD指标是一种用于测量股票趋势以及判断买卖点的指标。

•公式1:DIF = DEA - DEA9 其中,DIF表示差离值,DEA表示DIF的移动平均值,DEA9表示DEA的9日移动平均值。

•公式2:MACD = 2 * (DIF - DEA) 其中,MACD表示指数平滑异同平均线。

例子:假设DIF的移动平均值DEA为12,DEA的9日移动平均值DEA9为10,则MACD = 2 * (12 - 10) = 4。

4. 布林线指标 (BOLL)布林线指标是一种通过计算股票价格标准差确定股票价格波动的指标。

•公式1:MID = MA(N) 其中,MID表示中线,MA表示移动平均线,N表示计算周期。

通达信中线波段极准指标公式-

通达信中线波段极准指标公式-

通达信中线波段极准指标公式-通达信中线波段极准指标公式标签: 波段中线该指标适合中长线,出现红色柱子买入的信号比较少,有选股公式VAR1:=1;VAR2:=1/WINNER(CLOSE);VAR3:=MA(CLOSE,13);VAR4:=100-ABS((CLOSE-VAR3)/VAR3*100);VAR5:=LLV(LOW,75);VAR6:=HHV(HIGH,75);VAR7:=(VAR6-VAR5)/100;VAR8:=SMA((CLOSE-VAR5)/VAR7,20,1);VAR9:=SMA((OPEN-VAR5)/VAR7,20,1);VARA:=3*VAR8-2*SMA(VAR8,15,1);VARB:=3*VAR9-2*SMA(VAR9,15,1);VARC:=100-VARB;主力: (100-VARA)*VAR1,COLOR0099FF;散户: MA(WINNER(CLOSE*0.95)*100,3)*VAR1,COLORYELLOW;新庄: (100-IF(VAR2>5,IF(VAR2<100,VAR2,VAR4-10),0))*VAR1,COLORGREEN,LINETHICK1,POINTDOT ;VARD:=散户>VAR4;VARE:=REF(LOW,1)*0.9;VARF:=LOW*0.9;VAR10:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL;VAR11:=EMA(VAR10,30);VAR12:=CLOSE-REF(CLOSE,1);VAR13:=MAX(VAR12,0);VAR14:=ABS(VAR12);VAR15:=SMA(VAR13,7,1)/SMA(VAR14,7,1)*100;VAR16:=SMA(VAR13,13,1)/SMA(VAR14,13,1)*100;VAR17:=BARSCOUNT(CLOSE);VAR18:=SMA(MAX(VAR12,0),6,1)/SMA(ABS(VAR12),6,1)*100;VAR19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;VAR1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;VAR1B:=SMA((SMA(VAR1A,4,1)-50)*2,3,1);VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;VAR1D:=SMA(VAR1C,4,1);VAR1E:=SMA(VAR1D,3,1);VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;VAR20:=VAR18<=25 AND VAR19<-95 AND VAR1F>20 AND VAR1B<-30 AND VAR1E<30 AND VAR11-CLOSE>=-0.25 AND VAR15<22 AND VAR16<28 AND VAR17>50;STICKLINE(VARD,VAR4,散户,5,0),COLORWHITE;STICKLINE(1,新庄,100,1,0),COLORGREEN;STICKLINE(VAR20,0,80,5,0),COLORRED,LINETHICK3 ;100,COLORGREEN ,LINETHICK2 ;0,COLORYELLOW ,LINETHICK2 ;中线: 15,COLORBLUE ,LINETHICK2 ;选股公式VAR1:=1;VAR2:=1/WINNER(CLOSE);VAR3:=MA(CLOSE,13);VAR4:=100-ABS((CLOSE-VAR3)/VAR3*100);VAR5:=LLV(LOW,75);VAR6:=HHV(HIGH,75);VAR8:=SMA((CLOSE-VAR5)/VAR7,20,1);VAR9:=SMA((OPEN-VAR5)/VAR7,20,1);VARA:=3*VAR8-2*SMA(VAR8,15,1);VARB:=3*VAR9-2*SMA(VAR9,15,1);VARC:=100-VARB;主力:=(100-VARA)*VAR1;散户:=MA(WINNER(CLOSE*0.95)*100,3)*VAR1;新庄:=(100-IF(VAR2>5,IF(VAR2<100,VAR2,VAR4-10),0))*VAR1;VARD:=散户>VAR4;VARE:=REF(LOW,1)*0.9;VARF:=LOW*0.9;VAR10:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL;VAR11:=EMA(VAR10,30);VAR12:=CLOSE-REF(CLOSE,1);VAR13:=MAX(VAR12,0);VAR14:=ABS(VAR12);VAR15:=SMA(VAR13,7,1)/SMA(VAR14,7,1)*100;VAR16:=SMA(VAR13,13,1)/SMA(VAR14,13,1)*100;VAR17:=BARSCOUNT(CLOSE);VAR18:=SMA(MAX(VAR12,0),6,1)/SMA(ABS(VAR12),6,1)*100;VAR19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;VAR1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;VAR1B:=SMA((SMA(VAR1A,4,1)-50)*2,3,1);VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;VAR1D:=SMA(VAR1C,4,1);VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;VAR20:VAR18<=25 AND VAR19<-95 AND VAR1F>20 AND VAR1B<-30 AND VAR1E<30 AND VAR11-CLOSE>=-0.25 AND VAR15<22 AND VAR16<28 AND VAR17>50;。

通达信准确的波段指标公式

通达信准确的波段指标公式

通达信准确的波段指标公式Z:=5;N:=10;HIGH1:=IF(HIGH<REF(H,1),(H+L)*0.5,HIGH);LOW2:=IF(LOW>=(REF(L,1)+REF(L,2))/2,CLOSE,LOW);LOW1:=IF(LOW>=REF(LOW,1),CLOSE,LOW);CLOSE1:=IF(CLOSE>=REF(CLOSE,1),CLOSE,(HIGH1+LOW2)* 0.5);VARA:=IF(CLOSE=CLOSE,(CLOSE+LOW+OPEN+HIGH+HIGH 1+LOW2)/6,AMOUNT/(100*VOL));VARU1:=LLV(LOW1,30);VARA1:=HHV(HIGH1,30);VARU2:=LLV(LOW1,21);VARA2:=HHV(HIGH1,21);CC:=MA((VARA-VARU2)/(VARA2-VARU2)*100,11);CC1:=EMA(CC,7),COLOR336699;B:=EMA((VARA-VARU1)/(VARA1-VARU1)*105,13);B1:=EMA(B,8);移动平均A:STICKLINE(B-B1>0 ,B*1.03,B1,3,1),COLOR3366AA;移动平均B:STICKLINE(B-B1<=0,B*1.03,B1,3,1),COLOR779966;VAR44:=ZIG(3,Z);RSV:=(VAR44-LLV(VAR44,N))/(HHV(VAR44,N)-LLV(VAR44,N))*100;月MD:="KDJ.D#MONTH",COLORFF0000,LINETHICK2;月MK:="KDJ.K#MONTH",COLOREECC00;周CD:="KDJ.D#WEEK",COLOR0000BB,LINETHICK2;周CK:="KDJ.K#WEEK",COLOR0099FF;月死KD:=MA((月MD,月MK),1);周死KD:=MA((周CD,周CK),1);周死RSI:="RSI.RSI2#WEEK"<="RSI.RSI3#WEEK";月金KD:=MA((月MK,月MD),1);周金KD:=MA((周CK,周CD),1);周金RSI:="RSI.RSI2#WEEK">="RSI.RSI3#WEEK"*0.998;周金R:="RSI.RSI1#WEEK">="RSI.RSI2#WEEK";AA:=STICKLINE(月死KD && 周死KD && 周死RSI,100,50,0,1),COLOR998888;BB:=STICKLINE(月金KD && 周金KD && 周金RSI,0,50,0,1),COLOR8800DD;K:SMA(RSV,3,1),COLORAA9999,LINETHICK2;D:SMA(K,3,1),COLOR00AA00,LINETHICK2;J:=3*K-2*D,COLORFFAABB,LINETHICK1;STICKLINE(周CK<周CD,D,K*1.01,4.2,1),COLORFFCC00;STICKLINE(周CK>=周CD,D,K*1.01,4.2,1),COLOR0000FF;RMA2:=MA(MA("RSI.RSI2#MONTH",2),2),COLORGRAY,LINET HICK1;RMA3:=MA(MA("RSI.RSI3#MONTH",2),2),COLOR000099,LIN ETHICK1;STICKLINE(RMA2>=RMA3,D*0.999,K*1.03,0.8,0),COLOR006 8FF;STICKLINE(RMA2<RMA3,D*0.999,K*1.03,0.8,0),COLORFF004 4;A:=(3*CLOSE+LOW+OPEN+HIGH)/6;D1:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF( A,4)+15*REF(A,5)+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*R EF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*RE F(A,17)+2*REF(A,18)+REF(A,20))/211;D2:=EMA(D1,2);D3:=EMA(D2,2);K1:=EMA(D3,2);卖转向:STICKLINE(PEAKBARS(3,15,1)=1,101,51,1.6,0),COLOR00FF44,LI NETHICK2;买转向:STICKLINE(TROUGHBARS(3,15,1)=0 AND HIGH>LOW+0.01,0,49,1.6,0),COLORAA00FF;死叉RSI:=DRAWICON(CROSS(周CD,周CK) AND 周死RSI,99,2);转向:=DRAWICON((CROSS(周CK,周CD) AND 周金RSI),25,5);月金叉:=月MK>月MD;月周金叉:=IF(CROSS(周CK,周CD) AND 月金叉,31,0),LINETHICK1,COLOR3333FF;周金叉RSI:=STICKLINE(CROSS("RSI.RSI2#WEEK","RSI.RSI3#WEEK"),0,25, 3,0),COLOR0038FF;金叉RSI:=DRAWICON(CROSS("RSI.RSI2#WEEK","RSI.RSI3#WEEK"),18, 9);波段升:STICKLINE(CROSS(D1,K1) AND CC>=CC1,1,33,0.1,0),COLOR00FFFF;波段下:STICKLINE(CROSS(K1,D1) AND CC<CC1,98,68,0.1,0),COLORAAAAAA;DIFFR:=EMA(CLOSE,12)-EMA(VARA,26);DEAR:=EMA(DIFFR,9),COLORFFFFFF,LINETHICK1;MACDA:=EMA(CLOSE,12)-EMA(CLOSE,26);MACDD:=EMA(CLOSE,9)-EMA(CLOSE,12);MACDB:=EMA(CLOSE,9)-EMA(CLOSE1,12);MACDH:=EMA(CLOSE,12)-EMA(CLOSE1,26);MACDC:=EMA(CLOSE,8)-EMA(CLOSE1,15);MACDM:=EMA(CLOSE,7)-EMA(CLOSE,11);中线持仓:=IF(CLOSE>=SAR(4,2,20),SAR(4,2,20),DRAWNULL);中线空仓:=IF(CLOSE<SAR(4,2,20),SAR(4,2,20),DRAWNULL);DXB:=COUNT(CROSS(MACDM,0) OR CROSS(MACDD,0) OR CROSS(MACDA,0),15)>=2;DXC:=COUNT(CROSS(MACDM,0) OR CROSS(MACDD,0) OR CROSS(MACDA,0) OR CROSS(MACDH,0),20)>=2;DXD:=COUNT(CROSS(MACDM,0) OR CROSS(MACDC,0) OR CROSS(MACDH,0) OR CROSS(MACDB,0),20)>=2;DXE:=COUNT(CROSS(MACDM,0) OR CROSS(MACDH,0) OR CROSS(MACDB,0) OR CROSS(MACDD,0) ORCROSS(MACDA,0),30)>=4;MD:=BACKSET(DEAR>=REF(DEAR,1),2);STICKLINE((MACDD>0 OR MACDH>0) AND 中线持仓 ,0,7,3,1),COLOR0000FF;STICKLINE((MACDC>=0 OR MACDH>=0) AND 中线持仓AND (DXB OR DXC OR DXD OR DXE) AND MD,1,12,2.2,0),COLORCC88FF;STICKLINE((MACDD<=0 OR MACDC<=0) AND 中线空仓,100,94,3.8,1),COLORAA7777;MCST:=DMA(AMOUNT/(100*VOL),VOL/CAPITAL);DIF:=EMA(EMA(CLOSE,18)-EMA(CLOSE,34),11);MACD:=EMA(EMA(DIF,11),11),COLOR58FF58;DEF:=2*(DIF-MACD),COLORFFFF00,LINETHICK0;STICKLINE(C>=MCST,12,19,1,1),COLOR00EEFF;。

波段指标——做波段的利器通达信指标公式源码

波段指标——做波段的利器通达信指标公式源码

波段指标——做波段的利器通达信指标公式源码波段指标是一种用于短期交易的技术指标,它可以帮助投资者找到股票的买入和卖出时机。

通达信是一个广泛使用的股票分析软件,它提供了丰富的指标计算工具。

下面是波段指标通达信源码的详细说明,共计超过1200字。

以下是通达信中波段指标的计算公式源码的一个示例:```c//定义波段指标的公式参数input n1 = 20;input n2 = 10;input n3 = 6;//计算波段指标的公式var f1 = CLOSE > REF(HHV(HIGH, n1), 1);var f2 = CLOSE < REF(LLV(LOW, n1), 1);var f3 = COUNT(f1, n2) > 0 AND COUNT(f2, n2) > 0;var f4 = SUM(f3, n3) == n3;//输出波段指标的结果PlotWaveBand = f4;```在这个示例中,n1、n2和n3是用户可以自定义的参数,它们分别表示波段指标中的周期长度。

用户可以根据自己的需求设置这些参数的数值。

该公式计算了一个布尔变量f1,它表示当前价格是否大于前n1个周期内的最高价;同时计算了一个布尔变量f2,它表示当前价格是否小于前n1个周期内的最低价。

然后,它根据f1和f2计算了f3,表示在前n2个周期内,有至少一个周期的最高价高于前n1个周期内的最高价,同时有至少一个周期的最低价低于前n1个周期内的最低价。

最后,它计算了一个布尔变量f4,它表示在前n3个周期中,f3为真的周期的数量是否等于n3、如果f4为真,则将PlotWaveBand设置为1;否则将PlotWaveBand设置为0。

通过以上的源码,用户可以自定义波段指标的计算公式,并将其添加到通达信的分析工具中进行使用。

使用波段指标可以帮助投资者快速找到股票的买入和卖出时机,从而提高交易的效果。

波段操作 胜率98%以上通达信指标公式源码

波段操作 胜率98%以上通达信指标公式源码

波段操作胜率98%以上多年来一直使用的附图公式,也是我见过的较为复杂的附图公式,看源码就知道了。

按照图中出现“买”字买入,黄线下穿白线或红线,或者出现“大笔出货”字样则卖出,适合短线、中线及长线。

还有很多自己去理解吧。

关键是要按照纪律买卖,记得哦,一定要按照纪律买卖。

{哦哦哦}VAR3:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;VAR4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;VAR5:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;VAR6:=(VAR3+VAR4+VAR5)/3;VAR7:=EMA(VAR6,5);指标:= EMA(EMA(VAR3,5),5)*3, COLORSTICK;VAR8:=IF(VAR6<=-20,10,0);VAR9:=HHV(VAR8,10);STICKLINE(VAR8=10,20,10,5,0),COLOR6666FF;VARA:=IF(VAR9 AND CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);K:EMA(VAR7,5)*2, COLORFF00FF;D:EMA(K,5), COLORWHITE;J:K*3-D*2, COLORYELLOW;VARB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5)) AND J>10;换手:= VOL/CAPITAL*100, COLORGREEN;成交〖万手〗:= VOL/10000, COLORYELLOW;DRAWTEXT(VAR8=10 AND FILTER(VAR8=10,5),-10{15},'接近底部'),LINETHICK1,COLORYELLOW;STICKLINE(VAR8=10 ANDFILTER(VAR8=10,5),-1.6{20},-10,5,0),COLORYELLOW;DRAWTEXT(VARA=20,15,'底部'),LINETHICK1,COLORWHITE;STICKLINE((VARA=20),0,10,5,0),COLORWHITE;VARC:=(ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3));VARD:=(ZIG(3,5)=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)>=REF(ZIG(3,5),3));STICKLINE((VARC=1),(-14),0,4,0),COLOR0000FF;DRAWTEXT((VARC=1),(-14),'买'),COLOR0000FF;STICKLINE((VARD=1),14,0,4,0),COLOR00FF00;DRAWTEXT((VARD=1),18,'卖'),COLOR00FF00;VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-2 0;VARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*10 0,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);VAR10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1); VAR11:=VAR(VOL,1) AND CLOSE>REF(CLOSE,1);DRAWTEXT(VAR11 AND COUNT(VAR11,30)=1,15,'大资金活动'),LINETHICK1,COLORFF00FF;STICKLINE(VAR11 AND COUNT(VAR11,30)=1,1,10,5,0),COLORFF00FF; VAR12:=(HIGH+LOW+CLOSE)/3;VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14));VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70));VAR15:=IF(VAR13>=150 AND VAR13<200 AND VAR14>=150 AND VAR14<200,10,0);VAR16:=IF(VAR13<=-150 AND VAR13>-200 AND VAR14<=-150 AND VAR14>-200,-10,VAR15);VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;VAR18:=100-ABS(VAR17);VAR19:=IF(VAR18<90,VAR18,100);VAR1A:=IF(VARE>0,VARE,0);VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 AND VAR13<=-150,-15,VAR16))+60;VAR1C:=VAR1A>48 AND VAR1B>60 AND VAR19<100; DRAWTEXT(VAR1C AND COUNT(VAR1C,30)=1,15,'大笔出货'),LINETHICK1,COLORFFCC66;STICKLINE(VAR1C AND COUNT(VAR1C,30)=1,0,10,5,0),COLORFFCC66;。

通达信波段小黑马指标公式

通达信波段小黑马指标公式

通达信波段小黑马指标公式{使用说明:当蓝柱变成白柱,同时紫色线向上,出现宝塔就可以关注买进持有,当股价到高位白柱变蓝柱,并且紫色线向下调头,即可止盈。

}本文指标含有选股公式如下:波段小黑马之大黑马选股指标公式波段小黑马之小黑马选股指标公式N:=10;VA6:=(2*CLOSE+HIGH+LOW)/4;VA8:=LLV(LOW,34);VARB:=HHV(HIGH,34);VARC:=EMA((VA6-VA8)/(VARB-VA8)*100,13);VARD:=EMA(0.667*REF(VARC,1)+0.333*VARC,2);生命线:EMA(VARD,N), COLORFF00FF,LINETHICK2;VAR1:=HHV(HIGH,9)-LLV(LOW,9);VAR2:=HHV(HIGH,9)-CLOSE;VAR3:=CLOSE-LLV(LOW,9);VAR4:=((VAR2)/(VAR1))*(100)-70;VAR5:=((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60)))*(100);VAR6:=((2)*(CLOSE)+HIGH+LOW)/(4);VAR7:=SMA(((VAR3)/(VAR1))*(100),3,1);VAR8:=LLV(LOW,34);VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);VAR10:=IF((VAR9>100),VAR9-100,0);VAR11:=HHV(HIGH,34);B1:=EMA(((VAR6-VAR8)/(VAR11-VAR8))*(100),8);B2:=EMA(B1,5);STICKLINE(B1-B2>0,B1,B2,4,0),COLORFFFFFF;STICKLINE(B1-B2<0,B1,B2,4,0),COLORFFFF52;SS1:=(LOW+HIGH+CLOSE*2)/4;SS2:= MA(SS1,4);SS3:=HHV(SS2,10);SS4:=MA(SS3,3);SS5:=1.25*SS4-0.25*SS3;XKKJ:=IF(SS5>SS3,SS3,SS5);FF1:=LLV(SS2,10);FF2:=MA(FF1,3);FF3:=1.25*FF2-0.25*FF1;DKKJ:=IF(FF3<FF1,FF1,FF3);MA13:=MA(C,13);ZDHM:=CROSS(C,DKKJ) AND CROSS(C,MA13) AND CROSS(C,XKKJ);ZHM:=CROSS(C,MA13) AND CROSS(C,XKKJ);大黑马:IF(ZDHM OR ZHM,50,0),COLORYELLOW,POINTDOT;A:=(3*CLOSE+LOW+OPEN+HIGH)/6;D1:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF( A,4)+15*REF(A,5)+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*R EF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*RE F(A,17)+2*REF(A,18)+REF(A,20))/211;D2:=EMA(D1,2);D3:=EMA(D2,2);K1:=EMA(D3,2);小黑马:IF(CROSS(D1,K1),45,0),COLORFFCC66,POINTDOT;STICKLINE(大黑马>0,0,大黑马*1.1,1,0),COLORWHITE;STICKLINE(大黑马>0 AND 大黑马<52,30,大黑马,1,0),COLORRED;STICKLINE(大黑马>0,0,大黑马*0.8,4,0),COLORRED;STICKLINE(大黑马>0,0,大黑马*0.4,8,0),COLORRED;STICKLINE(大黑马>0,0,大黑马*0.2,10,0),COLORYELLOW;STICKLINE(大黑马>0,0,大黑马*0.1,10,0),COLORFFCC66;STICKLINE(小黑马>0,0,小黑马*1.1,1,0),COLORWHITE;STICKLINE(小黑马>0 AND 小黑马<52,30,小黑马,1,0),COLORFFCC66;STICKLINE(小黑马>0,0,小黑马*0.8,4,0),COLORFFCC66;STICKLINE(小黑马>0,0,小黑马*0.4,8,0),COLORFFCC66;STICKLINE(小黑马>0,0,小黑马*0.2,10,0),COLORFF00FF;。

通达信波段指标公式

通达信波段指标公式

通达信波段指标公式
1.MA指标:MA(N)=N日内的收盘价之和÷N,N可以是5、10、20、60等数字。

MA指标用来测量股价走势。

MA通过把收盘价乘以系数或者
求出移动平均后,把短期数据转换成长期数据,用来分析股市走势。

2.EXPMA指标:EXPMA(N)=(2*C+(N-1)*EXPMA(N-1))/(N+1),其中
C表示收盘价,N为移动平均线的周期数。

EXPMA指标与MA指标的区别
仅在于计算过程不同而已,作用也一样。

3.BOLL指标:BOLL(N)=[MA(N)+K*STD(N)]、[MA(N)]、[MA(N)-
K*STD(N)],其中N为移动平均线的时间窗口,K为布林带百分比参数,STD为标准差函数。

BOLL指标是用来测量股价趋势强弱的技术分析指标,是当今股票分析中非常重要的技术指标。

4.SAR指标:SAR(X,Y)=IF(TREND>=0,HIGH(N)+α*(HIGH(N)-
LOW(N)),LOW(N)-α*(HIGH(N)-LOW(N))),其中N为指定的时间窗口,
X和Y分别表示正常和多头情况下的α最大值,α的初始值为0。

SAR
指标是一种动态单点技术指标,它用于测量和识别市场行情走势,可
以帮助投资者更好地把握市场走势,因此被广泛应用于股票市场分析中。

股市中波段操作最好用的通达信指标公式(1)

股市中波段操作最好用的通达信指标公式(1)

顾王{BN:1,100,3;牛:1,100,3;短线:1,20,9;中线:1,30,9;}MAXCYC:DMA((C+O)/2,V/CAPITAL);MAV:=(((CLOSE)*(2)+HIGH+LOW)/(4))*(10);SK:=EMA(MAV,13)-EMA(MAV,34);SD:=EMA(SK,5);B:=((2)*(SK-SD))*(5.5);拉升资金:IF((IF((B>=0),B,(-18))>120),120,IF((B>=0) AND(DATE<=1080531),B,(-18))),LINETHICK2,COLORFF00FF;VAR96:=((CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28)))*(100);VAR97:=SMA(VAR96,4,1);VAR98:=SMA(VAR97,2,1);VAR99:=DMA(((AMOUNT)/(VOL))/(100),(VOL)/(CAPITAL));VAR100:=LOW;VAR101:=REF(LOW,1);VAR102:=((SMA(ABS(VAR100-VAR101),3,1))/(SMA(MAX(VAR100-VAR101,0),牛,1)))*(100);VAR103:=MA(IF(((CLOSE)*(1.68)<=MAXCYC),(VAR102)*(10),(VAR102)/(10)),牛); VAR104:=LLV(LOW,30);VAR105:=HHV(VAR103,30);魔王:=MA(IF((LOW<=VAR104),(VAR103+(VAR105)*(2))/(2),0),牛);牛魔王:IF(魔王>10000,100,0),LINETHICK2,COLOR00FFFF;VAR106:=MA(CLOSE,5);VAR107:=MA(CLOSE,10);VAR108:=MA(CLOSE,30);VAR109:=(SUM(((CLOSE)*(VOL))*(100),4))/(SUM((VOL)*(100),4));VAR110:=(SUM(((CLOSE)*(VOL))*(100),7))/(SUM((VOL)*(100),7));VAR111:=(SUM(((CLOSE)*(VOL))*(100),28))/(SUM((VOL)*(100),28));VAR112:=(INTPART((VAR111)*(100)))/(100);短线趋势:=EMA(CLOSE,5)-EMA(CLOSE,10);中线趋势:=EMA(短线趋势,中线);VAR113:=REF(中线趋势,1);VAR114:=中线趋势;VAR115:=VAR114-VAR113;VAR116:=REF(短线趋势,1);VAR119:=短线趋势;VAR120:=VAR119-VAR116;VAR117:=OPEN;VAR118:=CLOSE;小牛魔王:IF((VAR117<=VAR106) AND (VAR117<=VAR107) AND (VAR117<=VAR108) AND (VAR118>=VAR106) AND (VAR118>=VAR112) AND (VAR115>0) AND(VAR120>0) ,80,0),LINETHICK2,COLORFFFFFF;主力建仓:IF((VAR98<8.5) AND (VAR97<11),120,(-18)),LINETHICK2,COLOR0000FF; VAR84:=((CLOSE-MA(CLOSE,13))/(MA(CLOSE,13)))*(100);VAR85:=100-ABS(VAR84);VAR86:=(3)*(SMA(((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75)))*(100),20,1)) -(2)*(SMA(SMA(((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75)))*(100),20,1),15, 1));VAR87:=(3)*(SMA(((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75)))*(100),20,1))-( 2)*(SMA(SMA(((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75)))*(100),20,1),15,1)) ;VAR88:=100-VAR87;VAR89:=100-VAR86;VAR92:=MA(((100)*(CLOSE-LLV(CLOSE,34)))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20; VAR93:=100-(3)*(SMA(((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75)))*(100),2 0,1))+(2)*(SMA(SMA(((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75)))*(100),20, 1),15,1));VAR94:=100-(3)*(SMA(((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75)))*(100),20, 1))+(2)*(SMA(SMA(((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75)))*(100),20,1),1 5,1));VAR95:=(VAR93<REF(VAR94,1)) AND (VOL>REF(VOL,1)) AND(CLOSE>REF(CLOSE,1));A11:=(3)*(SMA(((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55)))*(100),5,1))-(2)* (SMA(((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55)))*(100),5,1));黑马线:=EMA(A11,5);A12:=((黑马线-REF(黑马线,1))/(REF(黑马线,1)))*(100);A4:=((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21)))*(100);趋势线3:=MA((3)*(SMA(A4,6,1))-(2)*(SMA(SMA(A4,5,1),5,1)),2);N:=3;VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/(4),1);VAR2:=(SMA(ABS(LOW-VAR1),13,1))/(SMA(MAX(LOW-VAR1,0),10,1));VAR3:=EMA(VAR2,10);VAR4:=LLV(LOW,33);VAR5:=EMA(IF((LOW<=VAR4),VAR3,0),5);VAR6:=REF(CLOSE,1);VAR7:=((SMA(MAX(CLOSE-VAR6,0),6,1))/(SMA(ABS(CLOSE-VAR6),6,1)))*(100); VAR8:=(LLV(LOW,5)=LLV(LOW,45)) AND (CLOSE>=(OPEN)*(1.04));VAR9:=(CLOSE>(REF(HIGH,1)+REF(LOW,1))/(2));VAR10:=VAR8 AND VAR9;VAR11:=((2)*(CLOSE)+HIGH+LOW)/(4);VAR12:=LLV(LOW,13);VAR13:=HHV(HIGH,13);VAR14:=(LLV(LOW,1)=LLV(LOW,35)) AND (CLOSE>=(OPEN)*(1.04));VAR15:=(CLOSE>(REF(HIGH,1)+REF(LOW,1))/(2));VAR16:=EMA(((VAR11-VAR12)/(VAR13-VAR12))*(100),13);VAR17:=(((CLOSE-MA(CLOSE,6))/(MA(CLOSE,6)))*(100)+((CLOSE-MA(CLOSE,24))/( MA(CLOSE,24)))*(100)+((CLOSE-MA(CLOSE,32))/(MA(CLOSE,32)))*(100))/(3);VAR19:=MA(CLOSE,13);VAR20:=100-ABS(((CLOSE-VAR19)/(VAR19))*(100));VAR21:=LLV(LOW,75);VAR22:=HHV(HIGH,75);VAR23:=(VAR22-VAR21)/(100);VAR24:=SMA((CLOSE-VAR21)/(VAR23),20,1);VAR25:=SMA((OPEN-VAR21)/(VAR23),20,1);VAR26:=(3)*(VAR24)-(2)*(SMA(VAR24,15,1));VAR27:=MA(HHV(HIGH,485),17);VAR28:=MA(HHV(HIGH,222),17);VAR29:=MA(HHV(HIGH,96),17);VAR30:=MA(LLV(LOW,485),17);VAR31:=MA(LLV(LOW,222),17);VAR32:=MA(LLV(LOW,96),17);VAR33:=MA(((VAR30)*(0.96)+(VAR31)*(0.96)+(VAR32)*(0.96)+(VAR27)*(0.558)+(VAR2 8)*(0.558)+(VAR29)*(0.558))/(6),17);VAR34:=MA(((VAR30)*(1.25)+(VAR31)*(1.23)+(VAR32)*(1.2)+(VAR27)*(0.55)+(VAR28)* (0.55)+(VAR29)*(0.65))/(6),17);VAR35:=MA(((VAR30)*(1.3)+(VAR31)*(1.3)+(VAR32)*(1.3)+(VAR27)*(0.68)+(VAR28)*(0 .68)+(VAR29)*(0.68))/(6),17);VAR36:=LLV(LOW,30);VAR37:=MA((((VAR33)*(3)+(VAR34)*(2)+VAR35)/(6))*(1.738),17);VAR38:=VAR37;VAR39:=LOW;VAR40:=REF(LOW,1);VAR41:=((SMA(ABS(VAR39-VAR40),3,1))/(SMA(MAX(VAR39-VAR40,0),N,1)))*(100); VAR42:=MA(IF(((CLOSE)*(1.35)<=VAR38),(VAR41)*(10),(VAR41)/(10)),N);VAR43:=HHV(VAR42,30);VAR44:=1080531;VAR45:=(3)*(VAR25)-(2)*(SMA(VAR25,15,1));VAR46:=100-VAR45;VAR47:=1;VAR49:=(REF(LOW,1))*(0.9);VAR50:=(LOW)*(0.9);VAR51:=((VAR50)*(VOL)+(VAR49)*(CAPITAL-VOL))/(CAPITAL);VAR52:=EMA(VAR51,30);VAR53:=CLOSE-REF(CLOSE,1);VAR54:=MAX(VAR53,0);VAR55:=ABS(VAR53);VAR56:=((SMA(VAR54,7,1))/(SMA(VAR55,7,1)))*(100);VAR57:=((SMA(VAR54,13,1))/(SMA(VAR55,13,1)))*(100);VAR58:=BARSCOUNT(CLOSE);VAR59:=((SMA(MAX(VAR53,0),6,1))/(SMA(ABS(VAR53),6,1)))*(100);VAR60:=(((-200))*(HHV(HIGH,60)-CLOSE))/(HHV(HIGH,60)-LLV(LOW,60))+100;VAR61:=((CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15)))*(100);VAR62:=SMA((SMA(VAR61,4,1)-50)*(2),3,1);VAR63:=((INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14)))*(100);VAR64:=SMA(VAR63,4,1);VAR65:=SMA(VAR64,3,1);VAR66:=((HHV(HIGH,30)-CLOSE)/(CLOSE))*(100);VAR67:=(VAR59<=25) AND (VAR60<(-95)) AND (VAR66>20) AND (VAR62<(-30)) AND (VAR65<30) AND (VAR52-CLOSE>=(-0.25)) AND (VAR56<22) AND (VAR57<28) AND (VAR58>50);VAR68:=(HIGH+LOW+CLOSE)/(3);VAR69:=(VAR68-MA(VAR68,14))/((0.015)*(AVEDEV(VAR68,14)));VAR70:=(VAR68-MA(VAR68,70))/((0.015)*(AVEDEV(VAR68,70)));VAR71:=IF((VAR69>=150) AND (VAR69<200) AND (VAR70>=150) AND(VAR70<200),10,0);VAR72:=IF((VAR69<=(-150)) AND (VAR69>(-200)) AND (VAR70<=(-150)) AND(VAR70>(-200)),(-10),VAR71);VAR73:=((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100);VAR74:=REVERSE(VAR73);VAR75:=SMA(VAR73,3,1);绝佳买点:=MA(IF((LOW<=VAR36),(VAR42+(VAR43)*(2))/(2),0),N);跑:=FILTER((REF(黑马线,1)>90) AND (A12<0) ,7);买线:=EMA(CLOSE,2);卖线:=EMA((SLOPE(CLOSE,21))*(20)+CLOSE,42);指數位置:=(3)*(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1))-(2)*(S MA(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1),3,1));抄底:=CROSS(指數位置,10);A1:=(VOL=HHV(VOL,120));A2:=((CLOSE)/(OPEN)>1.05);TJ:=A1 AND A2;龙:=VAR10;买4:=VAR14;AA1:=(AMOUNT)/(VOL);BB1:=(LOW<(AA1)*(0.9));CC1:=(((CLOSE-REF(CLOSE,1))/(REF(CLOSE,1)))*(100)>1.2);DD1:=(LOW<(MA(CLOSE,5))*(0.921));EE1:=(VOL<(MA(VOL,5))*(1.5));FF1:=BB1 AND CC1 AND DD1 AND EE1;买3:=FILTER(FF1,3);二十天最低跌幅:=(HHV(CLOSE,20))/(LLV(CLOSE,20));RSV:=((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)))*(100);K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=(3)*(K)-(2)*(D);X:=(LLV(J,2)=LLV(J,8));买1:=CROSS(J,REF(J+0.01,1)) AND X AND (J<20) AND (二十天最低跌幅>=1.3);长期底部:=LLV(HIGH,30);上:=(SMA(LOW,5,2))*(0.96);短期底部:=(LLV(HIGH,30))*(0.93);LC:=REF(CLOSE,1);RSI:=((SMA(MAX(CLOSE-LC,0),6,1))/(SMA(ABS(CLOSE-LC),6,1)))*(100);大顶:=FILTER((VAR17>20) AND FILTER((VAR17<REF(VAR17,1)),5),5);VAR76:=(OPEN+LOW+HIGH+CLOSE)/(4);MAN:=(SMA(HIGH,21,2))*(1.05);短底2:=EMA(VAR76,5);支撑:=HHV(短底2,60);VAR77:=((HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36)))*(100);VAR78:=SMA(VAR77,5,1);VAR79:=SMA(VAR78,8,1);VAR80:=CROSS(VAR78,VAR79) AND (VAR79<5);VAR81:=(CLOSE>LLV(CLOSE,60)+(0.3)*(LLV(CLOSE,60))) AND VAR80;VAR82:=IF((CLOSE>1000),VAR80,VAR81);黑马起步:=VAR82;逃:=FILTER((HIGH>支撑) AND (CLOSE<支撑) AND ((CLOSE)/(OPEN)>0-1.06) AND (CLOSE<OPEN),5);逃命:=(黑马起步>0);选逃:=FILTER((((逃命OR 逃) OR CROSS(84,RSI)) OR 大顶),3) ;WW:=1;散户:=((SMA(VAR75,3,1))*(VAR47))*(WW);新庄:=((SMA(散户,3,1))*(VAR47))*(WW);高抛:=CROSS(新庄,散户) AND (新庄>75);买:CROSS(买线,卖线) ,COLOR0000FF;卖:CROSS(卖线,买线) ,COLOR008000;大黑马:=CROSS(趋势线3,0) AND (黑马线<40);大买:=FILTER((绝佳买点>30000),5);大资金进场:=VAR95 AND (COUNT(VAR95,30)=1);做空:=高抛+选逃+(卖=1)+跑;选拉升股:=(买AND (拉升资金>0) OR (拉升资金>0) AND (COUNT(买,5)>=1) AND (COUNT(做空,BARSLAST(买))=0) AND (REF((拉升资金>0) AND (COUNT(买,5)>=1) AND (COUNT(做空,BARSLAST(买))=0),1)=0));选潜力股:=(COUNT(做空,BARSLAST(买))=0) AND((CLOSE)/(REF(CLOSE,BARSLAST(买)))<=1.08) AND ((主力建仓=120) OR (拉升资金>0)) ;选暴涨股:买AND ((COUNT((主力建仓=120),BARSLAST(做空))>=3) OR (COUNT(大黑马+大买+大资金进场,7)>=1)),COLORFF0000;选暴涨潜力:((CLOSE)/(REF(CLOSE,BARSLAST(选暴涨股)))<=1.1) AND (COUNT(做空,BARSLAST(选暴涨股))=0),COLOR000080;选超级暴涨股:(选暴涨股AND (COUNT((主力建仓=120),10)>=3) OR 买AND (COUNT(大黑马+大买+大资金进场,7)>=1) AND (COUNT(做空,BARSLAST(((大黑马OR 大买) OR 大资金进场)))=0)),COLOR800080;黄金暴涨股:买AND (COUNT((主力建仓=120),BARSLAST(做空))>=3) AND (拉升资金>0) AND (COUNT(大黑马+大买+大资金进场,7)>=1) AND (COUNT(做空,BARSLAST(((大黑马OR 大买) OR 大资金进场)))=0),COLOR00FFFF;坚决买进:(((买AND 选暴涨潜力OR 选暴涨股) OR 选超级暴涨股) OR 黄金暴涨股),COLORFF00FF;坚决买进潜力股:(坚决买进OR ((CLOSE)/(REF(CLOSE,BARSLAST(坚决买进)))<=1.1) AND (COUNT(做空,BARSLAST(坚决买进))<=1)) AND (COUNT(做空,BARSLAST(买))=0) AND (做空=0),COLOR00FF00;黄金暴涨潜力股:(黄金暴涨股OR ((CLOSE)/(REF(CLOSE,BARSLAST(黄金暴涨股)))<=1.1) AND (COUNT(做空,BARSLAST(黄金暴涨股))=0)) AND (COUNT(做空,BARSLAST(买))=0) AND (做空=0),COLORFFFFFF;选底:FILTER((LOW<=上) AND (HIGH>=短期底部) AND (CLOSE>=长期底部) AND ((CLOSE)/(OPEN)>1.03),3) AND (DATE<=1080531),COLORFFFF00;稳赚10买:FILTER((买3 OR 选底),3) AND (COUNT(买1+买4+龙,3)>0),COLOR0000FF; 选持股阶段股:(COUNT(卖,BARSLAST(买))=0),COLOR008000;STICKLINE(黄金暴涨潜力股,50,40,7,0),COLORFF0000;STICKLINE((买=1),0,50,7,0),COLOR1020FF;STICKLINE((卖=1),50,100,7,0),COLORFFDD00;STICKLINE(VAR95 AND (COUNT(VAR95,30)=1),50,85,5,0),COLORFF0000; STICKLINE(大黑马,50,90,5,0),COLORFF0000;STICKLINE(大买,50,30,3,0),COLOR0000FF;STICKLINE(选逃,50,65,3,0),COLORFF0000;STICKLINE((选底=1),50,80,3,0),COLOR399C71;STICKLINE((稳赚10买=1),50,65,3,0),COLORFF0000;STICKLINE(高抛,50,75,3,0),COLORFF0000;STICKLINE(跑,50,65,3,0),COLORFF0000;STICKLINE(坚决买进潜力股,50,58,6,0),COLORFF0000;STICKLINE(选持股阶段股,70,50,0.1,0),COLOR0000FF;DRAWTEXT(选持股阶段股,75,'—'),COLOR0000FF;DRAWTEXT(坚决买进,13,'坚决买'),COLOR00FFFF;DRAWTEXT(选拉升股,40,'▲'),COLOR00FFFF;DRAWTEXT(选暴涨股,50,'★'),COLOR00FFFF;DRAWTEXT(选超级暴涨股,60,'●'),COLOR00FFFF;DRAWTEXT(黄金暴涨股,73,'■'),COLOR00FFFF;DRAWTEXT(VAR95 AND (COUNT(VAR95,30)=1),110,'大资金'),COLORFFFFFF; DRAWTEXT(VAR95 AND (COUNT(VAR95,30)=1),100,'进场'),COLORFFFFFF; DRAWTEXT(跑,70,'跑'),COLORYELLOW;DRAWTEXT(大黑马,105,'大黑马'),COLORFFFFFF;DRAWTEXT(CROSS(新庄,散户) AND (新庄>75),90,'抛'),COLOR008000;DRAWTEXT((稳赚10买=1),80,'赚10'),COLORFFFFFF; DRAWTEXT((稳赚10买=1),67,'%买'),COLORFFFFFF; DRAWTEXT(IF((选底=1),100,0),92,'底'),COLORFFFFFF; DRAWTEXT(选逃,80,'逃'),COLOR008000; DRAWTEXT(大买,30,'大买'),COLORFFFFFF; DRAWTEXT((买=1),(-2),'买'),COLOR0000FF; DRAWTEXT((卖=1),117,'卖'),COLOR00FFFF;。

非常实用的波段神器通达信指标公式源码

非常实用的波段神器通达信指标公式源码

奉上一个我自己在用的波段指标,让你抓着真正的波段,不会被下跌途中的小反抽欺骗。

A01:=DYNAINFO(7);A03:=BARSCOUNT(CLOSE);A04:=(SMA((CLOSE / HHV(HIGH,120)),3,1) * 100);A05:=IF((A03 > 20),A04,0);A06:=IF((LOW > A01),0,IF((HIGH < A01),1,(((A01 - LOW) + 0.009) / ((HIGH - LOW) + 0.009))));A07:=DMA(A06,(VOL / CAPITAL)) * 60;A09:=IF((((A07 > 0) AND (A07 > REF(A07,1))) AND (A05 <= 88)),A07,0);VAR1:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(S MA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);VAR2:=EMA(VAR1,8);VAR3:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55)) /(HHV(H,55)-LLV(L,55))*100,5,1),3,1);趋势:=EMA(VAR3,3)-10;{FILLRGN(趋势,80,趋势>80);}DRAWICON(CROSS(趋势,0),0,1);{FILLRGN(0,A09,(A09 > 0 AND (趋势<20 OR 趋势>REF(趋势,1)AND 趋势<50))),COLORFFFF00;}机构建仓区:0,LINETHICK0,COLORFFFF00;VAR4:=(趋势-REF(趋势,1))/REF(趋势,1)*100;{STICKLINE(趋势<=13,0,20,5,0),COLORCC9900;DRAWTEXT(FILTER(趋势<=13,15),30,'准备现金'),COLORCC9900;STICKLINE(趋势<=13 AND VAR4>13,0,50,5,0),COLOR0099FF;}VAR5:=FILTER((趋势<=13 AND VAR4>13),10);DRAWTEXT(VAR5,60,'买入'),COLOR0099FF;STICKLINE(趋势>=90 AND VAR4,0,30,5,0),COLORGRAY;VAR6:=FILTER((趋势>=90 AND VAR4),10);DRAWTEXT(VAR6,40,'清仓'),COLORGRAY;VAR7:=LLV(LOW,30);VAR8:=HHV(HIGH,30);VAR9:=EMA((CLOSE-VAR7)/(VAR8-VAR7)*4,4)*25;STICKLINE(VAR9>90,100,105,10,2),COLORRED;VAR10:=(VAR9-LLV(VAR9,4))/(HHV(VAR9,4)-LLV(VAR9,4))*100;DRAWTEXT(IF(CROSS(VAR9,VAR10) AND VAR9>87,95,0),88,'险'),COLOR00FF00; DRAWICON(CROSS(90,VAR9),95,5);VAR11:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*100;VAR12:=HHV(VAR11,30)*8;火焰山:EMA(IF(LOW<=VAR7 AND 趋势<40,(VAR11+VAR12),0),3)/618,COLORRED,LINETHICK2;STICKLINE(火焰山>0,0 ,火焰山*1.2,8,0 ),COLORRED;VAR13:=(MA(C,1)+MA(C,3)+MA(C,5)+MA(C,7)+MA(C,9))/5;VAR14:=(MA(C,2)+MA(C,4)+MA(C,6)+MA(C,8)+MA(C,10))/5;趋势线: 趋势,COLORYELLOW,LINETHICK2;VAR16:=MAX(EMA(VAR13,2)-EMA(VAR14,5),0)*200;VAR17:=EMA(VAR16,5);波浪峰:VAR17,STICK,COLORFF00FF;STICKLINE(VAR17<REF(VAR17,1),0,VAR17,1,0),COLOR00FF00;VAR18:=MA(趋势线,8);IF(CROSS(VAR2,VAR18) AND VAR2<15,50,0),COLORRED;DRAWTEXT(CROSS(趋势线,VAR2)AND 趋势线>REF(趋势线,1)AND 趋势线<50,50,'追涨'),COLORFF0000;。

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

顾王{BN:1,100,3;牛:1,100,3;短线:1,20,9;中线:1,30,9;}MAXCYC:DMA((C+O)/2,V/CAPITAL);MAV:=(((CLOSE)*(2)+HIGH+LOW)/(4))*(10);SK:=EMA(MAV,13)-EMA(MAV,34);SD:=EMA(SK,5);B:=((2)*(SK-SD))*(5.5);拉升资金:IF((IF((B>=0),B,(-18))>120),120,IF((B>=0) AND(DATE<=1080531),B,(-18))),LINETHICK2,COLORFF00FF;VAR96:=((CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28)))*(100);VAR97:=SMA(VAR96,4,1);VAR98:=SMA(VAR97,2,1);VAR99:=DMA(((AMOUNT)/(VOL))/(100),(VOL)/(CAPITAL));VAR100:=LOW;VAR101:=REF(LOW,1);VAR102:=((SMA(ABS(VAR100-VAR101),3,1))/(SMA(MAX(VAR100-VAR101,0),牛,1)))*(100);VAR103:=MA(IF(((CLOSE)*(1.68)<=MAXCYC),(VAR102)*(10),(VAR102)/(10)),牛); VAR104:=LLV(LOW,30);VAR105:=HHV(VAR103,30);魔王:=MA(IF((LOW<=VAR104),(VAR103+(VAR105)*(2))/(2),0),牛);牛魔王:IF(魔王>10000,100,0),LINETHICK2,COLOR00FFFF;VAR106:=MA(CLOSE,5);VAR107:=MA(CLOSE,10);VAR108:=MA(CLOSE,30);VAR109:=(SUM(((CLOSE)*(VOL))*(100),4))/(SUM((VOL)*(100),4));VAR110:=(SUM(((CLOSE)*(VOL))*(100),7))/(SUM((VOL)*(100),7));VAR111:=(SUM(((CLOSE)*(VOL))*(100),28))/(SUM((VOL)*(100),28));VAR112:=(INTPART((VAR111)*(100)))/(100);短线趋势:=EMA(CLOSE,5)-EMA(CLOSE,10);中线趋势:=EMA(短线趋势,中线);VAR113:=REF(中线趋势,1);VAR114:=中线趋势;VAR115:=VAR114-VAR113;VAR116:=REF(短线趋势,1);VAR119:=短线趋势;VAR120:=VAR119-VAR116;VAR117:=OPEN;VAR118:=CLOSE;小牛魔王:IF((VAR117<=VAR106) AND (VAR117<=VAR107) AND (VAR117<=VAR108) AND (VAR118>=VAR106) AND (VAR118>=VAR112) AND (VAR115>0) AND(VAR120>0) ,80,0),LINETHICK2,COLORFFFFFF;主力建仓:IF((VAR98<8.5) AND (VAR97<11),120,(-18)),LINETHICK2,COLOR0000FF; VAR84:=((CLOSE-MA(CLOSE,13))/(MA(CLOSE,13)))*(100);VAR85:=100-ABS(VAR84);VAR86:=(3)*(SMA(((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75)))*(100),20,1)) -(2)*(SMA(SMA(((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75)))*(100),20,1),15, 1));VAR87:=(3)*(SMA(((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75)))*(100),20,1))-( 2)*(SMA(SMA(((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75)))*(100),20,1),15,1)) ;VAR88:=100-VAR87;VAR89:=100-VAR86;VAR92:=MA(((100)*(CLOSE-LLV(CLOSE,34)))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20; VAR93:=100-(3)*(SMA(((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75)))*(100),2 0,1))+(2)*(SMA(SMA(((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75)))*(100),20, 1),15,1));VAR94:=100-(3)*(SMA(((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75)))*(100),20, 1))+(2)*(SMA(SMA(((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75)))*(100),20,1),1 5,1));VAR95:=(VAR93<REF(VAR94,1)) AND (VOL>REF(VOL,1)) AND(CLOSE>REF(CLOSE,1));A11:=(3)*(SMA(((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55)))*(100),5,1))-(2)* (SMA(((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55)))*(100),5,1));黑马线:=EMA(A11,5);A12:=((黑马线-REF(黑马线,1))/(REF(黑马线,1)))*(100);A4:=((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21)))*(100);趋势线3:=MA((3)*(SMA(A4,6,1))-(2)*(SMA(SMA(A4,5,1),5,1)),2);N:=3;VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/(4),1);VAR2:=(SMA(ABS(LOW-VAR1),13,1))/(SMA(MAX(LOW-VAR1,0),10,1));VAR3:=EMA(VAR2,10);VAR4:=LLV(LOW,33);VAR5:=EMA(IF((LOW<=VAR4),VAR3,0),5);VAR6:=REF(CLOSE,1);VAR7:=((SMA(MAX(CLOSE-VAR6,0),6,1))/(SMA(ABS(CLOSE-VAR6),6,1)))*(100); VAR8:=(LLV(LOW,5)=LLV(LOW,45)) AND (CLOSE>=(OPEN)*(1.04));VAR9:=(CLOSE>(REF(HIGH,1)+REF(LOW,1))/(2));VAR10:=VAR8 AND VAR9;VAR11:=((2)*(CLOSE)+HIGH+LOW)/(4);VAR12:=LLV(LOW,13);VAR13:=HHV(HIGH,13);VAR14:=(LLV(LOW,1)=LLV(LOW,35)) AND (CLOSE>=(OPEN)*(1.04));VAR15:=(CLOSE>(REF(HIGH,1)+REF(LOW,1))/(2));VAR16:=EMA(((VAR11-VAR12)/(VAR13-VAR12))*(100),13);VAR17:=(((CLOSE-MA(CLOSE,6))/(MA(CLOSE,6)))*(100)+((CLOSE-MA(CLOSE,24))/( MA(CLOSE,24)))*(100)+((CLOSE-MA(CLOSE,32))/(MA(CLOSE,32)))*(100))/(3);VAR19:=MA(CLOSE,13);VAR20:=100-ABS(((CLOSE-VAR19)/(VAR19))*(100));VAR21:=LLV(LOW,75);VAR22:=HHV(HIGH,75);VAR23:=(VAR22-VAR21)/(100);VAR24:=SMA((CLOSE-VAR21)/(VAR23),20,1);VAR25:=SMA((OPEN-VAR21)/(VAR23),20,1);VAR26:=(3)*(VAR24)-(2)*(SMA(VAR24,15,1));VAR27:=MA(HHV(HIGH,485),17);VAR28:=MA(HHV(HIGH,222),17);VAR29:=MA(HHV(HIGH,96),17);VAR30:=MA(LLV(LOW,485),17);VAR31:=MA(LLV(LOW,222),17);VAR32:=MA(LLV(LOW,96),17);VAR33:=MA(((VAR30)*(0.96)+(VAR31)*(0.96)+(VAR32)*(0.96)+(VAR27)*(0.558)+(VAR2 8)*(0.558)+(VAR29)*(0.558))/(6),17);VAR34:=MA(((VAR30)*(1.25)+(VAR31)*(1.23)+(VAR32)*(1.2)+(VAR27)*(0.55)+(VAR28)* (0.55)+(VAR29)*(0.65))/(6),17);VAR35:=MA(((VAR30)*(1.3)+(VAR31)*(1.3)+(VAR32)*(1.3)+(VAR27)*(0.68)+(VAR28)*(0 .68)+(VAR29)*(0.68))/(6),17);VAR36:=LLV(LOW,30);VAR37:=MA((((VAR33)*(3)+(VAR34)*(2)+VAR35)/(6))*(1.738),17);VAR38:=VAR37;VAR39:=LOW;VAR40:=REF(LOW,1);VAR41:=((SMA(ABS(VAR39-VAR40),3,1))/(SMA(MAX(VAR39-VAR40,0),N,1)))*(100); VAR42:=MA(IF(((CLOSE)*(1.35)<=VAR38),(VAR41)*(10),(VAR41)/(10)),N);VAR43:=HHV(VAR42,30);VAR44:=1080531;VAR45:=(3)*(VAR25)-(2)*(SMA(VAR25,15,1));VAR46:=100-VAR45;VAR47:=1;VAR49:=(REF(LOW,1))*(0.9);VAR50:=(LOW)*(0.9);VAR51:=((VAR50)*(VOL)+(VAR49)*(CAPITAL-VOL))/(CAPITAL);VAR52:=EMA(VAR51,30);VAR53:=CLOSE-REF(CLOSE,1);VAR54:=MAX(VAR53,0);VAR55:=ABS(VAR53);VAR56:=((SMA(VAR54,7,1))/(SMA(VAR55,7,1)))*(100);VAR57:=((SMA(VAR54,13,1))/(SMA(VAR55,13,1)))*(100);VAR58:=BARSCOUNT(CLOSE);VAR59:=((SMA(MAX(VAR53,0),6,1))/(SMA(ABS(VAR53),6,1)))*(100);VAR60:=(((-200))*(HHV(HIGH,60)-CLOSE))/(HHV(HIGH,60)-LLV(LOW,60))+100;VAR61:=((CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15)))*(100);VAR62:=SMA((SMA(VAR61,4,1)-50)*(2),3,1);VAR63:=((INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14)))*(100);VAR64:=SMA(VAR63,4,1);VAR65:=SMA(VAR64,3,1);VAR66:=((HHV(HIGH,30)-CLOSE)/(CLOSE))*(100);VAR67:=(VAR59<=25) AND (VAR60<(-95)) AND (VAR66>20) AND (VAR62<(-30)) AND (VAR65<30) AND (VAR52-CLOSE>=(-0.25)) AND (VAR56<22) AND (VAR57<28) AND (VAR58>50);VAR68:=(HIGH+LOW+CLOSE)/(3);VAR69:=(VAR68-MA(VAR68,14))/((0.015)*(AVEDEV(VAR68,14)));VAR70:=(VAR68-MA(VAR68,70))/((0.015)*(AVEDEV(VAR68,70)));VAR71:=IF((VAR69>=150) AND (VAR69<200) AND (VAR70>=150) AND(VAR70<200),10,0);VAR72:=IF((VAR69<=(-150)) AND (VAR69>(-200)) AND (VAR70<=(-150)) AND(VAR70>(-200)),(-10),VAR71);VAR73:=((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100);VAR74:=REVERSE(VAR73);VAR75:=SMA(VAR73,3,1);绝佳买点:=MA(IF((LOW<=VAR36),(VAR42+(VAR43)*(2))/(2),0),N);跑:=FILTER((REF(黑马线,1)>90) AND (A12<0) ,7);买线:=EMA(CLOSE,2);卖线:=EMA((SLOPE(CLOSE,21))*(20)+CLOSE,42);指數位置:=(3)*(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1))-(2)*(S MA(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1),3,1));抄底:=CROSS(指數位置,10);A1:=(VOL=HHV(VOL,120));A2:=((CLOSE)/(OPEN)>1.05);TJ:=A1 AND A2;龙:=VAR10;买4:=VAR14;AA1:=(AMOUNT)/(VOL);BB1:=(LOW<(AA1)*(0.9));CC1:=(((CLOSE-REF(CLOSE,1))/(REF(CLOSE,1)))*(100)>1.2);DD1:=(LOW<(MA(CLOSE,5))*(0.921));EE1:=(VOL<(MA(VOL,5))*(1.5));FF1:=BB1 AND CC1 AND DD1 AND EE1;买3:=FILTER(FF1,3);二十天最低跌幅:=(HHV(CLOSE,20))/(LLV(CLOSE,20));RSV:=((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)))*(100);K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=(3)*(K)-(2)*(D);X:=(LLV(J,2)=LLV(J,8));买1:=CROSS(J,REF(J+0.01,1)) AND X AND (J<20) AND (二十天最低跌幅>=1.3);长期底部:=LLV(HIGH,30);上:=(SMA(LOW,5,2))*(0.96);短期底部:=(LLV(HIGH,30))*(0.93);LC:=REF(CLOSE,1);RSI:=((SMA(MAX(CLOSE-LC,0),6,1))/(SMA(ABS(CLOSE-LC),6,1)))*(100);大顶:=FILTER((VAR17>20) AND FILTER((VAR17<REF(VAR17,1)),5),5);VAR76:=(OPEN+LOW+HIGH+CLOSE)/(4);MAN:=(SMA(HIGH,21,2))*(1.05);短底2:=EMA(VAR76,5);支撑:=HHV(短底2,60);VAR77:=((HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36)))*(100);VAR78:=SMA(VAR77,5,1);VAR79:=SMA(VAR78,8,1);VAR80:=CROSS(VAR78,VAR79) AND (VAR79<5);VAR81:=(CLOSE>LLV(CLOSE,60)+(0.3)*(LLV(CLOSE,60))) AND VAR80;VAR82:=IF((CLOSE>1000),VAR80,VAR81);黑马起步:=VAR82;逃:=FILTER((HIGH>支撑) AND (CLOSE<支撑) AND ((CLOSE)/(OPEN)>0-1.06) AND (CLOSE<OPEN),5);逃命:=(黑马起步>0);选逃:=FILTER((((逃命OR 逃) OR CROSS(84,RSI)) OR 大顶),3) ;WW:=1;散户:=((SMA(VAR75,3,1))*(VAR47))*(WW);新庄:=((SMA(散户,3,1))*(VAR47))*(WW);高抛:=CROSS(新庄,散户) AND (新庄>75);买:CROSS(买线,卖线) ,COLOR0000FF;卖:CROSS(卖线,买线) ,COLOR008000;大黑马:=CROSS(趋势线3,0) AND (黑马线<40);大买:=FILTER((绝佳买点>30000),5);大资金进场:=VAR95 AND (COUNT(VAR95,30)=1);做空:=高抛+选逃+(卖=1)+跑;选拉升股:=(买AND (拉升资金>0) OR (拉升资金>0) AND (COUNT(买,5)>=1) AND (COUNT(做空,BARSLAST(买))=0) AND (REF((拉升资金>0) AND (COUNT(买,5)>=1) AND (COUNT(做空,BARSLAST(买))=0),1)=0));选潜力股:=(COUNT(做空,BARSLAST(买))=0) AND((CLOSE)/(REF(CLOSE,BARSLAST(买)))<=1.08) AND ((主力建仓=120) OR (拉升资金>0)) ;选暴涨股:买AND ((COUNT((主力建仓=120),BARSLAST(做空))>=3) OR (COUNT(大黑马+大买+大资金进场,7)>=1)),COLORFF0000;选暴涨潜力:((CLOSE)/(REF(CLOSE,BARSLAST(选暴涨股)))<=1.1) AND (COUNT(做空,BARSLAST(选暴涨股))=0),COLOR000080;选超级暴涨股:(选暴涨股AND (COUNT((主力建仓=120),10)>=3) OR 买AND (COUNT(大黑马+大买+大资金进场,7)>=1) AND (COUNT(做空,BARSLAST(((大黑马OR 大买) OR 大资金进场)))=0)),COLOR800080;黄金暴涨股:买AND (COUNT((主力建仓=120),BARSLAST(做空))>=3) AND (拉升资金>0) AND (COUNT(大黑马+大买+大资金进场,7)>=1) AND (COUNT(做空,BARSLAST(((大黑马OR 大买) OR 大资金进场)))=0),COLOR00FFFF;坚决买进:(((买AND 选暴涨潜力OR 选暴涨股) OR 选超级暴涨股) OR 黄金暴涨股),COLORFF00FF;坚决买进潜力股:(坚决买进OR ((CLOSE)/(REF(CLOSE,BARSLAST(坚决买进)))<=1.1) AND (COUNT(做空,BARSLAST(坚决买进))<=1)) AND (COUNT(做空,BARSLAST(买))=0) AND (做空=0),COLOR00FF00;黄金暴涨潜力股:(黄金暴涨股OR ((CLOSE)/(REF(CLOSE,BARSLAST(黄金暴涨股)))<=1.1) AND (COUNT(做空,BARSLAST(黄金暴涨股))=0)) AND (COUNT(做空,BARSLAST(买))=0) AND (做空=0),COLORFFFFFF;选底:FILTER((LOW<=上) AND (HIGH>=短期底部) AND (CLOSE>=长期底部) AND ((CLOSE)/(OPEN)>1.03),3) AND (DATE<=1080531),COLORFFFF00;稳赚10买:FILTER((买3 OR 选底),3) AND (COUNT(买1+买4+龙,3)>0),COLOR0000FF; 选持股阶段股:(COUNT(卖,BARSLAST(买))=0),COLOR008000;STICKLINE(黄金暴涨潜力股,50,40,7,0),COLORFF0000;STICKLINE((买=1),0,50,7,0),COLOR1020FF;STICKLINE((卖=1),50,100,7,0),COLORFFDD00;STICKLINE(VAR95 AND (COUNT(VAR95,30)=1),50,85,5,0),COLORFF0000; STICKLINE(大黑马,50,90,5,0),COLORFF0000;STICKLINE(大买,50,30,3,0),COLOR0000FF;STICKLINE(选逃,50,65,3,0),COLORFF0000;STICKLINE((选底=1),50,80,3,0),COLOR399C71;STICKLINE((稳赚10买=1),50,65,3,0),COLORFF0000;STICKLINE(高抛,50,75,3,0),COLORFF0000;STICKLINE(跑,50,65,3,0),COLORFF0000;STICKLINE(坚决买进潜力股,50,58,6,0),COLORFF0000;STICKLINE(选持股阶段股,70,50,0.1,0),COLOR0000FF;DRAWTEXT(选持股阶段股,75,'—'),COLOR0000FF;DRAWTEXT(坚决买进,13,'坚决买'),COLOR00FFFF;DRAWTEXT(选拉升股,40,'▲'),COLOR00FFFF;DRAWTEXT(选暴涨股,50,'★'),COLOR00FFFF;DRAWTEXT(选超级暴涨股,60,'●'),COLOR00FFFF;DRAWTEXT(黄金暴涨股,73,'■'),COLOR00FFFF;DRAWTEXT(VAR95 AND (COUNT(VAR95,30)=1),110,'大资金'),COLORFFFFFF; DRAWTEXT(VAR95 AND (COUNT(VAR95,30)=1),100,'进场'),COLORFFFFFF; DRAWTEXT(跑,70,'跑'),COLORYELLOW;DRAWTEXT(大黑马,105,'大黑马'),COLORFFFFFF;DRAWTEXT(CROSS(新庄,散户) AND (新庄>75),90,'抛'),COLOR008000;DRAWTEXT((稳赚10买=1),80,'赚10'),COLORFFFFFF; DRAWTEXT((稳赚10买=1),67,'%买'),COLORFFFFFF; DRAWTEXT(IF((选底=1),100,0),92,'底'),COLORFFFFFF; DRAWTEXT(选逃,80,'逃'),COLOR008000; DRAWTEXT(大买,30,'大买'),COLORFFFFFF; DRAWTEXT((买=1),(-2),'买'),COLOR0000FF; DRAWTEXT((卖=1),117,'卖'),COLOR00FFFF;。

相关文档
最新文档