通达信庄动出击主图指标公式
通达信放倍量和缩倍量指标公式
通达信庄动出击主图指标公式:
N:=10;
VAR1:=MA(CLOSE,20);
布林极限:=100*(CLOSE-VAR1)/stD(CLOSE,20);
布林值:=EMA(布林极限,10);
VAR2:=EMA(布林极限,5);
VAR3:=EMA(布林值,5);
VAR4:=EMA(HHV(HIGH,500),21);
VAR5:=EMA(HHV(HIGH,250),21);
VAR6:=EMA(HHV(HIGH,90),21);
VAR7:=EMA(LLV(LOW,500),21);
VAR8:=EMA(LLV(LOW,250),21);
VAR9:=EMA(LLV(LOW,90),21);
VARA:=EMA((VAR7*0.96+VAR8*0.96+VAR9*0.96+VAR4*0.558+VAR5*0.558+VAR6*0.558)/6,21);
VARB:=EMA((VAR7*1.25+VAR8*1.23+VAR9*1.2+VAR4*0.55+VAR5*0.55+VAR6*0.65)/6,21);
VARC:=EMA((VAR7*1.3+VAR8*1.3+VAR9*1.3+VAR4*0.68+VAR5*0.68+VAR6*0.68)/6,21);
VARD:=EMA((VARA*3+VARB*2+VARC)/6*1.738,21);
VARE:=REF(LOW,1);
VARF:=SMA(Abs(LOW-VARE),3,1)/SMA(MAX(LOW-VARE,0),3,1)*100;
VAR10:=IF(CLOSE*1.35<=VARD,VARF*10,VARF/10);
VAR11:=EMA(VAR10,3);
VAR12:=LLV(LOW,30);
VAR13:=HHV(VAR11,30);
VAR14:=IF(LOW<=VAR12,(VAR11+VAR13*2)/2,0);
VAR15:=EMA(VAR14,3)/500-100;
VAR16:=0.2*VAR15;
VAR17:=1.2*VAR15;
VAR18:=(2*CLOSE+HIGH+LOW)/4;
VAR19:=LLV(LOW,34);
VAR1A:=HHV(HIGH,34);
VAR1B:=(VAR18-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100;
VAR1C:=EMA(VAR1B,3);
VAR1D:=EMA(VAR1C,3);
VAR1E:=EMA((VAR18-VAR19)/(VAR1A-VAR19)*100,9);
VAR1F:=EMA(0.667*REF(VAR1E,1)+0.333*VAR1E,3);
VAR20:=LLV(HIGH,240);
VAR21:=100*(CLOSE-VAR20)/VAR20;
VAR22:=HHV(HIGH,240);
VAR23:=100*(VAR22-CLOSE)/CLOSE;
VAR24:=REF(HHV(CLOSE,60),1);
VAR25:=REF(LLV(CLOSE,60),1);
VAR26:=100*(CLOSE-VAR25)/(VAR24-VAR25);
出击: IF(VAR16<REF(VAR16,1) AND REF(VAR16,1)>REF(VAR16,2) AND REF(VAR16,2)>REF(VAR16,3)
AND VAR17<REF(VAR17,1) AND REF(VAR17,1)>REF(VAR17,2) AND REF(VAR17,2)>REF(VAR17,3)
AND REF(VAR17,1)>0,260,0),STICK,LINETHICK3,COLORRED;
HZ:IF(crOSS(VAR26,VAR21) AND CROSS(布林极限,布林值) AND CLOSE>=OPEN AND VAR1E<=50 AND VAR1F<=50
AND VAR1C>=VAR1E AND VAR1D>=VAR1F,260,0),STICK,LINETHICK6,COLORBLacK;
HP:IF(CROSS(VAR26,VAR21) AND CROSS(布林极限,布林值) AND CLOSE>=OPEN AND VAR1E<=50 AND VAR1F<=50
AND VAR1C>=VAR1E AND VAR1D>=VAR1F,260,0),STICK,LINETHICK2,COLOR009900;
HH:IF(CROSS(VAR26,VAR21) AND CROSS(布林极限,布林值) AND CLOSE>=OPEN AND VAR1E<=50 AND VAR1F<=50
AND VAR1C>=VAR1E AND VAR1D>=VAR1F,260,0),STICK,LINETHICK1,COLORRED;
TZ:IF(CROSS(REF(VAR26,1),REF(VAR21,1)) AND CROSS(布林极限,布林值) AND CLOSE>=OPEN AND VAR1E<=50
AND VAR1F<=50 AND VAR1C>=VAR1E AND VAR1D>=VAR1F,260,0),STICK,LINETHICK3,COLORGREEN;
STICKLINE(布林极限>=布林值,布林极限,布林值,2,0),COLORMAGENTA;
STICKLINE(布林极限<布林值,布林值,布林极限,3,0),COLOR006600;
STICKLINE(布林极限<布林值,布林值,布林极限,2,0),COLOR009900;
STICKLINE(布林极限<布林值,布林值,布林极限,1,0),COLOR00EE00;
STICKLINE(VAR2>=VAR3,VAR2,VAR3,2,0),COLORMAGENTA;
STICKLINE(VAR2<VAR3,VAR3,VAR2,3,0),COLOR006600;
STICKLINE(VAR2<VAR3,VAR3,VAR2,2,0),COLOR009900;
STICKLINE(VAR2<VAR3,VAR3,VAR2,1,0),COLOR00EE00;
STICKLINE(CROSS(布林极限,布林值),布林极限,布林值,3,0),COLORMAGENTA;
STICKLINE(布林极限>=170,布林极限,布林值,3,0),COLOR0055AA;
STICKLINE(布林极限>=170,布林极限,布林值,2,0),COLOR0077CC;
STICKLINE(布林极限>=170,布林极限,布林值,1,0),COLOR00BBFF;
VARR1: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,LINETHICK1;
VARR2:8,COLORGREEN,LINETHICK0;
主力启动: IF(CROSS(VARR1,VARR2),80,0),STICK,LINETHICK4;
DRAWTEXT(CROSS(VARR1,VARR2),100,'庄动');
通达信跟庄线主图指标公式