通达信跟庄指标公式及选股公式
择自:
源码:
{跟庄副图}
主力资金:EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3), COLORRED,LINETHICK2;
即将爆发线: 65,COLOR00FF00;
爆发线:80,COLORWHITE,LINETHICK1;
DRAWTEXT(CROSS(主力资金,爆发线),主力资金,’★爆发!’) ,COLORYELLOW;
爆发警戒线: 50,COLOR00FF00;
抄底线:20,COLORWHITE,LINETHICK2;
DRAWTEXT(CROSS(主力资金,抄底线),主力资金,’★抄底’) ,COLORWHITE;
DRAWTEXT(CROSS(主力资金,爆发警戒线),主力资金,’★加仓’) ,COLORWHITE;
DRAWTEXT(CROSS(主力资金,即将爆发线),主力资金,’★加仓’) ,COLORWHITE;
DRAWTEXT(CROSS(爆发线,主力资金),爆发线,’★空仓’) ,COLORWHITE;
LC:= REF(C,1);
VAR1:=REF(CLOSE,1);
方向:=SMA(MAX(CLOSE-VAR1,0),5,1)/SMA(ABS(CLOSE-VAR1),5,1)*100,COLORYELLOW;
DRAWTEXT(CROSS(抄底线,方向),抄底线,’★逢低进场!’) ,COLORRED;
DRAWTEXT(CROSS(方向,抄底线),方向+20,’★逢高出场!’) ,COLORWHITE;
跟庄选股公式:
{跟庄抄底}
主力资金:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3), COLORRED,LINETHICK2;
抄底线:=20,COLORWHITE,LINETHICK2;
DRAWTEXT(CROSS(主力资金,抄底线),主力资金,’★抄底’) ,COLORWHITE;
++++++++++++++++++++++++++++++
{跟庄加仓1}
主力资金:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3), COLORRED,LINETHICK2;
即将爆发线:=65,COLOR00FF00;
DRAWTEXT(CROSS(主力资金,即将爆发线),主力资金,’★加仓’) ,COLORWHITE;
+++++++++++++++++++++++++++++
{跟庄加仓2}
主力资金:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3), COLORRED,LINETHICK2;
爆发警戒线:=50,COLOR00FF00;
DRAWTEXT(CROSS(主力资金,爆发警戒线),主力资金,’★加仓’) ,COLORWHITE;
++++++++++++++++++++++++++++
{跟庄爆发}
主力资金:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3), COLORRED,LINETHICK2;
爆发线:=80,COLORWHITE,LINETHICK1;
DRAWTEXT(CROSS(主力资金,爆发线),主力资金,’★爆发!’) ,COLORYELLOW;
通达信低进高出副图指标:
择自:
DRAWGBK(C>0,RGB(10,160,0),RGB(25,15,0),0,’ ‘,0);
爆发线:80,COLORRED;
即将爆发线: 65,COLORMAGENTA;
警戒线: 50,COLORCYAN;
低进线:=10,NODRAW;{第二版新加此线}
抄底线:7.5,COLORBROWN;{原为20,后10,现7.5可提前发现抄底时机}
趋势线:EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3),COLORWHITE,LINETHICK2;
LC:= REF(C,1);
F1:=ZIG(3,15);
上行:IF((F1> REF(F1,1)),105,5),COLORYELLOW,LINETHICK1;
IF(上行>50 AND (C>MA(C,10) OR C>REF(C,2)),趋势线,DRAWNULL),LINETHICK2,COLORRED;
IF(上行<50 AND (C>MA(C,10) OR C>REF(C,2)),趋势线,DRAWNULL),LINETHICK2,COLORRED;
IF(上行>50 AND (C<MA(C,10) OR C<REF(C,2)),趋势线,DRAWNULL),LINETHICK2,COLORGREEN;
IF(上行<50 AND (C<MA(C,10) OR C<REF(C,2)),趋势线,DRAWNULL),LINETHICK2,COLORGREEN;
DRAWTEXT(CROSS(趋势线,即将爆发线) AND 上行 > 50,趋势线,’涨’) ,COLORMAGENTA;{原爆发线}
DRAWTEXT(CROSS(趋势线,抄底线) AND 上行 < 50,趋势线,’抄底’) ,COLORWHITE;
DRAWTEXT(CROSS(趋势线,警戒线) AND 上行 < 50,趋势线,’关注’) ,COLORWHITE;
DRAWTEXT(CROSS(趋势线,警戒线) AND 上行 > 50,趋势线,’加仓’),COLORCYAN;{原即将爆发线}
DRAWTEXT(CROSS(爆发线,趋势线),爆发线,”) ,COLORWHITE;
DRAWTEXT(((CROSS(上行,低进线)AND(趋势线 <= 10)) OR CROSS(趋势线,低进线)) AND 上行 > 50,趋势线,’低进’) ,COLORYELLOW;{原为(上行,抄底线)}
DRAWTEXT(CROSS(爆发线,上行),趋势线,’★高出’) ,COLORRED;
抄底XG:CROSS(趋势线,抄底线) AND 上行 < 50,NODRAW,COLORWHITE;{曾上行 > 50}
低进XG:((CROSS(上行,低进线)AND(趋势线 <= 10)) OR CROSS(趋势线,低进线)) AND 上行 > 50,NODRAW,COLORYELLOW;{原(趋势线,抄底线),后(主力资金,低进线)}
加仓XG:CROSS(趋势线,警戒线) AND 上行 > 50,NODRAW,COLORCYAN;{原即将爆发线}
拉涨XG:CROSS(趋势线,即将爆发线) AND 上行 > 50,NODRAW,COLORMAGENTA;{原爆发线};
{增加基于MACD的钝化分析数字1~9}
YY:=((C-MA(C,6))/MA(C,6)*100+(C-XMA(C,24))/MA(C,24)*100+(C-XMA(C,32))/MA(C,32)*100)/3;
{PP:=BARSLAST(CROSS(MA(C,5),MA(C,10)));
大趋势:=BARSLAST(CROSS(MA(C,10),MA(C,5))),COLOR00FFFF;
PP1:=IF(PP<大趋势,PP+1,0);
PP3:=MA(C,5)>MA(C,20) AND MA(C,10)>MA(C,20) AND MA(C,20)>REF(MA(C,20),1) AND MA(C,30)>REF(MA(C,30),1);
MC:=HHV(PP1,5)>=2 AND PP3 AND MA(C,5)>REF(MA(C,5),1) AND MA(C,5)>MA(C,10);}
{准备跑:MC*PP1,COLORFF0000,LINETHICK1;
STICKLINE(YY<-9 AND YY> REF(YY,1),抄底线,0,3,0),COLOR0000FF;
STICKLINE(YY>9 AND FILTER(YY<REF(YY,1),5),抄底线,0,3,0),COLOR80FF80;
STICKLINE(YY>20 AND FILTER(YY<REF(YY,1),5),抄底线,0,3,0),COLOR80FF80;
STICKLINE(HHV(YY>20,10) AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(C,20)+2*STD(C,20)),抄底线,0,3,0)COLORFF0033;}
主力资金:EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3), COLORRED,LINETHICK2;
爆发警戒线: 50,COLOR00FF00;
DRAWTEXT(CROSS(主力资金,爆发警戒线),主力资金,’加’) ,COLORWHITE;
DRAWTEXT(CROSS(主力资金,即将爆发线),主力资金,’加’) ,COLORWHITE;
DRAWTEXT(CROSS(爆发线,主力资金),爆发线,’空’) ,COLORWHITE;
方向:IF((F1> REF(F1,1)),5,105),COLOR00FF00,LINETHICK2;
DRAWTEXT(CROSS(抄底线,方向),抄底线,’进!’) ,COLORRED;
DRAWTEXT(CROSS(方向,抄底线),方向+20,’出!’) ,COLORWHITE;
跟庄买入起爆点指标源码:
择自:
1、股价上涨开始缓慢,macd开始拐头且红柱开始减短,股价开始步入调整趋势,应该出局或者减仓。如果是在震荡行情中,macd开始拐头且且红柱开始缩短,股价开始步入调整趋势,应该出局或者减仓。
一:起爆点买入指标源码:
主流资金:EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3), colorred,linethick2;
非主流资金:EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34)),3),colorgreen,linethick2;
20,POINTDOT,colorf00ff0;
50,POINTDOT,colorgreen;
80,POINTDOT,colorwhite;
二:抄底起爆指标源码:
金秋十月已到尾声,整个盘面从七月大涨后震荡到现在,很多人沉住气等待下一波行情,也有的人信心被消耗殆尽。如果要我说,股市本来就是考验耐性的地方,也是一场很冒险的梦。多少人摩拳擦掌的想在股市大展身手,最后一场空,总归是不要想着跑赢客观的环境,与它共生。
大家都想买在涨点,在跌点前出逃,今天给大家分享的指标名为“涨跌先知”,首先该指标不含未来函数,大家可以放心使用,该指标主要是辅助大家做波段使用,具体我们来看它的使用方法和具体案例、源码分享:
一、“涨跌先知”使用方法:
1、本指标提示点较多,可做波段可做短线,非常全面清晰明了,是比较实用指标之一。
2、如下图:上方绿柱为高抛点;青色柱为短线反弹;中间红叉为持股,绿圆为持币;黄色柱状为起爆点;粉红色柱为抄底点;
3、蓝色柱为起跌点;红线向下卖出股票,红线向上买入股票;最下方红绿柱的意思为红色短柱为红线拐头向上,为持股期;绿色短柱为红线拐头向下,为持币期;具体如下图:
三、“涨跌先知”实战案例:
五、“涨跌先知”指标源码(副图):
DRAWGBK(O>C,RGB(40,40,40),RGB(0,0,40),0,’01’,0); {背景不要可删除}
N:=2.5;P:=5;A:=9;
VAR8:=LLV(LOW,10);
VAR9:=HHV(HIGH,25);
清仓:17.5*N,POINTDOT,COLORGREEN,LINETHICK2;
卖出:14.5*N,COLORGREEN,LINETHICK1;
分界线:0,COLORRED,LINETHICK1;
底部:-15.5*N,COLORRED,LINETHICK2;
动力线:= (EMA((CLOSE-VAR8)/(VAR9-VAR8)*4,4)*10-17.5)*N;
RSV:=((((HHV(HIGH,P) – CLOSE) / (HHV(HIGH,P) – LLV(LOW,P))) * 200) – 125);
散户:SMA(RSV,A,1)+15,COLORGREEN,LINETHICK1;
RSV1:=((((CLOSE – LLV(LOW,P)) / (HHV(HIGH,P) – LLV(LOW,P))) * 200) – 105);
主力:SMA(RSV1,A,1)+15,COLORRED,LINETHICK1;
T1:=CROSS(主力,
T2:=CROSS(主力,底部);
T3:=CROSS(清仓,主力);
T4:=CROSS(卖出,主力);
准备起爆:=CROSS(主力,散户);
STICKLINE(准备起爆,15,-15,2,0),COLOR00FFFF;
小心阴跌:=CROSS(散户,主力);
STICKLINE(小心阴跌,15,-15,2,0),COLORBLUE;
STICKLINE(T3 OR T4 ,卖出,清仓,2,0),COLORGREEN;
STICKLINE(T1 OR T2 ,
正差:主力>=REF(主力,1);
STICKLINE( 正差,-50,-47,3,0 ),COLORRED;
负差:主力<REF(主力,1);
STICKLINE( 负差,-50,-47,3,0 ),COLORGREEN;
REFLINE:0;
DIFF:=EMA(CLOSE,3)-EMA(CLOSE,8);
DEA:=EMA(DIFF,5);
MACD := 2*(DIFF-DEA);
X1:=EMA(DIFF,5)*5;
X2:=((EMA(CLOSE,3)-EMA(CLOSE,8)))*5;
X3:IF(X2>0,X2,0),POINTDOT,COLORRED;
X4:=IF(X2<0,X2,0),POINTDOT,COLORGREEN;
资金动能A:X2,COLORWHITE,LINETHICK0;
资金动能B:X1,COLORBROWN,LINETHICK0;
VAR2:=(CLOSE-LLV(LOW,26))/(HHV(HIGH,26)-LLV(LOW,26))*100;
VAR3:=SMA(SMA(VAR2,3,1),3,1);
VAR4:=EMA(VAR3,5);
大底部:=IF(CROSS(VAR4,10) AND VAR4>10,14,0);
中底部:=IF(CROSS(VAR4,20) AND VAR4>10,13,0);
小底部:=IF(CROSS(VAR4,30) AND VAR4>10,12,0);
AA:=VOL>=REF(V,1)*1.91 AND C>REF(C,1)*1.01;
红柱:DRAWICON(CROSS(资金动能A,0) AND AA,14.5*N,38);
持币:IF(SAR(10,2,20)>=H,0,DRAWNULL),CIRCLEDOT,LINETHICK3,COLORGREEN;
持股:IF(SAR(10,2,20)<=L,0,DRAWNULL),CROSSDOT,LINETHICK3,COLORRED;
个股:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3),COLOR1010FF;
短线反弹:IF(CROSS(个股,9),30,0),STICK,LINETHICK3,COLORFF00FF;
A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
SHORT:=7; LONG:=19;
RMA:=EMA(CLOSE,SHORT);
NMA:=EMA(CLOSE,LONG);
通达信神奇资金指标公式源码副图:
择自:https://www.bilibili.com/read/cv25071090/
10;
神奇资金:EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),COLORDEBC56;
X_1:=MA(CLOSE,5);
X_2:=MA(CLOSE,10);
X_3:=MA(CLOSE,20);
X_4:=MA(CLOSE,60);
X_5:=BArslAST(HHV(HIGH,100)=HIGH);
底部放量:MA(vol,5)>MA(VOL,20) AND CLOSE<X_1 AND X_1<X_2 AND X_2<X_3 AND X_3<X_4 OR MA(VOL,5)>MA(VOL,10) AND CLOSE<X_1 AND X_1<X_2 AND X_2<X_3 AND X_3<X_4;
IF(底部放量,VOL/5000000,0),LINESTICK,COLOR3385FF;
一级买入:COUNT(神奇资金<REF(神奇资金,1),19)>=14 OR COUNT(神奇资金<REF(神奇资金,1),15)>=12 OR COUNT(神奇资金<REF(神奇资金,1),9)>=8 AND 神奇资金<REF(神奇资金,1) AND 神奇资金<10 AND (神奇资金+REF(神奇资金,1))*0.5<30;
二级买入:COUNT(神奇资金<15,5)>=4 AND 神奇资金<15;
三级买入:COUNT(神奇资金<10,4)>=1 AND VOL<REF(VOL,1) AND (底部放量=1 OR REF(底部放量,1)),COLORRED;
四级买入:COUNT(一级买入,4)>=1 AND COUNT(二级买入,4)>=1 OR (COUNT(一级买入,4)>=1 AND COUNT(三级买入,4)>=1) OR (COUNT(二级买入,4)>=1 AND COUNT(三级买入,4)>=1) AND 神奇资金<15;
五级买入:COUNT(一级买入,4)>=1 AND COUNT(二级买入,4)>=1 AND COUNT(三级买入,4)>=1 AND 神奇资金<15;
六级买入:COUNT(一级买入,2)>=1 AND COUNT(二级买入,2)>=1 AND COUNT(三级买入,2)>=1 AND COUNT(四级买入,2)>=1 AND COUNT(五级买入,2)>=1 AND 神奇资金<15;
小三W底:COUNT(crOSS(神奇资金,10),42)=2 AND 神奇资金<6,COLOR6666FF;
大三w底:COUNT(CROSS(神奇资金,50),100)=2 AND 神奇资金<10 AND X_5>90,COLORWHITE;
DRAWICON(一级买入,90,9);
DRAWICON(二级买入,100,13);
DRAWICON(三级买入,110,24);
DRAWICON(四级买入,120,25);
DRAWICON(五级买入,130,26);
DRAWICON(六级买入,140,14);
X_6:=IF(大三W底,X_5,0);
STICKLINE(大三W底,10,90,1,0),COLORWHITE;
STICKLINE(小三W底,10,80,1,0),COLOR6666FF;
STICKLINE(六级买入,10,70,1,0),COLORGREEN;
STICKLINE(五级买入,10,60,2,0),COLORMAGENTA;
STICKLINE(四级买入,10,50,3,0),COLORYELLOW;
STICKLINE(三级买入,10,40,4,0),COLORRED;
STICKLINE(二级买入,10,30,5,0),COLORBLUE;
STICKLINE(一级买入,10,20,6,0),COLORLIGRAY;
EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),COLORDEBC56;
通达信跟庄建仓副图指标公式源码:
择自:
DRAWTEXT_FIX(ISLASTBAR,0.988,0.06,1,’ ★【王谷】’),COLOR0080EE;
{跟庄建仓}
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(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
DRAWTEXT_FIX(C>O,0.01,0.9,0,’ WWW.CXH99.COM ‘),COLORRED;
DRAWTEXT_FIX(C>O,1,1,0,”),COLORRED;
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,COLOREEEEEE;
DRAWICON(CROSS(趋势,0),0,1);
{机构建仓区:0,LINETHICK0,COLOREEEEEE;}
VAR4:=(趋势-REF(趋势,1))/REF(趋势,1)*100;
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 ,庄建仓*3.6,3.5,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;
趋势线: 趋势,COLOREEEEEE,LINETHICK1;
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,’追涨’),COLOR0000EE;
0,COLOREEEEEE;
跟庄拾钱(副图)公式源码[通达信公式]:
择自:
跟庄拾钱指标源码:
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(SMA((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;
(趋势>80);
DRAWICON(CROSS(趋势,0),0,1);
((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_FIX(C>O,0.01,0.9,0,’ WWW.CXH99.COM ‘),COLORRED;
DRAWTEXT_FIX(C>O,1,1,0,’ cxh99.com ‘),COLORRED;
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,9);
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,5,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;
趋势线: 趋势,COLORFF0000;
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;
买入:IF(VAR5,60,0);
通达信极品波段指标公式:
择自:
底部:10;
卖出线: 99;
趋势1:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))
*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))
/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),COLOR0000FF,LINETHICK2;
买入警戒:IF(趋势1<=10,20,0),COLOR00FFFF;
卖出警戒: IF(趋势1>=90,80,100),COLOR00FF00;
RSV:=(((CLOSE – LLV(LOW,9)) / (HHV(HIGH,9) – LLV(LOW,9))) * 100);
VARA:=REF(LOW,1);
VARB:=SMA(ABS(LOW-VARA),3,1)/SMA(MAX(LOW-VARA,0),3,1)*100;
VARC:=EMA(IF(CLOSE*1.3,VARB*10,VARB/10),3);
K:=SMA(RSV,3,1),COLOR00FFFF,LINETHICK2;
D:=SMA(K,3,1),COLOR00FFFF,LINETHICK2;
J:=3*K-2*D,LINETHICK2,COLORFFFFFF;
{爱约股-股票公式网站 }
VAR1:=(2*CLOSE+HIGH+LOW+OPEN)/5;
高抛: 80;
VAR2:=LLV(LOW,34);
VAR3:=HHV(HIGH,34);
SK: EMA((VAR1-VAR2)/(VAR3-VAR2)*100,13),LINETHICK2,COLORFFFFFF;
SD: EMA(SK,3),LINETHICK2,COLOR00FF00;
DRAWBAND(SK,RGB(250,0,10),SD,RGB(20,200,0));
STICKLINE(CROSS(J,3),20,1,2,0),COLOR000FFF,LINETHICK3;
DRAWTEXT(CROSS(J,3),55,’跟庄’);
VAR1N:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR2N:=EMA(VAR1N,30);
VAR3N:=EMA(VAR2N,30);
VAR4N:=3*VAR2N-2*VAR3N;
势:EMA(VAR4N,5),COLORBLUE,LINETHICK3;
VAR5:=LLV(LOW,10);
VAR6:=HHV(HIGH,25);
决策线:EMA((CLOSE-VAR5)/(VAR6-VAR5)*100,4),COLORRED,LINETHICK2;
DRAWTEXT(CROSS(80,决策线),105,’闪’),COLOR00FF00;
DRAWICON(CROSS(80,决策线),110,2);
STICKLINE(势>80,势,80,1,0),COLORGREEN;
STICKLINE(势<10,势,10,1,0),COLOR00FFFF;
DRAWTEXT(CROSS(10,势),35,’进’),COLOR000FFF;
DRAWICON(CROSS(10,势),0,1);
【精选指标公式】通达信趋势波段操盘副图指标 :
择自:http://news.sohu.com/a/645942309_121243431
下面给各位介绍指标使用方法:
1、不要满市场海选,沪深两市几千只股票,海选、不知道企业情况、基本面,贸然买进去,很容易踩雷。所以,要精心选择3——5只自己熟悉的、业绩优秀、成长性高、近两年没有解禁压力,板块题材市场关注度高的股票(注意板块、题材不要重复)。
2、选出的股票波动性要好:波段明显的股票才适合此指标。
3、选出的股票纳入自选,每天观察,不出信号绝对不买,耐心很重要!
4、严格按指标买卖:最起码严格按指标买,没有买入信号一定要耐心等待,卖出的话可以在第一根蓝柱子出现时卖出,也可以在股价远离5日均线止盈卖出。
5、严格止损:波段买入,万一走势很弱,一定要设置止损位置或止损百分点,严格止损,切记不要硬抗,那只会让你越套越深。
6、大赚小亏你就是赢家:比起技术分析、心态等等,纪律是最最最重要的,一定要严格按照上面的使用说明去做,指标的使用因人而异,一定要严格止盈止损,长期坚持下来,你就会发现,大赚小亏成了你的炒股常态,账户里的钱将缓慢增加。
【趋势波段操盘】副图源码:
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;
买:=IF(J<0,10,0);
条件:=CROSS(9.9,买);
VAR1:=(2*CLOSE+HIGH+LOW)/4;
VAR2:=LLV(LOW,5);
VAR3:=HHV(HIGH,5);
VAR4:=EMA((VAR1-VAR2)/(VAR3-VAR2)*100,5);
MA1:=MA(VAR4,2);
AA:STICKLINE(VAR4>MA1,VAR4,MA1,3,1),COLORRED;
BBB:STICKLINE(VAR4>MA1 AND REF(VAR4,1)<30,VAR4,MA1,3,1),COLORRED;
STICKLINE(VAR4<=MA1,VAR4,MA1,3,1),COLORFFCC66;
Y1:=LLV(L,17);
Y2:=SMA(ABS(L-REF(L,1)),17,1);
Y3:=SMA(MAX(L-REF(L,1),0),17,2);
Q:=-(EMA(IF(L<=Y1,Y2/Y3,-3),1));
VAR5:=EXPMA(EXPMA(EXPMA((2*CLOSE+HIGH+LOW)/4,4),4),4);
天:=( MA((VAR5-REF(VAR5,1))/REF(VAR5,1)*100,2));
地:=( MA((VAR5-REF(VAR5,1))/REF(VAR5,1)*100,1));
STICKLINE(地>天 AND 地<0,10,0,1,0),COLORRED;
XG:STICKLINE(地>天 AND 地<0,10,0,1,0)=1,COLORRED;
【趋势波段操盘】选股源码:
VAR5:=EXPMA(EXPMA(EXPMA((2*CLOSE+HIGH+LOW)/4,4),4),4);
天:=( MA((VAR5-REF(VAR5,1))/REF(VAR5,1)*100,2));
地:=( MA((VAR5-REF(VAR5,1))/REF(VAR5,1)*100,1));
A:=地>天 AND 地<0;
XG:CROSS(A>REF(A,1),0.5);
【趋势波段操盘】效果图展示:
买卖波段趋势波段买入指标公式源码[其他软件公式]
择自:
源码:
Varv:=(2*C+H+L)/4;
Varu:=LLV(LOW,30);
VarA1:=HHV(HIGH,30);
B:=EMA((Varv-Varu)/(VarA1-Varu)*100,8);
B1:=EMA(B,5);
STICKLINE(B-B1>0,B,B1,8,1),COLORRED;
STICKLINE(B-B1<0,B,B1,8,1),Color00FF00;
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
低吸:if(CROSS(RSI,11),70,0),colorwhite,pointdot;
STICKLINE(低吸,70,0,4,0),colorwhite;
var7:=ema(amount/vol/100,3);
var8:=ema(var7,88);
var9:=ema(var7,88)*0.85;
vara:=var9*0.87;
varb:=low<vara and close>ref(close,1)*1.02;
STICKLINE(filter(varb,6),65,0,4,0),colorff00ff;
坚决买进:if(filter(varb,6),65,0),colorff00ff,pointdot;
VarF:=(2*CLOSE+HIGH+LOW)/4;
Va4:=LLV(LOW,34);
Va5:=HHV(HIGH,34);
Va6:=EMA((VarF-Va4)/(Va5-Va4)*100,6);
Va7:=EMA(0.667*REF(Va6,1)+0.333*Va6,4);
出击:if(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>0.3 AND COUNT(Va6>Va7,3) AND REF(LOW,1)=LLV(LOW,120) AND
CLOSE>OPEN,1,0),60,0),COLORYELLOW,pointdot;
STICKLINE(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>0.3 AND COUNT(Va6>Va7,3) AND
REF(LOW,1)=LLV(LOW,120) AND CLOSE>OPEN,1,0),60,0,4,0),COLORYELLOW;
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*REF(a,11)+8*REF(a,12)
+7*REF(a,13)+6*REF(a,14)+5*REF(a,15)+4*REF(a,16)+3*REF(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),55,0),color0099ff,pointdot;
STICKLINE(CROSS(D1,K1),55,0,4,0),COLOR0099FF;
多方趋势:=7*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)
-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1)
-sma(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)
,3,1),2,1);
天线:=78.89;
stickline(cross(天线,多方趋势),90,95,6,0),COLOR00FF00;
漂亮趋势(波段买卖)指标:
择自:
{分时控盘}
VAR1:=EMA(EMA(CLOSE,13),13);
控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;
STICKLINE(控盘<0,控盘,0,1,1),COLOR00FF00;
STICKLINE(控盘>REF(控盘,1) AND 控盘<0,控盘,0,1,1),COLORFF00FF;
无庄控盘:=控盘<0;
STICKLINE(控盘>REF(控盘,1) AND 控盘>0,控盘,0,1,1),COLOR0000FF;
有庄控盘:=控盘>REF(控盘,1) AND 控盘>0;
VAR2:=100*WINNER(CLOSE*0.95);
STICKLINE(控盘<REF(控盘,1) AND 控盘>0,控盘,0,1,1),COLORFFFF00;
主力出货:=控盘<REF(控盘,1) AND 控盘>0;
STICKLINE(VAR2>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0,1,1),COLOR00FFFF;
高度控盘: VAR2>50 AND COST(85)<CLOSE AND 控盘>0,COLOR00FFFF,LINETHICK2;
A10:=CROSS(控盘,0);
控盘B:=FILTER(IF(A10,1,0),5);
{分时价格原码}
JJ:=DYNAINFO(11);
{波段买卖原码}
P:=55;S:=8;M1:=3;
财:=(EMA(CLOSE,S)-EMA(CLOSE,P))*10,COLORRED,LINETHICK2;
神:=EMA(财,M1),COLORGREEN,LINETHICK1;
DRAWBAND(财,RGB(255,0,0),神,RGB(0,100,50));
{股价与均线偏离买卖条件}
BTJ1:=(C-JJ)/JJ<-0.005;
BTJ11:=(C-JJ)/JJ<-0.03;
BTJ12:=LAST(JJ>=REF(JJ,1),5,1) AND (C-JJ)/JJ<0.005;
STJ1:=(C-JJ)/JJ>0.005;
{控盘买卖条件}
STJ01:=控盘<REF(控盘,1) AND 控盘>0.5;
STJ02:=控盘>0;
BTJ2:=控盘>REF(控盘,1) AND 控盘<-0.2;
BTJ22:=控盘>REF(控盘,1) AND 控盘<0 ;
{波段买卖条件}
BTJ3:=CROSS(财,神) AND 财<-0.3;
BTJ32:=CROSS(财,神) AND 财<-0.1;
STJ31:=CROSS(神,财);
STJ32:=CROSS(神,财) AND 财>1.618;
{以下为信号};
BTJ81:=FILTER(BTJ1 AND BTJ2 AND BTJ3,13);
BTJ811:=FILTER(BTJ11 AND BTJ2 AND BTJ3,13);
BTJ82:=FILTER(BTJ12 AND BTJ22 AND BTJ32,13);
DRAWICON(BTJ82,神,23);{追买};
DRAWICON(BTJ81 AND TIME>10,神,27);{};
DRAWICON(BTJ811 AND TIME>10,神,26);{有庄};
DRAWTEXT(BTJ81,神,”),COLORRED;
DRAWTEXT(BTJ811,神*1.2,’有庄’),COLORWHITE;
STJ81:=FILTER(STJ1 AND STJ01 AND STJ31,13);
DRAWICON(STJ81,神,19);
STJ82:=FILTER(STJ02 AND STJ32 ,13);
DRAWICON(STJ82,神,15);
STJ83:=STJ81 AND STJ82;
DRAWTEXT(STJ83,神,’必卖’),COLOR00FF00;
通达信趋势无敌波段买卖指标公式:
择自:
N:=9;
M:=14;
N1:=6;
TYP := (HIGH + LOW + CLOSE)/3;
CC1:=(TYP-MA(TYP,M))/(0.015*AVEDEV(TYP,M)),COLORFF00FF;
C1:=SMA(CC1,3,1);
C2:=SMA(C1,3,1);
C3:=3*C1-2*C2;
CB1:=EMA(C3,5);
CB2:=REF(CB1,1);
DRAWBAND(CC1,RGB(220,50,100),100,RGB(100,150,72));
DRAWBAND(CC1,RGB(220,50,100),100,RGB(100,80,220));
STICKLINE(C>1,100,-100,5,0),COLORGRAY;
CCI:CC1,COLORFF00FF;
LC := REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
RSI:(RSI1-50)*5,LINETHICK2,COLORYELLOW;
R1:=SMA(RSI,3,1);
D1:=SMA(R1,3,1);
J1:=3*R1-2*D1;
RR1:=EMA(J1,5);
RR2:=REF(RR1,1);
RR:=RR1>RR2;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,3,1);
K1:(K-50)*5,COLORFFFF00;
K2:=SMA(K1,3,1);
D2:=SMA(K2,3,1);
J2:=3*K2-2*D2;
BB1:=EMA(J2,5);
BB2:=REF(BB1,1);
买入:=RR AND NOT(REF(RR,1)) AND (RR1<-100 AND BB1<-100) AND CB1<-100;
DRAWICON(买入,-200,1);
卖出:=REF(RR,1)=1 AND NOT(RR) AND CB1>100;
DRAWICON(卖出,200,2);
LC1:=REF(CLOSE,1);
RSI5:=((SMA(MAX((CLOSE – LC1),0),5,1) / SMA(ABS((CLOSE – LC1)),5,0)) * 100);
TRR:=SUM(MAX(MAX((HIGH – LOW),ABS((HIGH – REF(CLOSE,1)))),ABS((LOW – REF(CLOSE,1)))),10);
HD:=(HIGH – REF(HIGH,1));
LD:=(REF(LOW,1) – LOW);
DMP:=SUM(IF(((HD > 0) AND (HD > LD)),HD,0),10);
DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),10);
PDI:=((DMP * 100) / TRR);
MDI:=((DMM * 100) / TRR);
ADX:=MA(((ABS((MDI – PDI)) / (MDI + PDI)) * 100),5);
AV:=(RSI5 + ADX);
DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);
0,COLORFF00FF;
WR10:=((100 * (HHV(HIGH,10) – CLOSE)) / (HHV(HIGH,10) – LLV(LOW,10)));
NEWVOL:=(RSI5 – WR10);
阶段底部:=(AV + NEWVOL);
STICKLINE((阶段底部 >= 0),0,阶段底部,0.3,1),LINETHICK2,COLORCC6600;
STICKLINE((阶段底部 < 0),0,阶段底部,0.8,1),LINETHICK6,COLORRED;
趋势线:LLV(阶段底部,1),COLORFFFFFF;
STICKLINE((趋势线 >230 ),250,趋势线,0.8,1),LINETHICK6,COLORGREEN;
230,COLORFFFFFF;
VAR1:=(HIGH+LOW+CLOSE)/3;
VAR2:=(VAR1-MA(VAR1,14))/(0.015*AVEDEV(VAR1,14));
150,COLORBLUE;
100;
0;
-100;
-150;
BB: EMA(VAR2,2),LINETHICK2,COLORWHITE;
VAR3:=MA(VOL,5);
VAR4:=MA(VOL,10);
VAR5:=MA(VOL,60);
VAR6:=MA(CLOSE,5);
VAR7:=MA(CLOSE,8);
VAR8:=MA(CLOSE,25);
VAR9:=MA(CLOSE,60);
VARA:=CROSS(VAR2,BB) AND VAR2>80 AND VOL>VAR3 AND VOL>VAR4 AND VOL>VAR5 AND VAR6>VAR9 AND VAR7>VAR9 AND VAR8>VAR9 AND OPEN<VAR6 AND CLOSE>VAR6;
DRAWTEXT(VARA,5,’ 拉升!’),COLORYELLOW;
STICKLINE(VARA,5,-100,3,0),COLORRED;
底部:=CROSS(BB,-100);
DRAWICON(底部,-100,1);
顶部:=CROSS(150,BB);
DRAWICON(顶部,150,2);
VAR11:=3;
VAR21:=(3)*(SMA(((CLOSE – LLV(LOW,27))/(HHV(HIGH,27) – LLV(LOW,27)))*(100),5,1)) – (2)*(SMA(SMA(((CLOSE – LLV(LOW,27))/(HHV(HIGH,27) – LLV(LOW,27)))*(100),5,1),3,1));
股价准备启动:IF(CROSS(VAR21,VAR11),100,0),COLORRED,LINETHICK2;
主力线:3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*
SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),LINETHICK1,POINTDOT;
超短线:2*(((主力线-LLV(主力线,21))/(HHV(主力线,21)-LLV(主力线,21)))*(4))*(25),LINETHICK2,COLORMAGENTA;
STICKLINE(主力线>REF(主力线,1) ,主力线 ,REF(主力线,1),3 ,0),COLORFF00FF;
STICKLINE(主力线<=REF(主力线,1) ,主力线 ,REF(主力线,1),3 ,0),COLORGREEN;
V1:=(C*2+H+L)/4*1;
V2:=EMA(V1,13)-EMA(V1,34);
V3:=EMA(V2,5);
V4:=2*(V2-V3)*5.5;
庄家秘密撤: IF(V4<=0,V4,0),COLOR00FF00,LINETHICK2;
庄家秘密进: IF(V4>=0,V4,0),COLORRED,LINETHICK2;BIAS1:=MA((CLOSE-MA(CLOSE,13))/MA(CLOSE,13),3)*2,COLORWHITE;
BIAS3:=MA((CLOSE-MA(CLOSE,27))/MA(CLOSE,27),3)*2,COLORFF00FF,LINETHICK2;
见底:IF(BIAS3<-15,10,0),LINETHICK2,COLORRED;短线:(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*500,LINETHICK0,COLORYELLOW;
中线:(CLOSE-MA(CLOSE,4))/MA(CLOSE,4)*500,LINETHICK0,COLORWHITE;
红柱:SMA(短线,3,1),LINETHICK0,COLOR0000FF;
蓝柱:SMA(中线,3,1),COLORSTICK,COLORFFFF00;
{红柱}
STICKLINE(红柱<REF(红柱,1)AND 红柱>0,0,红柱,1,1),COLORCYAN;
STICKLINE(红柱>REF(红柱,1)AND 红柱>0,0,红柱,1,1),COLORRED;
STICKLINE(蓝柱<REF(蓝柱,1) AND 蓝柱>0,0,蓝柱,1,0),COLOR00FFFF;
{蓝柱}
STICKLINE(红柱>REF(红柱,1)AND 红柱<0,0,红柱,1,0),COLORLIRED;
STICKLINE(红柱<REF(红柱,1)AND 红柱<0,0,红柱,1,1),COLORGREEN;
STICKLINE(蓝柱>REF(蓝柱,1)AND 蓝柱<0,0,蓝柱,1,0),COLORRED;
通达信趋势无敌波段买卖指标公式实例图解:
通达信蚂蝗(主图叠加)波段趋势买卖指标公式:
择自:
VAR2:=(3*CLOSE+LOW+OPEN+HIGH)/6;
VAR3:=(20*VAR2+19*REF(VAR2,1)+18*REF(VAR2,2)+17*REF(VAR2,3)+16*REF(VAR2,4)+15*REF(VAR2,5)+14*REF(VAR2,6)+13*REF(VAR2,7)+
12*REF(VAR2,8)+11*REF(VAR2,9)+10*REF(VAR2,10)+9*REF(VAR2,11)+8*REF(VAR2,12)+7*REF(VAR2,13)+6*REF(VAR2,14)+5*REF(VAR2,15)
+4*REF(VAR2,16)+3*REF(VAR2,17)+2*REF(VAR2,18)+REF(VAR2,20))/210;
VAR4:=MA(VAR3,13);
VAR5:=EMA(MA(CLOSE,3),34);
VAR6:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
VAR7:=MA(VAR6,5);
VAR8:=MA(VAR6,10);
STICKLINE(IF(VAR3<VAR5,VAR3<=1.015*VAR4,VAR3<=1.005*VAR4),VAR3,VAR4,10,1),COLOR006600 ;
STICKLINE(VAR3>1.005*VAR4,VAR3,VAR4,10,1),COLORFF00FF;
DRAWTEXT(FILTER(MA(VAR6,10)<VAR7,1),VAR8,’↑’),COLORRED;
DRAWTEXT(FILTER(MA(VAR6,10)>=VAR6,1),VAR8,’↓’),COLOR00FF00;
多空安全线: VAR5,COLORWHITE;
〖关注点〗: STICKLINE(COUNT(VAR3>1.005*VAR4 AND VAR3<=REF(VAR3,1),2)=2 OR
COUNT(IF(VAR3<VAR5,VAR3<=1.015*VAR4,VAR3<=1.005*VAR4) AND VAR3>=REF(VAR3,1),2)=2,VAR3,VAR4,10,0),COLORYELLOW;
DRAWTEXT(REF(CROSS(VAR3,VAR4),2) AND VAR3>1.005*VAR4,VAR4,’★买入点’),COLORWHITE;
DRAWTEXT(CROSS(VAR6,VAR7) AND VAR7<VAR8,VAR3*0.95,’▲’),COLORYELLOW;
{DRAWTEXT(CROSS(VAR7,VAR6) AND VAR7>VAR8,VAR3*1.05,’洗盘’),COLORWHITE;}
VAR9:=1/WINNER(CLOSE);
VARA:=MA(CLOSE,13);
VARB:=100-ABS((CLOSE-VARA)/VARA*100);
VARC:=LLV(LOW,75);
VARD:=HHV(HIGH,75);
VARE:=(VARD-VARC)/100;
VARF:=SMA((CLOSE-VARC)/VARE,20,1);
VAR10:=SMA((OPEN-VARC)/VARE,20,1);
VAR11:=3*VARF-2*SMA(VARF,15,1);
VAR12:=3*VAR10-2*SMA(VAR10,15,1);
VAR13:=100-VAR12;
VAR14:=100-VAR11;
VAR15:=MA(WINNER(CLOSE*0.95)*100,3);
VAR16:=100-IF(VAR9>5,IF(VAR9<100,VAR9,VARB-10),0);
VAR17:=VAR15>VARB;
VAR18:=REF(LOW,1)*0.9;
VAR19:=LOW*0.9;
VAR1A:=(VAR19*VOL+VAR18*(CAPITAL-VOL))/CAPITAL;
VAR1B:=EMA(VAR1A,30);
VAR1C:=CLOSE-REF(CLOSE,1);
VAR1D:=MAX(VAR1C,0);
VAR1E:=ABS(VAR1C);
VAR1F:=SMA(VAR1D,7,1)/SMA(VAR1E,7,1)*100;
VAR20:=SMA(VAR1D,13,1)/SMA(VAR1E,13,1)*100;
VAR21:=BARSCOUNT(CLOSE);
VAR22:=SMA(MAX(VAR1C,0),6,1)/SMA(ABS(VAR1C),6,1)*100;
VAR23:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;
VAR24:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
VAR25:=SMA((SMA(VAR24,4,1)-50)*2,3,1);
VAR26:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
VAR27:=SMA(VAR26,4,1);
VAR28:=SMA(VAR27,3,1);
VAR29:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
VAR2A:=VAR22<=25 AND VAR23<-95 AND VAR29>20 AND VAR25<-30 AND VAR28<30 AND VAR1B-CLOSE>=-0.25 AND VAR1F<22 AND VAR20<28
AND VAR21>50;
DRAWTEXT(CROSS(VAR2A,0.5) AND COUNT(VAR2A=1,10)=1,VAR4,’发射资金’),COLORRED;
DRAWTEXT(CROSS(VAR17,0.5) AND COUNT(VAR17=1,10)=1,VAR3,’井喷’),COLORWHITE;
VAR326:=IF(CLOSE>REF(CLOSE, 1),88,0);
VAR327:=CLOSE/REF(CLOSE, 1)>1.050 AND HIGH/CLOSE<1.010 AND VAR326>0;
STICKLINE(VAR327>90,L*0.99,L*0.95,4,0),COLORYELLOW;
DRAWTEXT(VAR327>90,LOW*0.95,’追涨’),COLORYELLOW;
通达信蚂蝗波段趋势买卖指标公式实例图解:
[通达信公式]波段王(主图叠加)公式指标源码:
择自:
N:=20;
N1:=7;
N2:=69;
T1:=IF((DATE<=1341231),1,0);
M3:=EMA(CLOSE,3);
M8:EMA(CLOSE,8),COLORLIGREEN;
M13:EMA(M8,13),COLORMAGENTA;
M62:EMA(M8,55),COLORWHITE;
VAR1:=EMA(M13,62);
M81:EMA(M62,81),COLOR00FFFF;
M144:EMA(VAR1,144),LINETHICK2,COLOR0000FF;
M250:EMA(VAR1,250),POINTDOT,LINETHICK2,COLORF00FF0;
VAR2:=(CLOSE+HIGH+LOW)/(3);
VAR3:=(EMA(VAR2,10))*(T1);
VAR4:=(REF(VAR3,1))*(T1);
STICKLINE((VAR3>VAR4),VAR3,VAR4,4,0),COLOR00FFFF;
STICKLINE((VAR3<VAR4),VAR3,VAR4,4,0),COLORFF0000;
VAR5:=((REF(HIGH,1)+REF(LOW,1))/(2))*(T1);
VAR6:=MA(CLOSE,N)+((2)*(STD(CLOSE,N)))*(T1);
DRAWTEXT(CROSS(VAR3,VAR4),(VAR3)*(0.98),’★’),COLOR00FFFF;
DRAWTEXT(CROSS(VAR5,VAR6),(HIGH)*(1.04),’↓卖’),COLOR008000;
VAR7:=REF(CLOSE,1);
VAR8:=((SMA(MAX(CLOSE-VAR7,0),N1,1))/(SMA(ABS(CLOSE-VAR7),N1,1)))*(100);
VAR9:=CROSS(N2,VAR8);
VARA:=(FILTER(VAR9,4))*(T1);
DRAWTEXT(VARA,(HIGH)*(1.04),’↓卖’),COLORFFFFFF;
VARB:=((2)*(CLOSE)+HIGH+LOW)/(4);
VARC:=LLV(LOW,34);
VARD:=HHV(HIGH,34);
VARE:=(EMA(((VARB-VAR1)/(VAR5-VAR1))*(100),7))*(T1);
VARF:=(EMA((0.667)*(REF(VARE,1))+(0.333)*(VARE),5))*(T1);
DRAWTEXT(IF(((COUNT((CLOSE<REF(CLOSE,1)),8))/(8)>0.6) AND (VOL>=(1.5)*(MA(VOL,5))) AND COUNT((VARE>=VARF),3) AND (REF(LOW,1)=LLV(LOW,120)),1,0),LOW,’●买进’),COLORFF00FF;
DRAWTEXT(IF(((COUNT((CLOSE<REF(CLOSE,1)),13))/(13)>0.6) AND COUNT((VARE>VARF),6) AND (REF(LOW,5)=LLV(LOW,120)) AND REF((CLOSE>=OPEN),4) AND REF((CLOSE>OPEN),3) AND REF((CLOSE>OPEN),2) AND REF((OPEN>CLOSE),1) AND (OPEN>REF(CLOSE,1)),1,0),LOW,’●买进’),COLOR00FFFF;
VAR10:=(MA(CLOSE,80)-(MA(CLOSE,10))/(3))*(T1);
DRAWTEXT(IF((CLOSE<VAR10) AND ((VOL)/(240)>(MA(VOL,5))/(240)) AND (CLOSE>(REF(CLOSE,1))*(1.08)) AND (CLOSE<(MA(CLOSE,13))*(1.3)),1,0),LOW,’●抄底’),COLOR0000FF;DRAWTEXT_FIX(C>O,0.01,0.9,0,’做单条件不足时,绝不做单’),COLORGRAY;
通达信期货波段趋势(指标):
择自:
适用于期货交易趋势性强的品种,15分钟、30分钟、日线图均可用。使用该指标可做到小止损大盈利。
红色区域做多,绿色区域做空。简单实用。
SJTJ:=DATE<1590301;
MAH:=(H*18+REF(H,1)*17+REF(H,2)*16+REF(H,3)*15+REF(H,4)*14+REF(H,5)*13+REF(H,6)*12+REF(H,7)*11+REF(H,8)*10+REF(H,9)*9+REF(H,10)*8+REF(H,11)*7+REF(H,12)*6+REF(H,13)*5+REF(H,14)*4+REF(H,15)*3+REF(H,16)*2+REF(H,17)*1)/171;
MAL:=(L*18+REF(L,1)*17+REF(L,2)*16+REF(L,3)*15+REF(L,4)*14+REF(L,5)*13+REF(L,6)*12+REF(L,7)*11+REF(L,8)*10+REF(L,9)*9+REF(L,10)*8+REF(L,11)*7+REF(L,12)*6+REF(L,13)*5+REF(L,14)*4+REF(L,15)*3+REF(L,16)*2+REF(L,17)*1)/171;
MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA20:=MA(CLOSE,20);
MA60:=MA(CLOSE,60);
DK:= SJTJ AND( CLOSE>=MAH OR (C>MA5 AND C>MA10 AND C>MA20 AND C>MA60));
KK:= SJTJ AND( MAL>CLOSE OR (C<MA5 AND C<MA10 AND C<MA20 AND C<MA60));
DK1:=BARSLAST(DK);
KK1:=BARSLAST(KK);
DK2:=BARSLAST(CROSS(KK1,DK1));
KK2:=BARSLAST(CROSS(DK1,KK1));
HS:=DK2<KK2;
LS:=KK2<DK2;
W2:=OPEN-CLOSE;
HT:=IF(OPEN>CLOSE,OPEN,CLOSE);
LT:=IF(OPEN<CLOSE,OPEN,CLOSE);
STICKLINE(HS,REFDATE(HHV(H,0),DATE),REFDATE(LLV(L,0),DATE),6,0),COLOR001050;
STICKLINE(LS,REFDATE(HHV(H,0),DATE),REFDATE(LLV(L,0),DATE),6,0),COLORBLACK;
STICKLINE(W2>0 AND HS,OPEN,CLOSE,2,0),COLORRED;
STICKLINE(W2>0 AND HS,OPEN,H,0.0,0),COLORRED;
STICKLINE(W2>0 AND HS,C,L,0.0,0),COLORRED;
STICKLINE(W2<=0 AND HS,OPEN,CLOSE,2,1),COLORRED;
STICKLINE(W2<=0 AND HS,O,L,0.0,0),COLORRED;
STICKLINE(W2<=0 AND HS,C,H,0.0,0),COLORRED;
STICKLINE(W2>0 AND LS,OPEN,CLOSE,2,0),COLORGREEN;
STICKLINE(W2>0 AND LS,OPEN,H,0.0,0),COLORGREEN;
STICKLINE(W2>0 AND LS,C,L,0.0,0),COLORGREEN;
STICKLINE(W2<=0 AND LS,OPEN,CLOSE,2,1),COLORGREEN;
STICKLINE(W2<=0 AND LS,C,H,0.0,0),COLORGREEN;
STICKLINE(W2<=0 AND LS,O,L,0.0,0),COLORGREEN;
DRAWNUMBER(ISLASTBAR AND LS,MAH,MAH),COLORYELLOW;
DRAWNUMBER(ISLASTBAR AND HS,MAL,MAL),COLORYELLOW;
最新价:IF(SJTJ, C,DRAWNULL),LINETHICK0,COLORYELLOW;
趋势线:=(MAH+MAL)/2 COLORGREEN,,LINETHICK2;
趋势线上升:IF(HS,趋势线,DRAWNULL),LINETHICK2,COLORRED;
趋势线下降:IF(LS,趋势线,DRAWNULL),LINETHICK2,COLORGREEN;
DRAWICON(HS,趋势线*0.995,1);
DRAWICON(LS,趋势线*1.005,2);
DRAWNUMBER(ISLASTBAR ,C,C),COLORWHITE;
AAA:=CONST(HHV(H,50));PL5:=HHV(H,45);
特别声明:以上内容(如有图片或视频亦包括在内)为自媒体平台用户上传并发布,不构成投资建议请自行甄别,如有侵权请联系删除:liaycn@163.com
Notice: The content above (including the pictures and videos if any) is uploaded and posted by a user of the site, which is a social media platform and only provides information storage services.