优化组合副图进场指标
STICKLINE(100,100,0,5,0),COLOR666600;
想你:=REF(CLOSE,2);
恨你:=SMA(MAX(CLOSE-想你,0),7,1)/SMA(ABS(CLOSE-想你),7,1)*100,COLORFFAA66;
Q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;
Q3:=SMA(Q2, 9, 1);
Q4:=SMA(Q3, 3, 1);
Q8:=HHVBARS(HIGH, 50);
Q10:=(CLOSE-REF(OPEN, Q8))/REF(OPEN, Q8)*100;
爱你:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;
〓顶〓: IF(恨你< REF(恨你,1) AND 恨你>79,85,100),LINETHICK2;
分水岭:=EMA(Q3, 3),COLORBLUE,LINETHICK2;
※做多※:3*Q3-2*Q4,COLORGREEN,LINETHICK3;
△做空△:SMA(爱你,3,1),COLORBLUE,LINETHICK2;
DRAWTEXT(CROSS(※做多※, 8) AND Q10<-13,20,'*大底来');
DRAWTEXT(C-O>=0 AND O/L>1.05 AND L<=LLV(L,20),21,'★<--极品绝底');
N:=9; M1:=3;M2:=3;P:=9;{以上是背景}
条件1:=C>=REF(C,1);
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);
VAR5:=LLV(LOW,13);
VAR6:=HHV(VAR4,13);
VAR7:=IF(MA(CLOSE,34),1,0);
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
VAR9:=IF(VAR8>100,100,VAR8);
STICKLINE(VAR9>-120,0,VAR9,3.0,0),COLOR000055;
STICKLINE(VAR9>-120,0,VAR9,2.6,0),COLOR000077;
STICKLINE(VAR9>-120,0,VAR9,2.1,0),COLOR000099;
STICKLINE(VAR9>-120,0,VAR9,1.5,0),COLOR0000BB;
STICKLINE(VAR9>-120,0,VAR9,0.9,0),COLOR0000DD;
STICKLINE(VAR9>-120,0,VAR9,0.2,0),COLORCC66FF;
【庄家介入】:IF(VAR9>-120,VAR9,0),COLORRED,NODRAW;
快线:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
慢线:=SMA(快线,M1,1);
空:=SMA(慢线,M2,1);
牛股:=IF(BARSLAST(CROSS(慢线,空))<P AND CROSS(慢线,空) AND 慢线<=20,90,0);
BB:=IF((BARSLAST(CROSS(慢线,快线))>=3 AND CROSS(快线,慢线) AND 慢线<=21 AND 条件1) OR 牛股 ,20,0);
BOLL:=MA(CLOSE,21);
BOLL下轨:=BOLL-2*STD(CLOSE,21);
轨道线下轨:=(1-8/100)*MA(CLOSE,21);
け:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
こ:=DMA(CLOSE,け);
薛斯通道4:=(1-8/100)*こ;
散户动向:=100*(C-LLV(L,8))/(HHV(C,8)-LLV(L,8)),COLORWHITE,LINETHICK2;
中户动向:=100*(C-LLV(L,13))/(HHV(C,13)-LLV(L,13)),COLORGREEN;
大户动向:=100*(C-LLV(L,21))/(HHV(C,21)-LLV(L,21)),COLORMAGENTA,LINETHICK2;
主力动向:=100*(C-LLV(L,44))/(HHV(C,44)-LLV(L,44)),COLORRED,LINETHICK4;
弱势区:=20.POINTDOT,COLORGRAY,LINETHICK2;
强势区:=80.POINTDOT,COLORLIMAGENTA,LINETHICK2;
CS:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
TAI1:=REF(CLOSE,2);
TAI2:=SMA(MAX(CLOSE-TAI1,0),7,1)/SMA(ABS(CLOSE-TAI1),7,1)*100,COLORFFAA66;
邰1:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);
邰2:=8;★股市黑客:=MA(C,1)/MA(REF(C,13),8)*100;★抄月殳生活:=MA(FORCAST(★股市黑客,21),3);
CC:=CROSS(邰1,邰2) AND ★股市黑客>=★抄月殳生活AND ★股市黑客<=105 AND ★抄月殳生活<=99;
CC1:=CROSS(★股市黑客,★抄月殳生活) AND ★股市黑客<=105 AND ★抄月殳生活<=99;
★股价趋势:=(EMA(CS,3)-50)*2,LINETHICK3,COLORBROWN;{逃顶}
¥①:IF(CC AND CC1,34,0),LINETHICK3,COLORWHITE;
¥②:IF(BB>0,63,0),LINETHICK3,COLORLICYAN;
¥③:IF(REF((C<薛斯通道4 AND C<轨道线下轨 AND C<BOLL下轨) AND(中户动向<5 AND 大户动向<5 AND 散户动向<5) ,1) ,89,0),LINETHICK3,COLORRED;
¥④:IF(REF((中户动向<3 AND 大户动向<3 AND 散户动向<3 AND 主力动向<3),1),55,0),LINETHICK3,COLORBROWN;
DRAWICON(TAI2< REF(TAI2,1) AND TAI2>79,95,2);
DRAWICON(BB>0,65,5);
DRAWICON(CC AND CC1,35,5),COLOR0099FF;{进}
DRAWTEXT(REF((中户动向<3 AND 大户动向<3 AND 散户动向<3 AND 主力动向<3),1),56,'★'),COLORBLACK;
DRAWTEXT(REF((C<薛斯通道4 AND C<轨道线下轨 AND C<BOLL下轨) AND(中户动向<5 AND 大户动向<5 AND 散户动向<5),1),90,'☆'),COLORBLACK; |