The following is the source code of Tongda letter to send a top and bottom main chart formula source, if you like it (please download the attachment and import it if you don't have the source code)

{Top and Bottom}

Range High A:=REFDATE(HHV(H,120),DATE)*1.05;

Range Low A:=REFDATE(LLV(L,120),DATE)*0.95;

MA5:MA(CLOSE,5),COLORWHITE;

MA24:=MA(C,24),COLORGREEN,LINETHICK2;

MA72:=MA(C,72),COLORRED,LINETHICK2;

MA200:=IF((MA(C,200)=range low A) OR C>=MA(C,200),MA(C,200),DRAWNULL),COLORBLUE,LINETHICK2;

{========================Dashboard========================== =}

Main rising wave:=ISLASTBAR AND MA5>MA24 AND MA24>MA72 AND MA72>IF(MA200=DRAWNULL,0,MA200);

Main wave callback:=ISLASTBAR AND MA24>MA5 AND MA5>MA72 AND MA72>IF(MA200=DRAWNULL,0,MA200);

Main wave deep tone:=ISLASTBAR AND MA24>MA72 AND MA72>MA5 AND MA5>IF(MA200=DRAWNULL,0,MA200);

Rising wave:=ISLASTBAR AND IF(MA200=DRAWNULL,300,MA200)>MAX(MA24,MA72) AND MA5>MA24 AND MA24>MA72;

Bottom bounce: =ISLASTBAR AND IF(MA200=DRAWNULL,300,MA200)>MA72 AND MA72>MA24 AND MA5>MA24;

Bottoming stage: =ISLASTBAR AND IF(MA200=DRAWNULL,300,MA200)>MA72 AND MA72>MA24 AND MA24>MA5;

Wait and see:=ISLASTBAR AND IF(MA200=DRAWNULL,MA24>MA72 AND CMA200 AND CREF(C,1),C,DRAWNULL);

DKP:=IF(C=OPEN,ZKP,ZSP,1,0),COLORYELLOW;

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

Bull line:=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID ,5)+14*REF

(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11) +8*REF

(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF

(MID,18)+REF(MID,20))/210,COLOR8000FF,LINETHICK2;

MA10:=MA(C,10);

MA30:=MA(C,30);

Five-day deviation rate:=(C-MA5)/MA5*100;

BB5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;

Speed 5:=SMA(EMA((MA5-REF(MA5,1))/REF(MA5,1),3)*100,3,1);

Acceleration5:=EMA((speed5-REF(speed5,1)),3),NODRAW;

IF(BB5>30 AND MA5>REF(MA5,1), MA5,DRAWNULL),LINETHICK3,COLORRED;

BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;

IF(BB5REF(HIGH,1),3);

VARA:=BACKSET(REF(LOW,2)=LLV(LOW,5) AND LOW0,HIGH*1.01,DRAWNULL),CROSSDOT,LINETHICK3,COLORGREEN;

DRAWTEXT(Sell 1>0,HIGH*1.02,'*'),COLORGREEN;

DRAWICON((ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)=0,(large single strength limit+100)/2,100-ABS ((large single strength limit -100)/2)), NODRAW;

Ultrasingle intensity:=(Ultra B-Ultra S)/(Ultra B+Ultra S)*100,COLORYELLOW,NODRAW;

Super-single strength limit: =IF(super-single strength=0,-100,super-single strength);

Super-single intensity ratio: =IF(super-single intensity>0,(super-single intensity limit+100)/2,IF(super-single intensity 0),RGB(255,0,0),RGB(23,125,255)));

DRAWRECTREL(37,CONST(930-(ABS(bulk out)*250/DAZHIV)),72,950,IF(CONST(bulk out>0),RGB(23,125,255),RGB(255,0,0)));

DRAWRECTREL(75,CONST(930-(ABS(non-bulk feed)*250/DAZHIV)),110,950,IF(CONST(non-bulk feed>0),RGB(255,0,0),RGB(23,125,255))) ;

DRAWRECTREL(112,CONST(930-(ABS(non-bulk output)*250/DAZHIV)),147,950,IF(CONST(non-bulk output>0),RGB(23,125,255),RGB(255,0,0))) ;

DRAWRECTREL(150,CONST(940-(ABS(net inflow)*250/DAZHIV))-20,190,950,IF(CONST(net inflow>0),RGB(200,0,0),RGB(0,125,50))) ;

DRAWTEXT _ FIX(CURRBARSCOUNT=1,0.0001,0.9,0,STRCAT('',CON2STR(bulk in/1,0))),COLORYELLOW;

DRAWTEXT _ FIX(CURRBARSCOUNT=1,0.036,0.9,0,STRCAT('',CON2STR(bulk out/1,0))),COLORYELLOW;

DRAWTEXT _ FIX(CURRBARSCOUNT=1,0.074,0.9,0,STRCAT('',CON2STR(non-bulk entry/1,0))),COLORYELLOW;

DRAWTEXT _ FIX(CURRBARSCOUNT=1,0.111,0.9,0,STRCAT('',CON2STR(non-bulk out/1,0))),COLORYELLOW;

