STICKLINE(100,90,0,5,0),COLOR666600;
一线猎庄选股:=9;N2:=5;N:=21;
指标公式:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
eeddd2:=SMA(ABS(LOW-指标公式),13,1)/SMA(MAX(LOW-指标公式,0),10,1);
eeddd3:=EMA(eeddd2,10);{炒股公式-炒股指标www.gs6699.com}
eeddd4:=LLV(LOW,33);
eeddd5:=EMA(IF(LOW<=eeddd4,eeddd3,0),3);
STICKLINE(eeddd5>REF(eeddd5,1),0,eeddd5,3,0 ),COLOR000055;
STICKLINE(eeddd5>REF(eeddd5,1),0,eeddd5,2.6,0 ),COLOR000077;
STICKLINE(eeddd5>REF(eeddd5,1),0,eeddd5,2.1,0 ),COLOR000099;
STICKLINE(eeddd5>REF(eeddd5,1),0,eeddd5,1.5,0 ),COLOR0000BB;
STICKLINE(eeddd5>REF(eeddd5,1),0,eeddd5,0.9,0 ),COLOR0000DD;
STICKLINE(eeddd5>REF(eeddd5,1),0,eeddd5,0.3,0 ),COLOR0000FF;
STICKLINE(eeddd5<REF(eeddd5,1),0,eeddd5,3,0),COLOR005500;
STICKLINE(eeddd5<REF(eeddd5,1),0,eeddd5,2.6,0),COLOR007700;
STICKLINE(eeddd5<REF(eeddd5,1),0,eeddd5,2.1,0),COLOR009900;
STICKLINE(eeddd5<REF(eeddd5,1),0,eeddd5,1.5,0),COLOR00BB00;
STICKLINE(eeddd5<REF(eeddd5,1),0,eeddd5,0.9,0),COLOR00DD00;
STICKLINE(eeddd5<REF(eeddd5,1),0,eeddd5,0.3,0),COLOR00FF00;
eeddda1:IF(eeddd5>REF(eeddd5,1),eeddd5,0),COLORRED,NODRAW;
eeddda3:IF(eeddd5<REF(eeddd5,1),eeddd5,0),COLORGREEN,NODRAW;
B1:=(HHV(H,9)-C)/(HHV(H,9)-LLV(LOW,9))*100- 70;
B2:=SMA(B1,9,1)+100;
B3:=(C-LLV(L,9))/(HHV(H,9)- LLV(L,9))*100;
B4:=SMA(B3,3,1);
B5:=SMA(B4,3,1)+100;
B6:=B5-B2;
rrdaa:=IF(B6>60,B6-60,0);
T1:=STICKLINE(REF(rrdaa,1)<rrdaa,rrdaa,REF(rrdaa,1),9,0),COLORYELLOW;
T2:=STICKLINE(REF(rrdaa,1)>rrdaa,rrdaa,REF(rrdaa,1),9,0),COLORCYAN;{趋势背景}
TAI1:=MA(C,1)/MA(REF(C,13),8)*100;
TAI2:=MA(FORCAST(TAI1,21),3);
TAI3:=REF(TAI1,1);
TAI4:=REF(TAI1,2);
邰1:=LLV(LOW,8);
邰2:=HHV(HIGH,13);
rrda1:= EMA((CLOSE-邰1)/(邰2-邰1)*100,5),COLORRED,LINETHICK3;
rrda2:= EMA(0.667*REF(rrda1,1)+0.333*rrda1,2),COLORGREEN,LINETHICK3;
rrddcc1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));
rrddccD:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2));
rrddccE:=(REF(rrddccD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
rrddccF:=(REF(rrddccE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
rrddcc10:=(REF(rrddccF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
rrddcc11:=(REF(rrddcc10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
rrddcc12:=(REF(rrddcc11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
rrddcc13:=(REF(rrddcc12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
rrddcc14:=(REF(rrddcc13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
rrddcc15:=(REF(rrddcc14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
rrddcc16:=(REF(rrddcc15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
rrddcc17:=(REF(rrddcc16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
rrddcc18:=(REF(rrddcc17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
rrddcc19:=REF(rrddccD OR rrddccE OR rrddccF OR rrddcc10 OR rrddcc11 OR rrddcc12 OR rrddcc13 OR rrddcc14 OR rrddcc15 OR rrddcc16 OR rrddcc17 OR rrddcc18,1) AND rrddcc1;
DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA:=EMA(DIFF,9),COLORFFFF00;
MACD:=(DIFF-DEA)*2;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);
顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);
¥①:IF(REF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04 AND rrdaa=0 AND C>REF(C,1),1),44,0),LINETHICK3,COLORCYAN;{进}
¥②:IF(REF("KDJ.J",1)<0 AND "KDJ.J">0 AND TAI1>=TAI2 AND TAI3>TAI4,34,0),LINETHICK3,COLOR0000FF;{进}
¥③:IF(REF(rrda1,1)<=13&&CROSS(rrda1,rrda2)&&REF(MA(C,55),1)>REF(MA(C,55),2)&&(rrddcc19 OR REF(rrddcc19,1)),23,0),COLORBLUE,LINETHICK3;
¥④:IF(底背离,57,0),LINETHICK3,COLORBROWN;
DRAWTEXT(底背离,54,'←MACD底背离'),COLORWHITE;
DRAWICON(REF(rrda1,1)<=13&&CROSS(rrda1,rrda2)&&REF(MA(C,55),1)>REF(MA(C,55),2)&&(rrddcc19 OR REF(rrddcc19,1)),25,5);
DRAWICON(REF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04 AND rrdaa=0 AND C>REF(C,1),1),46,5);
DRAWICON(REF("KDJ.J",1)<0 AND "KDJ.J">0 AND TAI1>=TAI2 AND TAI3>TAI4,36,5),COLORYELLOW;