相关简介:通达信顶底指标公式源码分享

     通达信指标公式源码概况:

指标类别:通达信指标公式

授权方式:免费版

指标评级:★★★★★

指标分类:策略

画线方法:副图

   公式用法说明:

   三线向上变化进,

   三线向下变化出,

   三线金叉抬头上升趋势进行中,

通达信引入,有辅助判断顶底的作用,低位起涨时量能100%是最佳介入时机;中位突破时量能饱和,也为不错;但高位滞涨或尖冲上影量能百分百就要注意风险了

通达信指标公式源码:

   N:=10;M:=10;

   VAR1A1:=LLV(LOW,21);

   VAR2A2:=HHV(HIGH,21);

   AK1:=Ema((((CLOSE-VAR1A1)/(VAR2A2-VAR1A1))*100),5);

   AK:=EMA((((CLOSE-VAR1A1)/(VAR2A2-VAR1A1))*50),13);

   AB:=crOSS(AK1,AK);

   DRAWTEXT((AB=1),C,’○牛窝’),COLORYELLOW;

   SWJ1:=PEAK(1,1,1);

   SWJ2:=TROUGH(2,1,1);

   预测高值:(SWJ1-SWJ2)*2+SWJ2;

   预测低值:(SWJ1-SWJ2)/2.7+SWJ2;

   箱顶5:PEAK(CLOSE,5,1)*1.01,COLORGREEN;

   箱底10:TROUGH(CLOSE,10,1)*1.02,COLORDD00FF;

   箱顶3:PEAK(CLOSE,3,1)*1.01,COLOR0000FF;

   箱底3:TROUGH(CLOSE,3,1)*1,COLORCYAN;

   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);

   UP:=DRAWLINE(L=LLV(L,BArslAst(CROSS(NMA,RMA))+1),LLV(L,BARSLAST(CROSS(NMA,RMA))+1),H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1),HHV(H,BARSLAST(CROSS(RMA,NMA))+1),0);

   DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1),HHV(H,BARSLAST(CROSS(RMA,NMA))+1),L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1),LLV(L,BARSLAST(CROSS(NMA,RMA))+1),0);

   DRAWTEXT(((LLV(A8,2)=LLV(A8,7)ANDCOUNT(A8<0,2)ANDCROSS(A8,MA(A8,2)))ANDREF(DOWN,1)<REF(DOWN,2)ANDUP>REF(DOWN,1))=0,C-0.04,’起’),COLORRED;

   {N01:=1;

   DRAWTEXT((MA(预测高值,1)>REF(MA(预测高值,N01),1)ANDMA(预测低值,1)<REF(MA(预测低值,N01),1))OR((MA(预测高值,1)<REF(MA(预测高值,N01),1)ANDMA(预测低值,1)>REF(MA(预测低值,N01),1)))AND((LLV(A8,2)=LLV(A8,7)ANDCOUNT(A8<0,2)ANDCROSS(A8,MA(A8,2)))ANDREF(DOWN,1)<REF(DOWN,2)ANDUP>REF(DOWN,1)),C-0.05,’虎’),COLORRED;

   F:=100*(C-REF(C,1))/REF(C,1);

   今小昨:=IF(C<REF(O,1)ANDF<0,1,0);

   P3:=今小昨;

   今小前:=IF(C<REF(O,2)ANDF<0,1,0);

   P2:=今小前;

   DRAWTEXT(((TROUGHBARS(3,3,1)=0ANDHIGH>LOW+0.01)AND(TROUGHBARS(3,3,1)=0ANDHIGH>LOW+0.01)),箱顶5,’M’),COLORRED;

   DRAWTEXT(P3=0ANDREF(P3,1)=1ANDP2=0ANDREF(P2,1)=1ANDCROSS(zig(3,3),REF(ZIG(3,3),1)),箱顶5,’M’),COLORRED;

   VARC1:=(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));

   DRAWTEXT((VARC1=1),箱顶5,’D’),COLOR0000FF;

   VARD1:=(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));

   DRAWTEXT((VARD1=1),箱顶5+0.1,’MD’),COLOR00FF00;

   买入:=(((LLV(A8,2)=LLV(A8,7)ANDCOUNT(A8<0,2)ANDCROSS(A8,MA(A8,2)))ANDREF(DOWN,1)<REF(DOWN,2)ANDUP>REF(DOWN,1))=0,C);

   起点线:买入,COLORDD00FF;

   }

   VAR1:=IF(YEAR>=2034ANDMONTH>9,0,1);

   江恩线:=EMA(CLOSE,144),COLORBLUE,LINETHICK2;

   VAR2:=IF(YEAR<=2003ANDMONTH<4,0,1);

   VAR3:=IF(YEAR=2003ANDMONTH=5,0,1);

   VAR4:=IF(YEAR<2003,0,1);

   VAR5:=IF(YEAR=2002ANDMONTH=6ANDDAY=28,1,0);

   VAR6:=IF(YEAR=2002ANDMONTH=3ANDDAY=21,1,0);

   VAR7:=IF(YEAR=2001ANDMONTH=12ANDDAY=5,1,0);

   VAR8:=IF(YEAR=2001ANDMONTH=6ANDDAY=14,1,0);

   VAR9:=IF(YEAR=2001ANDMONTH=1ANDDAY=11,1,0);

   VARA:=IF(YEAR=2000ANDMONTH=11ANDDAY=23,1,0);

   VARB:=IF(YEAR=2000ANDMONTH=8ANDDAY=22,1,0);

   VARC:=IF(YEAR=2000ANDMONTH=4ANDDAY=21,1,0);

   VARD:=IF(YEAR=1999ANDMONTH=6ANDDAY=30,1,0);

   VARE:=IF(YEAR=1999ANDMONTH=4ANDDAY=9,1,0);

   VARF:=IF(YEAR=1998ANDMONTH=11ANDDAY=17,1,0);

   VAR10:=IF(YEAR=1998ANDMONTH=6ANDDAY=4,1,0);

   VAR11:=IF(YEAR=1997ANDMONTH=5ANDDAY=12,1,0);

   VAR12:=IF(YEAR=1996ANDMONTH=12ANDDAY=11,1,0);

   VAR13:=IF(YEAR=1994ANDMONTH=9ANDDAY=13,1,0);

   VAR14:=IF(YEAR=1993ANDMONTH=2ANDDAY=16,1,0);

   VAR15:=IF(YEAR=1992ANDMONTH=5ANDDAY=26,1,0);

   VAR16:=IF(YEAR=2003ANDMONTH=3ANDDAY=4,1,0);

   VAR17:=IF(YEAR=2003ANDMONTH=4ANDDAY=16,1,0);

   VAR18:=(CROSS(100,”kdj.J”(9,3,3))ORCROSS(“kdJ.K”(9,3,3),”KDJ.J”(9,3,3)))AND”KDJ.D”(9,3,3)>75;

   VAR19:=IF(YEAR>1990ANDYEAR<2003,0,1);

   VAR1A:=IF(YEAR=2003ANDMONTH=1ANDDAY=3,1,0);

   VAR1B:=IF(YEAR=2002ANDMONTH=6ANDDAY=6,1,0);

   VAR1C:=IF(YEAR=2002ANDMONTH=1ANDDAY=29,1,0);

   VAR1D:=IF(YEAR=2001ANDMONTH=10ANDDAY=22,1,0);

   VAR1E:=IF(YEAR=2001ANDMONTH=2ANDDAY=22,1,0);

   VAR1F:=IF(YEAR=2000ANDMONTH=9ANDDAY=26,1,0);

   VAR20:=IF(YEAR=1999ANDMONTH=12ANDDAY=28,1,0);

   VAR21:=IF(YEAR=1999ANDMONTH=5ANDDAY=17,1,0);

   VAR22:=IF(YEAR=1999ANDMONTH=2ANDDAY=9,1,0);

   VAR23:=IF(YEAR=1998ANDMONTH=8ANDDAY=18,1,0);

   VAR24:=IF(YEAR=1998ANDMONTH=3ANDDAY=26,1,0);

   VAR25:=IF(YEAR=1997ANDMONTH=2ANDDAY=20,1,0);

   VAR26:=IF(YEAR=1994ANDMONTH=7ANDDAY=29,1,0);

   VAR27:=IF(YEAR=2000ANDMONTH=5ANDDAY=15,1,0);

   VAR28:=IF(YEAR=1996ANDMONTH=1ANDDAY=19,1,0);

   VAR29:=IF(YEAR=1992ANDMONTH=11ANDDAY=20,1,0);

   VAR2A:=IF(YEAR=2003ANDMONTH=3ANDDAY=26,1,0);

   VAR2B:=IF(YEAR=2003ANDMONTH=5ANDDAY=13ANDCLOSE>200,1,0);

   VAR2C:=MA(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),5)*VAR19;

   VAR2D:=5;

   VAR2E:=CROSS(VAR2C,VAR2D);

   VAR2F:=VAR1AORVAR1BORVAR1CORVAR1DORVAR1EORVAR1FORVAR20ORVAR21ORVAR22ORVAR23ORVAR24ORVAR25ORVAR26ORVAR27ORVAR28ORVAR29ORVAR2AORVAR2BORVAR2E;

   VAR30:=(VAR18ORVAR5ORVAR6ORVAR7ORVAR8ORVAR9ORVARAORVARBORVARCORVARDORVAREORVARFORVAR10ORVAR11ORVAR12ORVAR13ORVAR14ORVAR15ORVAR16ORVAR17){ANDCLOSE>200};

   DRAWICON(VAR2F,LOW-LOW*1/100,1);

   DRAWICON(VAR2FANDCLOSE>江恩线,LOW,1);

   DRAWICON(VAR30,HIGH,2);

   DRAWTEXT(VAR2FANDCLOSE<江恩线,LOW,’秘密买点!’),COLORYELLOW;

   DRAWTEXT(VAR2FANDCLOSE>江恩线,LOW,’强势买点!’),COLORRED;

   DRAWTEXT(VAR30,HIGH+1,’秘密抛点’),COLOR00FF00;

   AAA2:=SUM(IF(CLOSE>REF(CLOSE,1),vol*C,0),0);

   AAA3:=SUM(IF(CLOSE<REF(CLOSE,1),VOL*C,0),0);

   AAA4:=SUM(IF(CLOSE=REF(CLOSE,1),VOL*C,0),0);

   BB1:=0;

   B1万元:=DVOL*DCLOSE/100;

   B1差:=B1万元-REF(B1万元,1);

   B2万元:=DVOL*DCLOSE/100;

   B2比:=B2万元/REF(B2万元,1);

   净流入万元:=(AAA2-AAA3-0.5*AAA4);

   PM:=MA(净流入万元,1);

   PMA:=PM/REF(PM,1)>1;

   PMB:=REF(PMA,1)<1ANDPMA;

   密码:(EMA(MA(B1万元,2),2))/100000,COLORYELLOW,NODRAW;

   二日比:=密码/REF(密码,1);

   选股:PMBAND密码>REF(密码,1)AND二日比>1,COLORRED,NODRAW;

   DRAWNUMBER(选股=1,L,密码),COLORYELLOW;

   DRAWICON(选股,L*0.975,1);

   上:=(SMA(HIGH,21,2)*1.05);

   DRAWTEXT(FILTER(((((CLOSE<REF(CLOSE,1))AND(CLOSE<REF(CLOSE,1)))AND(HIGH>上))AND(CLOSE<上)),5),(HIGH+0.05),’-减仓’),colorFFFFFF;

   下轨道:(SMA(LOW,21,2)*0.969),POINTDOT,color00FFFF;

   BMA:=MA(CLOSE,118);

   阻挡:=(SMA(HIGH,21,2)*1.05);

   RSV:=(((CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13)))*100);

   K:=SMA(RSV,3,1);

   D:=SMA(K,3,1);

   J:=((3*K)-(2*D));

   RSV12:=(((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)))*100);

   K12:=SMA(RSV12,3,1);

   D12:=SMA(K12,3,1);

   J12:=((3*K12)-(2*D12));

   RSV24:=(((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55)))*100);

   K24:=SMA(RSV24,3,1);

   D24:=SMA(K24,3,1);

   J24:=((3*K24)-(2*D24));

   支撑位:=IF(CROSS(J,J24),LOW,REF(LOW,BARSLAST(CROSS(J,J24))));

   压力位:IF(CROSS(J24,J),HIGH,REF(HIGH,BARSLAST(CROSS(J24,J)))),color00FF00;

   {U2L:=IF((CLOSE>=MA(CLOSE,20)),80,50);

   L2L:=IF((CLOSE>=MA(CLOSE,20)),50,20);

   RH1:=IF(((J<U2L)AND(REF(J,1)>=U2L)),HHV(REF(HIGH,1),(BARSLAST(((J>=U2L)AND(REF(J,1)<U2L)))-1)),REF(HHV(REF(HIGH,1),(BARSLAST(((J>=U2L)AND(REF(J,1)<U2L)))-1)),BARSLAST(((J<U2L)ANDREF(J,1)))));

   RH4:=IF((HIGH>RH1),LOW,REF(LOW,BARSLAST((HIGH>RH1))));

   RH42:=IF((HIGH>RH1),J,REF(J,BARSLAST((HIGH>RH1))));

   RH5:=IF((((HIGH>RH4)AND(J<RH42))AND(J<J24)),HIGH,REF(HIGH,BARSLAST((((HIGH>RH4)AND(J<RH42))AND(J<J24)))));

   RL1:=IF(((J>L2L)AND(REF(J,1)<=L2L)),LLV(REF(LOW,1),(BARSLAST(((J<=L2L)AND(REF(J,1)>L2L)))-1)),REF(LLV(REF(LOW,1),(BARSLAST(((J<=L2L)AND(REF(J,1)>L2L)))-1)),BARSLAST(((J>L2L)ANDREF(J,1)))));

   RL4:=IF((LOW<RL1),HIGH,REF(HIGH,BARSLAST((LOW<RL1))));

   RL42:=IF((LOW<RL1),J,REF(J,BARSLAST((LOW<RL1))));

   RL5:=IF((((LOW<RL4)AND(J>RL42))AND(J>J24)),LOW,REF(LOW,BARSLAST((((LOW<RL4)AND(J>RL42))AND(J>J24)))));}

   CB:=((AMOUNT/VOL)/100);

   CD:=((CB>HIGH)OR(CB<LOW));

   黑马趋势:=MA(CLOSE,3);

   MAP:=MA(CLOSE,8);

   AA5:=MA(CLOSE,21);

   AA10:MA(CLOSE,8),color0000FF;

   AA12:MA(CLOSE,12),color0000FF;

   BB10:=((ATAN((AA10-REF(AA10,1)))*3.1416)*10);

   BB12:=((ATAN((AA12-REF(AA12,1)))*3.1416)*10);

   MA13:=MA(CLOSE,13);

   DRAWTEXT(FILTER(((((((CLOSE/OPEN)>1.04)AND((CLOSE-REF(CLOSE,1))>0))AND(CLOSE>下轨道))AND((AA10-REF(AA10,1))>0))AND(CLOSE<上)),3),(LOW-0.07),’追击’),colorD1E768;

   {stickline((((AA12<=AA10)AND(BB12>=1))AND(BB10>=1)),AA10,AA12,4,0),color0000FF;

   stickline((((AA12>=AA10)AND(BB10<=1))AND(BB10<=1)),AA10,AA12,4,0),color00FF00;}

   VARD:=((((OPEN+LOW)+HIGH)+CLOSE)/4);

   支撑:=EMA(VARD,5);

   短期底部:=LLV(OPEN,30);

   {DRAWTEXT(((((((CROSS(黑马趋势,短期底部)AND((RL5-REF(RL5,1))>0))AND((黑马趋势-REF(黑马趋势,1))>0))AND(黑马趋势>1))AND(LOW<=支撑位))AND(CLOSE>支撑位))AND(HIGH<压力位)),(LOW-0.15),’←黑马发现’),color00FFFF;

   DRAWTEXT((((((((CROSS(黑马趋势,RL5)AND((黑马趋势-REF(黑马趋势,1))>0))AND(HIGH<压力位))AND(LOW<=短期底部))AND(CLOSE>支撑位))AND(CD<1))AND(CLOSE>OPEN))AND(CLOSE>RL5)),LOW,’←短买’),color00FF00;

   DRAWTEXT(FILTER((((((((LOW<=短期底部)AND((CLOSE-REF(CLOSE,1))>CLOSE))AND((MA(CLOSE,10)-REF(MA(CLOSE,10),1))>0))AND(WINNER(CLOSE)<0.05))AND(短期底部=RL5))AND(LOW<=RL5))AND(HIGH<压力位)),3),LOW,’★机会难得’),colorFFFFFF;

   历史大底RAWTEXT(FILTER((((((LLV(LOW,0)AND(WINNER(CLOSE)<0.08))AND(LOW<=短期底部))AND(CLOSE>短期底部))AND(J<80))AND((CLOSE/OPEN)>1.08)),20),(LOW-0.45),’★★历史大底’);

   DRAWTEXT(FILTER(((((((((LOW<=短期底部)AND(CLOSE>压力位))AND((AA5-REF(AA5,1))>0))AND(J<80))AND(CLOSE>支撑位))AND((黑马趋势-REF(黑马趋势,1))>0))AND(WINNER(CLOSE)<0.1))AND(CLOSE>OPEN)),5),(LOW-0.15),’★黑马登天’),colorCDEEC5;}

   X1:=(((((3*CLOSE)+HIGH)+LOW)+OPEN)/6);

   X2:=EMA(X1,10);

   X3:=REF(X2,1);

   X4:=((REF(HIGH,1)+REF(LOW,1))/2);

   X5:=(MA(CLOSE,21)+(2*STD(CLOSE,21)));

   X6:=REF(CLOSE,1);

   X7:=((SMA(MAX((CLOSE-X6),0),7,1)/SMA(ABS((CLOSE-X6)),7,1))*100);

   X8:=CROSS(79,X7);

   X9:=FILTER(X8,4);

   MAP1:=MA(CLOSE,60);

   均线30:=MA(CLOSE,30);

   均线89:=MA(CLOSE,89);

   均线:=MA(CLOSE,16);

   均线34:=MA(CLOSE,34);

   均线55:=MA(CLOSE,55);

   VAR1:=EMA(CLOSE,8);

   VAR2:=EMA(VAR1,20);

   VAR3:=CROSS(VAR1,VAR2);

   VAR4:=(VAR1<MA(CLOSE,60));

   VAR5:=(((HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36)))*100);

   VAR6:=SMA(VAR5,5,1);

   VAR7:=SMA(VAR6,8,1);

   VAR8:=(CROSS(VAR6,VAR7)AND(VAR7<16));

   VAR9:=((CLOSE>(LLV(CLOSE,60)+(0.3*LLV(CLOSE,60))))ANDVAR8);

   VARA:=IF((CLOSE>1000),VAR8,VAR9);

   黑马起步:=(VAR3ANDVAR4);

   逃遁:=VARA;

   均线20:=MA(CLOSE,20);

   均线120:=MA(CLOSE,120);

   牛熊线:=MA(CLOSE,250);

   VA:=CROSS(MA(CLOSE,19),MA(CLOSE,120));

   VB:=(MA(CLOSE,20)>MA(CLOSE,120));

   VC:=CROSS(MA(CLOSE,120),MA(CLOSE,89));

   VD:=(MA(CLOSE,20)<MA(CLOSE,120));

   VE:=CROSS(MA(CLOSE,20),MA(CLOSE,250));

   VF:=(MA(CLOSE,20)>MA(CLOSE,250));

   VG:=CROSS(MA(CLOSE,250),MA(CLOSE,20));

   {DRAWTEXT(FILTER(((((((((OPEN>均线120)AND(均线20<均线120))AND(LOW<=均线120))AND((均线20-REF(均线20,1))>0))AND(CLOSE>OPEN))AND((均线120-REF(均线120,1))>0))AND(HIGH<RH5))AND(CLOSE>=均线120)),15),LOW,’★120跳马’),color0089E0;

   DRAWTEXT((((VAAND((均线120-REF(均线120,1))>0))AND(HIGH<RH5))AND(CLOSE>OPEN)),LOW,’★宝马望月’),colorFFFFFF;}

   DRAWTEXT((((((均线-REF(均线,1))>0)ANDCROSS(均线20,均线120))AND(LOW<=均线120))AND(CLOSE>=均线120)),LOW,’三线开花’),colorFFFFFF;

   短期底部2:LLV(HIGH,30),LINETHICK2,color0000FF;

   上轨:(SMA(HIGH,21,2)*1.092),POINTDOT,colorFFFFFF;

   中轨道:(SMA(HIGH,21,2)*1.017),POINTDOT,colorFFFFFF;

   DRAWTEXT(FILTER(((((LOW<下轨道)AND(CLOSE>MA(CLOSE,15)))AND(CLOSE>短期底部2))AND(HIGH<压力位)),10),LOW,’★短线5%’),color9DC522;

   DRAWTEXT(((((((HIGH>=均线120)AND(CLOSE<REF(CLOSE,1)))AND(CLOSE<REF(CLOSE,1)))AND(HIGH>上))AND(CLOSE<上))AND(CLOSE<均线120)),(HIGH+0.05),’减仓’),color00FF00;

   DRAWTEXT(FILTER(((HIGH>阻挡)AND(CLOSE<阻挡)),5),(HIGH+0.15),’←逃命’);

   DRAWTEXT(((VE>VG)AND(HIGH<阻挡)),(LOW-0.65),’★黑马短线’),color00FFFF;

   DRAWTEXT(FILTER(((((((((((OPEN<X2)AND(CLOSE>X2))AND((支撑-REF(支撑,1))>0))AND((支撑-REF(支撑,1))>0))AND(CLOSE<阻挡))AND((均线-REF(均线,1))>0))AND(CLOSE>=均线))AND(HIGH<阻挡))AND((AA10-REF(AA10,1))>0))AND((阻挡-REF(阻挡,2))>0)),11),(LOW-0.11),’★快马加鞭’),color0000FF;

   DRAWTEXT(FILTER(((((((OPEN<X2)AND(WINNER(CLOSE)<0.2))AND(CLOSE>X2))AND((X2-REF(X2,1))>0))AND(HIGH<阻挡))AND((CLOSE-REF(CLOSE,1))>0.35)),4),(LOW-0.05),’★黑马狂奔’),colorD18073;

   DRAWTEXT((((((((CROSS(支撑,均线)AND(HIGH<中轨道))AND(WINNER(CLOSE)<0.2))AND(CLOSE<阻挡))AND(CLOSE>OPEN))AND(LOW<=X2))AND(CLOSE>=X2))ANDCROSS(支撑,X2)),LOW,’★黑马起步’),color00FFFF;

   DRAWTEXT(CROSS(X4,X5),HIGH,’●减仓’),color00B4FF;

   DRAWTEXT(X9,(HIGH*1.03),’出货’),color9000F5;

   DRAWTEXT((((黑马起步>0)AND(LOW<=X2))AND((均线-REF(均线,1))>0)),(LOW-0.11),’★黑马起步’),color00FF00;

   DRAWTEXT((逃遁>0),(HIGH*1.14),’●逃命’),color0000FF;

   RDV:=SMA(LOW,8,1);

   DRAWTEXT(((((CROSS(K,D)AND(CLOSE>=OPEN))AND((X2-REF(X2,1))>0))AND((RDV-REF(RDV,1))>0))AND(K<=33)),(LOW-0.08),’★黑马初现’),color8500DE;

   DRAWTEXT(FILTER((((((((LOW<=短期底部)AND(WINNER(CLOSE)<0.2))AND(CLOSE<牛熊线))AND(HIGH<阻挡))AND((X2-REF(X2,1))>0))AND(CLOSE>OPEN))AND(HIGH>=X3)),5),(LOW-0.03),’←黑马筑底’),color85B256;

   RCK:=(SMA(LOW,21,2)*0.95);

   趋势线:=SMA(LOW,5,1);

   DRAWTEXT(((CROSS(趋势线,RCK)AND(LOW<=X2))AND((X2-REF(X2,1))>0)),LOW,’←★大胆买入’),colorE50000;

   B1:=(((HIGH+LOW)+CLOSE)/3);

   B6:=HHV(B1,(4*15));

   B7:=LLV(B1,(4*15));

   B8:=(B6-B7);

   飞龙顶底线:=(MA(((B1-B7)/B8),2)*80);

   DRAWTEXT(FILTER(((((((飞龙顶底线<=1)AND(WINNER(CLOSE)<0.02))AND(HIGH<趋势线))AND(CLOSE>OPEN))AND(LOW<=短期底部))AND(CLOSE>短期底部)),8),(LOW-0.02),’←黑马寻底’),colorE7DD1F;

   DRAWTEXT(FILTER((((((((LOW<=短期底部)AND(WINNER(CLOSE)<0.015))AND((OPEN/CLOSE)>0.99))AND((J-REF(J,1))>0))AND(CLOSE>OPEN))AND(HIGH<支撑位))AND(CLOSE>短期底部)),25),(LOW-0.09),’←开始建仓’),color00FFFF;

   DRAWTEXT(FILTER((((((((LOW<=均线30)AND((AA10-REF(AA10,1))>0))AND((均线-REF(均线20,1))>0))AND((趋势线-REF(趋势线,1))>0))AND(CLOSE>=均线30))AND(WINNER(CLOSE)<0.15))AND((CLOSE/OPEN)>1.01)),3),LOW,’★天马奔月’),color76B0FC;

   DRAWTEXT((((((OPEN<=均线)AND((均线30-REF(均线30,1))>0))AND(CLOSE>均线89))AND(BB10>1))AND((CLOSE/OPEN)>1.04)),LOW,’★天马过桥’),colorCC99FF;

   STICKLINE((OPEN>=CLOSE),CLOSE,OPEN,9,0),colorFF5B00;

   STICKLINE((OPEN>=CLOSE),CLOSE,OPEN,8,0),colorFF6C00;

   STICKLINE((OPEN>=CLOSE),CLOSE,OPEN,7,0),colorFF7B00;

   STICKLINE((OPEN>=CLOSE),CLOSE,OPEN,6,0),colorFF9C00;

   STICKLINE((OPEN>=CLOSE),CLOSE,OPEN,5,0),colorFFBE00;

   STICKLINE((OPEN>=CLOSE),CLOSE,OPEN,3.5,0),colorFFCC00;

   STICKLINE((OPEN>=CLOSE),CLOSE,OPEN,1.5,0),colorFFFF00;

   STICKLINE((CLOSE>=OPEN),CLOSE,OPEN,9,0),color070084;

   STICKLINE((CLOSE>=OPEN),CLOSE,OPEN,8,0),color0000A3;

   STICKLINE((CLOSE>=OPEN),CLOSE,OPEN,7,0),color0000B7;

   STICKLINE((CLOSE>=OPEN),CLOSE,OPEN,6,0),color0000CD;

   STICKLINE((CLOSE>=OPEN),CLOSE,OPEN,5,0),color0000E9;

   STICKLINE((CLOSE>=OPEN),CLOSE,OPEN,3,0),color0754E9;

   STICKLINE((CLOSE>=OPEN),CLOSE,OPEN,1.5,0),color076EF3;

   STICKLINE((CLOSE>=OPEN),CLOSE,OPEN,1,0),color077BF3;

   STICKLINE((CLOSE>OPEN),OPEN,LOW,1,0),color0726CA;

   STICKLINE((CLOSE>OPEN),CLOSE,HIGH,1,0),color0726CA;

   STICKLINE((OPEN>CLOSE),CLOSE,LOW,1,0),colorDE9100;

   STICKLINE((OPEN>CLOSE),OPEN,HIGH,1,0),colorDE9100;

   STICKLINE(((((CLOSE/OPEN)>1.04)AND(CLOSE<阻挡))AND((CLOSE-REF(CLOSE,1))>0)),CLOSE,OPEN,9,0),color0090FF;

   STICKLINE(((((CLOSE/OPEN)>1.04)AND(CLOSE<阻挡))AND((CLOSE-REF(CLOSE,1))>0)),CLOSE,OPEN,8,0),color009FFF;

   STICKLINE(((((CLOSE/OPEN)>1.04)AND(CLOSE<阻挡))AND((CLOSE-REF(CLOSE,1))>0)),CLOSE,OPEN,4,0),color00B5FF;

   STICKLINE(((((CLOSE/OPEN)>1.04)AND(CLOSE<阻挡))AND((CLOSE-REF(CLOSE,1))>0)),CLOSE,OPEN,2,0),color00E4FF;

   STICKLINE(((((CLOSE/OPEN)>1.04)AND(CLOSE<阻挡))AND((CLOSE-REF(CLOSE,1))>0)),OPEN,LOW,0.7,0),color00FFFF;

   STICKLINE(((((CLOSE/OPEN)>1.04)AND(CLOSE<阻挡))AND((CLOSE-REF(CLOSE,1))>0)),CLOSE,HIGH,0.7,0),color00FFFF;

   STICKLINE(((((CLOSE<REF(CLOSE,1))AND(CLOSE<REF(CLOSE,1)))AND(HIGH>阻挡))AND(CLOSE<阻挡)),OPEN,LOW,0.7,0),colorFF76FF;

   STICKLINE(((((CLOSE<REF(CLOSE,1))AND(CLOSE<REF(CLOSE,1)))AND(HIGH>阻挡))AND(CLOSE<阻挡)),CLOSE,HIGH,0.7,0),colorFF76FF;

   STICKLINE(((((CLOSE<REF(CLOSE,1))AND(CLOSE<REF(CLOSE,1)))AND(HIGH>阻挡))AND(CLOSE<阻挡)),CLOSE,OPEN,9,0),colorFF00FF;

   STICKLINE(((((CLOSE<REF(CLOSE,1))AND(CLOSE<REF(CLOSE,1)))AND(HIGH>阻挡))AND(CLOSE<阻挡)),CLOSE,OPEN,6,0),colorFF62FF;

   STICKLINE(((((CLOSE<REF(CLOSE,1))AND(CLOSE<REF(CLOSE,1)))AND(HIGH>阻挡))AND(CLOSE<阻挡)),CLOSE,OPEN,4,0),colorFF76FF;

   STICKLINE(((((CLOSE<REF(CLOSE,1))AND(CLOSE<REF(CLOSE,1)))AND(HIGH>阻挡))AND(CLOSE<阻挡)),CLOSE,OPEN,2,0),colorFFA8FF;

[源码注释]通达信公式动态翻译结果

输出XG:最高价-收盘价和开盘价的较大值>0.67*收盘价-开盘价的绝对值

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。