DRAWTEXT _ FIX(CURRBARSCOUNT=1,0.150,0.9,0,STRCAT('',CON2STR(net inflow/1,0))),COLORYELLOW;

DRAWTEXT _ FIX(1,0.000,0.99,0,STRCAT(STRCAT('main force',CON2STR(main force net inflow,0)),'million')),COLORMAGENTA;

DRAWTEXT _ FIX(1,0.078,0.99,0,STRCAT(STRCAT('Retail Investor',CON2STR(Retail Investor Net Inflow,0)),'Ten Thousand')),COLORCYAN;

DRAWTEXT _ FIX(CURRBARSCOUNT=1,0.145,0.99,0,'Net inflow:(10,000)'),COLORYELLOW;

Main buying power:=LARGEINTRDVOL*1000/VOL;

Main force:=LARGEOUTTRDVOL*1000/VOL;

AAD:=CONST(MAX(ABS(main force buying force),ABS(main force selling force)))*4,NODRAW;

DRAWRECTREL(0,515,CONST(ABS(main buying strength)*560/AAD),568,IF(CONST(main buying strength)>0,RGB(255,0,0),RGB(0,50,0))) ;

DRAWRECTREL(0,570,CONST(ABS(main force)*560/AAD),623,IF(CONST(main force)>0,RGB(0,50,0),RGB(255,0,0))) ;

DRAWTEXT _ FIX(1,0,0.524,0,STRCAT('Main buying strength:',CON2STR(Main buying strength,0))),COLORYELLOW;

DRAWTEXT _ FIX(1,0,0.576,0,STRCAT('Main force:',CON2STR(Main force,0))),COLORYELLOW;

DRAWTEXT _ FIX(C>0,0.08,0.0,0,STRCAT('Industry:',HYBLOCK)),COLORYELLOW;

DRAWTEXT _ FIX(C>0,0.18,0.0,0,STRCAT('area:',DYBLOCK)),COLORYELLOW;

{DRAWTEXT_FIX(C>0,0.20,0.0,0,STRCAT('Theme Investment:',GNBLOCK)),COLORYELLOW;

DRAWTEXT _ FIX(1,0.00,0.04,0,'Performance forecast:')COLORYELLOW;

DRAWTEXT _ FIX(1,0.06,0.04,0,EXTERNSTR(0,11))COLORYELLOW;

{DRAWTEXT _ FIX(C>0,0.0,0.05,0,STRCAT('Theme Investment:',EXTERNSTR(0,7))),COLORYELLOW;}

{DRAWTEXT _ FIX(C>0,0.00,0.05,0,STRCAT('Performance forecast:',EXTERNSTR(0,11))),COLORYELLOW;}

{DRAWTEXT _ FIX(C>0,0.0,0.15,0,STRCAT('Date of lifting the ban:',EXTERNSTR(0,8))),COLORYELLOW;}

{DRAWTEXT _ FIX(C>0,0.00,0.20,0,STRCAT('Thousands of thousands of shares:', EXTERNSTR(0,1))), COLOR00FFFF;}

{DRAWTEXT_FIX(C>0,0.00,0.25,0,STRCAT('Intelligent diagnosis stock:',EXTERNSTR(0,2))),COLOR00FFFF;};

{DDE display}

DDX:=(LARGEINTRDVOL-LARGEOUTTRDVOL)*1000/FINANCE(7);

DDY:=IF(TRADENUM>0,(TRADEOUTNUM-TRADEINNUM)*100/TRADENUM,0);

DDZ:=IF(TRADENUM>0,(LARGETRDINNUM-LARGETRDOUTNUM)/TRADENUM*100,0);

DRAWRECTREL(150,500,192,540,IF(CONST(DDX)>0,RGB(255,0,0),RGB(0,50,0)));

DRAWRECTREL(150,545,192,585,IF(CONST(DDY)>0,RGB(255,0,0),RGB(0,50,0)));

DRAWRECTREL(150,590,192,630,IF(CONST(DDZ)>0,RGB(255,0,0),RGB(0,50,0)));

DRAWTEXT _ FIX(1,0.153,0.500,0,STRCAT('DDX:',CON2STR(DDX,1))),COLORYELLOW,COLORWHITE;

DRAWTEXT _ FIX(1,0.153,0.548,0,STRCAT('DDY:',CON2STR(DDY,1))),COLORYELLOW,COLORWHITE;

DRAWTEXT _ FIX(1,0.153,0.596,0,STRCAT('DDZ:',CON2STR(DDZ,1))),COLORYELLOW,COLORWHITE;

T1:=IF (DDX>0 AND REF(DDX,1)0 AND REF(DDX,1)>0 AND REF(DDX,2)0 AND REF(DDX,1)>0 AND REF(DDX, 2)>0 AND REF(DDX,3)0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)>0 AND REF(DDX,4)0 AND REF( DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)>0 AND REF(DDX,4)>0 AND REF(DDX,5)0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)>0 AND REF(DDX,4)>0 AND REF(DDX,5)>0 AND REF(DDX,6)0 AND REF(DDX,1 )>0 AND REF(DDX,2)>0 AND REF(DDX,3)>0 AND REF(DDX,4)>0 AND REF(DDX,5)>0 AND REF(DDX,6)>0 AND REF (DDX,7)0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)>0 AND REF(DDX,4)>0 AND REF(DDX,5)> 0 AND REF(DDX,6)>0 AND REF(DDX,7)>0 AND REF(DDX,8)0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX, 3)>0 AND REF(DDX,4)>0 AND REF(DDX,5)>0 AND REF(DDX,6)>0 AND REF(DDX,7)>0 AND REF(DDX,8)>0 AND REF(DDX,9)0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)>0 AND REF(DDX,4)>0 AND REF(DDX,5)>0 AND REF(DDX,6)>0 AND REF(DDX,7)>0 AND REF(DDX,8)> 0 AND REF(DDX,9)>0,10,T9);

