以下是通达信天下2指标主副指标源码
通达信天下2指标主副指标源码:
REFLINE:-15,{0},{20},{40},{60};
VAR1:=ma(WINNER(CLOSE),9)*100;
买!:crOSS(VAR1,2)*30,COLOR0000FF,LINETHICK3;
VAR2:=(1-EMA((HHV(HIGH,15)-CLOSE)/(HHV(HIGH,15)-LLV(LOW,15)),15))*100;
VAR3:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
VAR4:=SMA(VAR3,9,1);
VAR5:=SMA(VAR4,9,1);
VAR6:=(CLOSE-SMA(CLOSE,13,1))/SMA(CLOSE,13,1)*(-100);
VAR7:=REF(VAR6,1) 13ANDREF(VAR6,1)/VAR6 1.23ANDCLOSE/REF(CLOSE,1) 1.03;
春笋:IF(VAR7ANDREF(CLOSE,1) =COst(5),20,0),LINESTICK,COLOR00FF00,LINETHICK2;
VAR8:=MA(CLOSE,27);
VAR9:=(CLOSE-VAR8)/VAR8*100;
VARA:=MA(VAR9,2);
VARB:=BArslAST(CROSS(-10,VARA)=1);
VARC:=BARSLAST(CROSS(VARA,10)=1);
VARD:=VARA -10ANDVARB
VARE:=VARA 10ANDVARC
:IF(VARD,VARA,0),LINESTICK,LINETHICK2,COLORYELLOW;
财神到:IF(VARE,VARA,0),LINESTICK,COLORGREEN;
贪嘴乐:IF(VARA REF(VARA,1)ANDVARDANDVARA -15,30,0),LINETHICK2,LINESTICK,COLORFFA2AF;
DRAWICON(贪嘴乐 0,40,1);
VARF:=REF(LOW,1)*0.9;
VAR10:=LOW*0.9;
VAR11:=(VAR10*+VARF*(CAPITAL-VOL))/CAPITAL;
VAR12:=EMA(VAR11,30);
VAR13:=CLOSE-REF(CLOSE,1);
VAR14:=MAX(VAR13,0);
VAR15:=Abs(VAR13);
VAR16:=SMA(VAR14,7,1)/SMA(VAR15,7,1)*100;
VAR17:=SMA(VAR14,13,1)/SMA(VAR15,13,1)*100;
VAR18:=BARSCOUNT(CLOSE);
VAR19:=SMA(MAX(VAR13,0),6,1)/SMA(ABS(VAR13),6,1)*100;
VAR1A:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;
VAR1B:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
VAR1C:=SMA((SMA(VAR1B,4,1)-50)*2,3,1);
VAR1D:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
VAR1E:=SMA(VAR1D,4,1);
VAR1F:=SMA(VAR1E,3,1);
VAR20:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
VAR21:=VAR19 =25ANDVAR1A -95ANDVAR20 20ANDVAR1C -30ANDVAR1F 30ANDVAR12-CLOSE =-0.25ANDVAR16 22ANDVAR17 28ANDVAR18
血战超跌:STICKLINE(VAR21,0,60,5,0);
JJ:=(CLOSE+HIGH+LOW)/3;
A:=EMA(JJ,10);
B:=REF(A,1);
STICKLINE(A B,A,B,5,0),COLORYELLOW,LINETHICK4;
STICKLINE(A B,A,B,5,0),COLORBLUE,LINETHICK4;
M1:EMA(CLOSE,3);
M2:EMA(CLOSE,8);
M3:EMA(M2,13);
M4:EMA(M2,55);
VAR1:=EMA(M3,55);
M5:EMA(M4,81),COLORRED,LINETHICK2;
VAR2:=(REF(HIGH,1)+REF(LOW,1))/2;
VAR3:=MA(CLOSE,21)+2*STD(CLOSE,21);
DRAWICON(CROSS(VAR2,VAR3),HIGH*1.035,2);
DRAWTEXT(CROSS(VAR2,VAR3),HIGH*1.02,'S'),COLORGREEN;
VAR4:=REF(CLOSE,1);
VAR5:=SMA(MAX(CLOSE-VAR4,0),7,1)/SMA(ABS(CLOSE-VAR4),7,1)*100;
VAR6:=CROSS(79,VAR5);
VAR7:=FILTER(VAR6,4);
DRAWICON(VAR7,HIGH*1.035,2);
DRAWTEXT(VAR7,HIGH*1.02,'S'),COLORGREEN;
A7:=(2*C+H+L)/4;
VAR10:=LLV(LOW,34);
VAR11:=HHV(HIGH,34);
SK:=EMA((A7-VAR1)/(VAR2-VAR1)*100,7);
SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);
DRAWTEXT(IF(COUNT(CLOSE REF(CLOSE,1),8)/8 6/10ANDVOL =1.5*MA(VOL,5)AND
COUNT(SK =SD,3)ANDREF(LOW,1)=LLV(LOW,120),1,0),LOW,'●B'),COLORRED;
DRAWTEXT(IF(COUNT(CLOSE REF(CLOSE,1),13)/13 6/10AND
COUNT(SK SD,6)ANDREF(LOW,5)=LLV(LOW,120)ANDREF(CLOSE =OPEN,4)AND
REF(CLOSE OPEN,3)ANDREF(CLOSE OPEN,2)ANDREF(OPEN CLOSE,1)AND
OPEN REF(CLOSE,1),1,0),LOW,'●B'),COLORRED;
D:=MA(CLOSE,80)-MA(CLOSE,10)/3;
DRAWTEXT(IF(CLOSE DANDVOL/240 MA(VOL,5)/240ANDCLOSE REF(CLOSE,1)*1.08
ANDCLOSE MA(CLOSE,13)*1.3,1,0),LOW,'●'),COLORRED;
副图源码:
N:=5;
VAR1:4*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-
3*SMA(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1),3.2,1),COLORYELLOW,LINETHICK0;
VAR2:8,COLORGREEN,LINETHICK0;
上升在即:IF(CROSS(VAR1,VAR2),80,0),STICK,COLOR0000CC,LINETHICK2;
专吸庄血:IF(VAR1 =8,25,0),STICK,COLORWHITE,LINETHICK2;
DRAWTEXT(CROSS(VAR1,VAR2),80,'准备买入'),COLOR00FFFF;
VARO5:=LLV(LOW,27);
VARO6:=HHV(HIGH,34);
VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;
建仓区:IF((VARO7 10),80,100),COLOR00CCFF,LINETHICK1;
0,LINETHICK2,COLORFFCC00;
JJ:=(CLOSE+HIGH+LOW)/3;
A:=EMA(JJ,10);
B:=REF(A,1);
D:=REF(A,2);
N:=5;
VAR1:=4*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1),3.2,1);
VAR2:=8;
XG:CROSS(VAR1,VAR2)ANDA BANDB
庄筹:EMA(100*(CLOSE-LLV(LOW,83))/(HHV(HIGH,80)-LLV(LOW,83)),23),colorffaaff,linethick2;
散筹:EMA(100*(INDEXC-LLV(INDEXL,55))/(HHV(INDEXH,50)-LLV(INDEXL,55)),33),COLORFFAA66,linethick2;
:EMA(100*(INDEXC-LLV(INDEXL,380))/(HHV(INDEXH,300)-LLV(INDEXL,380)),180),colorred,linethick3;
顶:80,coloryellow;
DRAWTEXT(cross(散筹,顶),顶+0,' -==注意顶'),COLORFFAA66,linethick2;
DRAWTEXT(cross(庄筹,顶),顶+0,' -==注意顶'),colorffaaff,linethick2;
DRAWTEXT(cross(趋势,顶),顶+0,' -==注意大顶'),colorred,linethick2;
DRAWTEXT(cross(散筹,趋势),趋势+0,' --=买'),colorred,linethick2;
DRAWTEXT(cross(庄筹,趋势),趋势+0,' --=买'),colorffaaff,linethick2;
DRAWTEXT(cross(庄筹,散筹),散筹+0,' --=买'),COLORFFAA66,linethick2;
买:20,coloryellow;
底:0,coloryellow;
通达信天下2指标主副指标截图