以下是通达信线(气势磅礴的公式)-源码和截图
通达信散户线(气势磅礴的公式)源码:
M:=60;
N:=30;
散户线:100*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60)),colorgray;
RSV:=(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
STICKLINE(C 0,85,85,6,1),colormagenta;
操作指导线:60,colorred;
VAR1:=1;
VAR2:=REF(LOW,1)*VAR1;
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100*VAR1;
VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3)*VAR1;
VAR5:=LLV(LOW,30)*VAR1;
VAR6:=HHV(VAR4,30)*VAR1;
VAR7:=IF(MA(CLOSE,58),1,0)*VAR1;
VAR8:=EMA(IF(LOW =VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7*VAR1;
VAR9:=IF(VAR8 100,100,VAR8)*VAR1;
吸筹:STICKLINE(VAR9 -150,0,VAR9,6,1),colormagenta;
线:=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),colorred,LINETHICK2;
STICKLINE(C 0,10,10,6,1),COLORFFAA00;
见底信号:=10;
买点准备:IF(趋势线 =10,30,0),coloryellow;
买入时间:IF(CROSS(趋势线,见底信号),50,0),colorgreen;
VAR84:=SMA(ABS(L-REF(L,1)),13,1)/SMA(MAX(L-REF(L,1),0),13,1);
底部动量:EMA(IF(L =LLV(L,30),VAR84,0),3)*10,COLORA0A0FF;
起动:EMA(J,6),colorred,LINETHICK1;
M:=60;
N:=30;
散户线:100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M))COLORGRAY;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
STICKLINE(C 0,85,85,6,1),COLORMAGENTA;
操作指导线:60,COLORRED;
VAR1:=1;
VAR2:=REF(LOW,1)*VAR1;
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100*VAR1;
VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3)*VAR1;
VAR5:=LLV(LOW,30)*VAR1;
VAR6:=HHV(VAR4,30)*VAR1;
VAR7:=IF(MA(CLOSE,58),1,0)*VAR1;
VAR8:=EMA(IF(LOW =VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7*VAR1;
VAR9:=IF(VAR8 100,100,VAR8)*VAR1;
吸筹:STICKLINE(VAR9 -150,0,VAR9,6,1),COLORMAGENTA;
趋势线:=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)COLORREDLINETHICK2;
STICKLINE(C 0,10,10,6,1),COLORFFAA00;
见底信号:=10;
买点准备:IF(趋势线 =10,30,0)COLORYELLOW;
买入时间:IF(CROSS(趋势线,见底信号),50,0)COLORGREEN;
VAR84:=SMA(ABS(L-REF(L,1)),13,1)/SMA(MAX(L-REF(L,1),0),13,1);
底部动量:EMA(IF(L =LLV(L,30),VAR84,0),3)*10,COLORA0A0FF;
起动:EMA(J,6),COLORREDLINETHICK1;
{-----------------}
EMA250:MA(C,250),COLORRED;
EMA6:MA(C,6),COLORREDLINETHICK2;
EMA18:MA(C,18),COLORYELLOW;
EMA55:MA(C,55),COLORFF00FF;
EMA144:MA(C,144),COLORGREEN;
EMA288:MA(C,288),COLORBLUE;
【买入】:=COUNT(CLOSE EMA18,5)=4AND
CLOSE/EMA18 1.004ANDCROSS(CLOSE,EMA18)ANDEMA18 =
REF(EMA18,1),LINETHICK,COLORRED;
DRAWTEXT(中线【买入】,LOW*0.95,'中线【买入】'),COLORRED;
VL:=REF(LOW,1);
VAR12:=(SMA(ABS(LOW-VL),13,1))/(SMA(MAX(LOW-VL,0),13,1))*100;
VAR14:=MA(VAR12,13);
VAR15:=LLV(LOW,34);
VAR18:=EMA(IF(LOW =VAR15,VAR14,0),3);
VAR110:=SMA(SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1),5,1);
VAR111:=SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1)*16.18-VAR110*10.9;
T:=FILTER(IF(VAR111 =VAR110ANDVAR18 REF(VAR18,1),VAR18*8,0),20);
DRAWTEXT(T,LOW-0.4,'←洗盘结束'),COLORFF00FF;
DRAWTEXT(T,LOW-0.2,''),COLORFF00FF;
VAR21:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
VAR22:=SMA(VAR21,3,1);
VAR23:=SMA(VAR22,3,1);
VAR24:=SMA(VAR23,3,1);
VAR25:=CROSS(VAR23,VAR24)ANDVAR23
DRAWTEXT(FILTER(VAR25,10)=1,LOW-0.4,'←'),COLORRED;
DRAWTEXT(FILTER(VAR25,10)=1,LOW-0.2,''),COLORRED;
VAR29:=CROSS(VAR24,VAR23)ANDVAR23
DRAWTEXT(FILTER(VAR29,5)=1,HIGH+0.4,'←'),COLORBLUE;
DRAWTEXT(FILTER(VAR29,5)=1,HIGH+0.2,''),COLORBLUE;
{--------------------------------}
DIFF:=EMA(CLOSE,N)-EMA(CLOSE,M);
DEA:=EMA(DIFF,9);
MA(C,8),COLORWHITE;
MA(C,21),COLORYELLOW;
多头:STICKLINE(DIFF DEA,C,O,3,-1),COLORRED;
STICKLINE(DIFF DEA,H,L,0,0),COLORWHITE;
空头:STICKLINE(DIFF =DEA,C,O,3,0),COLORWHITE;
STICKLINE(DIFF =DEA,H,L,0,0),COLORWHITE;
DRAWTEXT(CROSS(DIFF,DEA),L*0.98,'B'),COLORYELLOW;
DRAWTEXT(CROSS(DEA,DIFF),H*1.02,'S'),COLORGREEN;
DIFF1:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA1:=EMA(DIFF1,9);
MA(C,8),COLORWHITE;
MA(C,21),COLORYELLOW;
多头1:STICKLINE(DIFF1 DEA1,C,O,3,0),COLORRED;
STICKLINE(DIFF DEA1,H,L,0,0),COLORRED;
空头1:STICKLINE(DIFF1 =DEA1,C,O,3,0),COLORYELLOW;
STICKLINE(DIFF1 =DEA1,H,L,0,0),COLORYELLOW;
DRAWTEXT(CROSS(DIFF1,DEA1),L*0.98,'B'),COLORWHITE;
DRAWTEXT(CROSS(DEA1,DIFF1),H*1.02,'S'),COLORGREEN;
A:=IF((CLOSE 126.32),(AMOUNT)/(100000),VOL);
:MA(A,4),LINETHICK0,COLORYELLOW;
游资:MA(A,8),LINETHICK0,COLOR00FF00;
大户:MA(A,16),LINETHICK0,COLORRED;
散户:MA(A,32),LINETHICK0,COLORF0F000;
主比:ABS(((主力)/(主力+游资+大户+散户))*(100)),LINESTICK,COLORYELLOW;
游比:ABS(((游资)/(主力+游资+大户+散户))*(100)),LINESTICK,COLOR00FF00;
大比:ABS(((大户)/(主力+游资+大户+散户))*(100)),LINESTICK,COLORRED;
散比:ABS(((散户)/(主力+游资+大户+散户))*(100)),LINESTICK,COLORF0F000;
警戒线:MA(A,180),COLORFF66FF,LINETHICK1;
STICKLINE((主力 0),0,主力,3,0),COLOR009CFF;
STICKLINE((主力 0),0,主力,2.8,0),COLOR009CFF;
STICKLINE((主力 0),0,主力,2.5,0),COLOR00C0FF;
STICKLINE((主力 0),0,主力,1.5,0),COLOR00D1FF;
STICKLINE((主力 0),0,主力,1,0),COLOR00EAFF;
STICKLINE((主力 0),0,主力,0.7,0),COLORYELLOW;
STICKLINE((游资 0),0,游资,3,0),COLOR00C100;
STICKLINE((游资 0),0,游资,2.8,0),COLOR00CA00;
STICKLINE((游资 0),0,游资,2.5,0),COLOR00D300;
STICKLINE((游资 0),0,游资,1.5,0),COLOR00DB00;
STICKLINE((游资 0),0,游资,1,0),COLOR00EA00;
STICKLINE((游资 0),0,游资,0.7,0),COLORGREEN;
STICKLINE((大户 0),0,大户,3,0),COLOR1020AA;
STICKLINE((大户 0),0,大户,2.8,0),COLOR1020BB;
STICKLINE((大户 0),0,大户,2.5,0),COLOR1020CC;
STICKLINE((大户 0),0,大户,1.5,0),COLOR1020DD;
STICKLINE((大户 0),0,大户,1,0),COLOR1020EE;
STICKLINE((大户 0),0,大户,0.7,0),COLORRED;
STICKLINE((散户 0),0,散户,3,0),COLORFF7700;
STICKLINE((散户 0),0,散户,2.8,0),COLORFF8800;
STICKLINE((散户 0),0,散户,2.5,0),COLORFF9900;
STICKLINE((散户 0),0,散户,1.5,0),COLORFFAA00;STICKLINE((散户 0),0,散户,1,0),COLORFFBB00;
STICKLINE((散户 0),0,散户,0.7,0),COLORLIBLUE;
通达信散户线(气势磅礴的公式)截图