VAR1:=(100 - ((90 * (HHV(HIGH,14) - CLOSE)) / (HHV(HIGH,14) - LLV(LOW,14))));
VAR2:=(100 - ((90 * (HHV(HIGH,14) - CLOSE)) / (HHV(HIGH,14) - LLV(LOW,14))));
VAR3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));
DIR1:=ABS(CLOSE-REF(CLOSE,5));
VIR1:=SUM(ABS(CLOSE-REF(CLOSE,1)),5);
ER1:=DIR1/VIR1;
CS1:=ER1*(0.8-2/8)+2/8;
CQ1:=CS1*CS1;
DIR2:=ABS(CLOSE-REF(CLOSE,10));
VIR2:=SUM(ABS(CLOSE-REF(CLOSE,1)),10);
ER2:=DIR2/VIR2;
CS2:=ER2*(0.8-2/24)+2/24;
CQ2:=CS2*CS2;
STICKLINE(VAR2 MA(VAR3,6),LOW,HIGH,0,1),COLORLIBLUE;
STICKLINE(VAR2 MA(VAR3,6),LOW,HIGH,0,1),COLORRED;
STICKLINE(((OPENCLOSE)AND(VAR2MA(VAR3,6))),(CLOSE-0.03),OPEN,3.05,0),COLORLIBLUE;
STICKLINE(((OPENCLOSE)AND(VAR2MA(VAR3,6))),CLOSE,OPEN,3.05,1),COLORLIBLUE;
STICKLINE(((OPENCLOSE)AND(VAR2MA(VAR3,6))),OPEN,(CLOSE-0.03),3.05,0),COLORRED;
STICKLINE(((OPENCLOSE)AND(VAR2MA(VAR3,6))),OPEN,CLOSE,3.05,1),COLORRED;
DRAWICON(CROSS(VAR2,MA(VAR3,6)),(LOW - (LOW*0.02)),7);
DRAWICON(CROSS(MA(VAR3,6),VAR1),(HIGH+(HIGH*0.02)),8);
PT:=REF(H,1)-REF(L,1);
CDP:=(REF(H,1)+REF(L,1)+REF(C,1)*2)/4;
AH:=CDP+PT;
AL:=CDP-PT;
NH:=CDP*2-REF(L,1);
NL:=CDP*2-REF(H,1);
强:IF(AHREF(C,1)*1.1,REF(C,1)*1.1,AH)NODRAW;
阻:IF(NH强,(强-CDP)*0.618+CDP,NH)NODRAW,COLORBLUE;
M:=IF(ALREF(C,1)/1.1,REF(C,1)/1.1,AL);
撑:IF(NLM,CDP-(CDP-M)*0.618,NL)NODRAW;
底:IF(ALREF(C,1)/1.1,REF(C,1)/1.1,AL)NODRAW;
V1:=BARSCOUNT(CLOSE)*3.142/180;
A2: SIN(V1*8)*100,LINETHICK1;
A3: COS(V1*8)*100,LINETHICK1;
X1:0,COLORFFFFCC;
VAR1:=MA(CLOSE,5);
VAR2:=MA(CLOSE,10);
VAR3:=MA(CLOSE,20);
VAR4:=MA(CLOSE,30);
VAR5:=(VAR1+VAR2+VAR3+VAR4)/4;
VAR6:=(VAR5-REF(VAR5,5))/REF(VAR5,5)*1500;
VAR7:=(VAR5-REF(VAR5,5))/REF(VAR5,5)*1500;
VAR8:=EMA(VAR6,8);
底部注意: STICKLINE(VAR6REF(VAR6,1) AND VAR60 AND VAR6VAR8,VAR6,0,1,0),COLORFF00FF;
低位转强: STICKLINE(VAR8REF(VAR8,1) AND VAR60 AND VAR6VAR8,VAR8,0,1,0),COLORYELLOW;
买点: STICKLINE(VAR6REF(VAR6,1) AND VAR60 AND VAR80,VAR6,VAR8,4,0),COLOR0099FF;
VAR9:=TROUGHBARS(3,15,1)10;
VAR10:=PEAKBARS(3,15,1)10;
VAR11:=IF(VAR9=1,50,0);
VAR12:=IF(VAR10=1,50,0);
底部:= IF(VAR11=50,50,0);
头部:= IF(VAR12=50,100,0);
A:IF( 底部REF(底部,1),50,0);
AA:IF(头部REF(头部,1),50,0);
DRAWTEXT(A=50,90, #39;买进 #39;),COLORRED,LINETHICK1;
DRAWTEXT(AA=50,90, #39;卖出 #39;),COLOR00FF00,LINETHICK1;
DRAWICON(FILTER(VAR6REF(VAR6,1) AND VAR60 AND VAR80,30),-40,1);
DRAWTEXT(FILTER(VAR6REF(VAR6,1) AND VAR60 AND VAR80,30),-40, #39;短买 #39;),COLORFFFFFF;
坚定持股: STICKLINE(VAR8REF(VAR8,1) AND VAR80,VAR6,0,1,0),COLORRED;
谨慎观望: STICKLINE(VAR6REF(VAR6,1) AND VAR8REF(VAR8,1) AND VAR60,VAR6,VAR8,1,0),COLOR00FF00;
果断持币: STICKLINE(VAR6REF(VAR6,1) AND VAR6VAR8,VAR6,VAR8,1,1),COLORFFCC66;
STICKLINE(CLOSEOPEN,H,LOW,0.3,0 ),COLOR9933FF;
STICKLINE(OPEN=CLOSE,L,HIGH,0.3,0 ),COLOR66CC33;
STICKLINE(OPEN=CLOSE ,CLOSE ,OPEN,3,0),COLOR009900;
STICKLINE(OPEN=CLOSE ,CLOSE ,OPEN,2,0),COLOR00CC00;
STICKLINE(OPEN=CLOSE ,CLOSE ,OPEN,1.5,0),COLOR33FF00;
STICKLINE(OPEN=CLOSE ,CLOSE ,OPEN,1,0),COLOR66FF00;
STICKLINE(CLOSEOPEN,CLOSE,OPEN,3,0),COLOR000099;
STICKLINE(CLOSEOPEN,CLOSE,OPEN,2,0 ),COLOR0000CC;
STICKLINE(CLOSEOPEN,CLOSE,OPEN,1.5,0 ),COLOR0000FF;
STICKLINE(CLOSEOPEN,CLOSE,OPEN,1,0 ),COLOR0033FF;
重心:(C+0.618*REF(C,1)+0.382*REF(C,2)+0.236*REF(C,3)+0.146*REF(C,4))/2.382COLORRED,LINETHICK1;
GAO:=HHV(C,60)-LLV(C,60);
RSI:=SMA(MAX(重心-REF(重心,1),0),5,1)/SMA(ABS(重心-REF(重心,1)),5,1);
指导线:重心+GAO*(RSI-0.5),COLORMAGENTA,LINETHICK1;
STICKLINE(CROSS(RSI,0.1),指导线,REF(指导线,1),1,0),COLORMAGENTA;
STICKLINE(CROSS(0.9,RSI),指导线,REF(指导线,1),1,0),COLORCYAN;
{}
平衡:=EMA(((SLOPE(CLOSE,22) * 20) + CLOSE),55);
红升:IF(重心=平衡,平衡,DRAWNULL),COLORRED,LINETHICK2;
蓝降:IF(重心平衡,平衡,DRAWNULL),COLORGREEN,LINETHICK2;
B1:=EMA((2*CLOSE+HIGH+LOW)/4,5);
A1:IF(EMA((2*CLOSE+HIGH+LOW)/4,6)REF(EMA((2*CLOSE+HIGH+LOW)/4,6),1),B1,DRAWNULL),COLOR0000FF;
A2:IF(EMA((2*CLOSE+HIGH+LOW)/4,6)REF(EMA((2*CLOSE+HIGH+LOW)/4,6),1),B1,DRAWNULL),COLOR00FF00;
B2:=EMA((2*CLOSE+HIGH+LOW)/4,13);
A3:IF(EMA((2*CLOSE+HIGH+LOW)/4,10)REF(EMA((2*CLOSE+HIGH+LOW)/4,13),1),B2,DRAWNULL),COLOR0000FF;
A4:IF(EMA((2*CLOSE+HIGH+LOW)/4,10)REF(EMA((2*CLOSE+HIGH+LOW)/4,13),1),B2,DRAWNULL),LINETHICK2,COLOR00FF00;
B3:=REF(EMA((LOW+CLOSE+OPEN)/3,25),1);
A5:IF(EMA((LOW+CLOSE+OPEN)/3,28)REF(EMA((LOW+CLOSE+OPEN)/3,28),1),B3,DRAWNULL),LINETHICK3,COLOR0000FF;
A6:IF(EMA((LOW+CLOSE+OPEN)/3,28)REF(EMA((LOW+CLOSE+OPEN)/3,28),1),B3,DRAWNULL),LINETHICK3,COLOR00FF00;
B4:=(EMA(LOW,125)+EMA((CLOSE+LOW)/2,125))/2;
A7:IF((EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2REF((EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2,1),B4,DRAWNULL),POINTDOT,COLOR0000FF;
A8:IF((EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2REF((EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2,1),B4,DRAWNULL),POINTDOT,COLOR00FF00;