DRAWTEXT_FIX(1,0.190,0.500,0,STRCAT(STRCAT(' ',CON2STR(T,0)),' [days]')),COLORYELLOW;

T11:=IF (DDY>0 AND REF(DDY,1)0 AND REF(DDY,1)>0 AND REF(DDY,2)0 AND REF(DDY,1)>0 AND REF(DDY,2)> 0 AND REF(DDY,3)0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)>0 AND REF(DDY,4)0 AND REF(DDY,1 )>0 AND REF(DDY,2)>0 AND REF(DDY,3)>0 AND REF(DDY,4)>0 AND REF(DDY,5)0 AND REF(DDY,1)>0 AND REF( DDY,2)>0 AND REF(DDY,3)>0 AND REF(DDY,4)>0 AND REF(DDY,5)>0 AND REF(DDY,6)0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)>0 AND REF(DDY,4)>0 AND REF(DDY,5)>0 AND REF(DDY,6)>0 AND REF(DDY, 7)0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)>0 AND REF(DDY,4)>0 AND REF(DDY,5)>0 AND REF (DDY,6)>0 AND REF(DDY,7)>0 AND REF(DDY,8)0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)> 0 AND REF(DDY,4)>0 AND REF(DDY,5)>0 AND REF(DDY,6)>0 AND REF(DDY,7)>0 AND REF(DDY,8)>0 AND REF(DDY ,9)0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)>0 AND REF(DDY,4)>0 AND REF(DDY,5)>0 AND REF(DDY,6)>0 AND REF(DDY,7)>0 AND REF(DDY,8)>0 AND REF(DDY,9)>0,10,T91);

DRAWTEXT _ FIX(1,0.190,0.548,0,STRCAT(STRCAT(' ',CON2STR(TY01,0)),' [day]')),COLORYELLOW;

T1Z:=IF (DDZ>0 AND REF(DDZ,2)0 AND REF(DDZ,1)>0 AND REF(DDZ,2)0 AND REF(DDZ,1)>0 AND REF(DDZ,2)> 0 AND REF(DDZ,3)0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)>0 AND REF(DDZ,4)0 AND REF(DDZ,1 )>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)>0 AND REF(DDZ,4)>0 AND REF(DDZ,5)0 AND REF(DDZ,1)>0 AND REF( DDZ,2)>0 AND REF(DDZ,3)>0 AND REF(DDZ,4)>0 AND REF(DDZ,5)>0 AND REF(DDZ,6)0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)>0 AND REF(DDZ,4)>0 AND REF(DDZ,5) >0 AND REF(DDZ,6)>0 AND REF(DDZ,7)0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)>0 AND REF(DDZ ,4)>0 AND REF(DDZ,5)>0 AND REF(DDZ,6)>0 AND REF(DDZ,7)>0 AND REF(DDZ,8)0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)>0 AND REF(DDZ,4)>0 AND REF(DDZ,5)>0 AND REF(DDZ,6)>0 AND REF(DDZ,7 )>0 AND REF(DDZ,8)>0 AND REF(DDZ,9)0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)>0 AND REF( DDZ,4)>0 AND REF(DDZ,5)>0 AND REF(DDZ,6)>0 AND REF(DDZ,7)>0 AND REF(DDZ,8)>0 AND REF(DDZ,9)> 0,10,T9Z);

DRAWTEXT _ FIX(1,0.190,0.596,0,STRCAT(STRCAT(' ',CON2STR(TZ,0)),' [days]')),COLORYELLOW;

M1:=30;

P2:=80;

VAR11:=(C+H+O+L)/4;

Buy:=XMA(VAR11,M1)*(1-P2/1000),COLORFFFFFF,LINETHICK2;

Rebound: =EMA(EMA(EMA(HIGH,5),5),5)*0.95,COLORRED,LINETHICK1;

XG:=CROSS(buy, bounce);

DRAWTEXT(XG,(LOW -0.2),'Boom' ),COLORRED;

Article Url:https://www.liaochihuo.com/info/659790.html

Label group:[strcat] [Master letter] [ddx] [Master letter formula] [ddz]