彩钻花神: 花:=EMA(SLOPE(1,1)+C,3),COLORRED; 女:=EMA(SLOPE(1,1)+C,7),COLORBLUE; DRAWTEXT(COUNT (花<女,5)=4 AND 花>=女,C*0.95,'B'), COLORRED; DRAWTEXT(COUNT (花>=女,5)=4 AND 花<女,C*1.08,'S'), COLORYELLOW; STICKLINE(花>= 女 ,CLOSE,OPEN,8,0) ,COLOR000077; STICKLINE(花>= 女 ,CLOSE,OPEN,7,0) ,COLOR000099; STICKLINE(花>= 女 ,CLOSE,OPEN,6,0) ,COLOR0000BB; STICKLINE(花>= 女 ,CLOSE,OPEN,5,0) ,COLOR0000CC; STICKLINE(花>= 女 ,CLOSE,OPEN,4,0) ,COLOR0000DD; STICKLINE(花>= 女 ,CLOSE,OPEN,3,0) ,COLOR0000EE; STICKLINE(花>= 女 ,CLOSE,OPEN,2,0) ,COLOR0000FF; STICKLINE(花>= 女 ,CLOSE,CLOSE/1.006,1,0),COLOR0000FF; STICKLINE(花>= 女 ,CLOSE,CLOSE/1.005,2,0),,COLOR0000EE; STICKLINE(花>= 女 ,CLOSE,CLOSE/1.004,3,0),COLOR0000DD; STICKLINE(花>= 女 ,CLOSE,CLOSE/1.003,4,0),COLOR0000CC; STICKLINE(花>= 女 ,CLOSE,CLOSE/1.002,5,0),COLOR0000BB; STICKLINE(花>= 女 ,CLOSE,CLOSE/1.001,6,0),COLOR000099; STICKLINE(花>= 女 ,OPEN,OPEN*1.006,1,0),COLOR0000FF; STICKLINE(花>= 女 ,OPEN,OPEN*1.005,2,0),,COLOR0000EE; STICKLINE(花>= 女 ,OPEN,OPEN*1.004,3,0),COLOR0000DD; STICKLINE(花>= 女 ,OPEN,OPEN*1.003,4,0),COLOR0000CC; STICKLINE(花>= 女 ,OPEN,OPEN*1.002,5,0),COLOR0000BB; STICKLINE(花>= 女 ,OPEN,OPEN*1.001,6,0),COLOR000099; STICKLINE(花<= 女 ,CLOSE,OPEN/1.006,9,0),COLORFF0000; STICKLINE(花<= 女 ,CLOSE,OPEN/1.005,8,0),COLORFF0000; STICKLINE(花<= 女 ,CLOSE,OPEN/1.004,7,0),COLORFF3300; STICKLINE(花<= 女 ,CLOSE,OPEN/1.003,3,0),COLORFFDD00; STICKLINE(花<= 女 ,CLOSE,OPEN/1.002,2,0),COLORFFFF00; {DRAWGBKLAST(CLOSE>OPEN,STRIP(RGB(55,50,0),RGB(0,25,1000),1)); DRAWGBKLAST(CLOSE<OPEN,STRIP(RGB(80,0,0),RGB(100,20,1000),1)); EMA13:=EMA(C,20),COLORFF8080; EMA34:=EMA(C,60),COLORFFFF00; EMA55:=EMA(C,80),COLORFF00FF; YZ1:=C/O>1.02 AND H/C>1.02 AND O/L<1.02; YZ2:=REF(C,1)>REF(O,1) AND O>MA(C,11); Y:=(MA(C,13)-MA(C,55))/MA(C,13)*100; YZ:=YZ1 AND YZ2 AND Y>10; X11:DRAWTEXT(YZ,HIGH+0.2,'减仓'),COLORF00FF0; GR1:=BARSLAST(BETWEEN("BIAS.BIAS2"(6,13,24),0,5) ); GR2:=EMA13>EMA34 AND EMA34>EMA55 AND EMA13>REF(EMA13,1); GR3:=COUNT("BIAS.BIAS2"(6,13,24)>10 AND H=HHV(H,GR1),GR1); GR4:=H=HHV(H,GR1); GR5:="MACD.MACD"(12,26,9)<REF("MACD.MACD"(12,26,9),1); GR6:=GR2 AND GR3 AND GR4; GR7:=GR2 AND GR3 AND GR4 AND GR5; DRAWTEXT(GR6 AND GR7,H+0.13,'保存利润'),COLOR00FF00; A1:=EMA(C,14),COLORWHITE,LINETHICK1; A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW; 支撑位:IF(A1X>=0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0))+1),DRAWNULL),COLORRED,LINETHICK1; 阻力位:IF(A1X<0,REF(EMA(C,14),BARSLAST(CROSS(0,A1X))+1),DRAWNULL),COLORGREEN,LINETHICK1; STICKLINE(CROSS(A1X,0),C,O,2,0),COLORYELLOW; STICKLINE(CROSS(0,A1X),C,O,2,0),COLORGREEN; DRAWICON(CROSS(花,女) AND CLOSE/REF(CLOSE,1)>1.03,LOW/1.06,25); 花2:=EMA(SLOPE(1,1)+C,3),COLORRED; 女2:=EMA(SLOPE(1,1)+C,7),COLORBLUE; 花1:=MA(CLOSE, 5); 女1:=MA(CLOSE, 60); 花仙:=CROSS(花2,女2) AND 花1>女1; 仙女:=CROSS(女2,花2) AND 花1>女1 AND COUNT(CROSS(花,女) AND 花1>女1 ,30); DRAWTEXT(花仙,LOW/1.03,'↖买'),COLORWHITE; DRAWTEXT(仙女,HIGH*1.06,'卖'),COLORYELLOW; STICKLINE(花仙,CLOSE,O,2,0),COLORYELLOW; STICKLINE(仙女,CLOSE,O,7,0),COLOR555500; STICKLINE(仙女,CLOSE,O,6,0),COLOR888800; STICKLINE(仙女,CLOSE,O,5,0),COLORAAAA00; STICKLINE(仙女,CLOSE,O,4,0),COLORCCCC00; STICKLINE(仙女,CLOSE,O,3,0),COLOREEEE00; STICKLINE(仙女,CLOSE,O,2,0),COLORWHITE; STICKLINE(花仙,CLOSE,O,4,0),COLOR0000AA; STICKLINE(花仙,CLOSE,O,3,0),COLOR0000CC; STICKLINE(花仙,CLOSE,O,2,0),COLOR0000EE; 买入条件:=花仙; 卖出条件:=仙女; D1:=BARSLAST(买入条件); D2:=FLOOR(((C-REF(C,D1))/REF(C,D1))*100); IF(D2>=3 AND D2<7,'5',DRAWNULL); DRAWTEXT(卖出条件 AND D2=0,LOW,'↙0'),COLORWHITE; DRAWTEXT(卖出条件 AND D2>0 AND D2<3,HIGH*1.13,'↙赚2%'),COLORRED; DRAWTEXT(卖出条件 AND D2>=3 AND D2<7,HIGH*1.13,'↙赚5%'),COLORRED; DRAWTEXT(卖出条件 AND D2>=7 AND D2<9,HIGH*1.13,'↙赚8%'),COLORRED; DRAWTEXT(卖出条件 AND D2>=9 AND D2<12,HIGH*1.13,'↙赚10%'),COLORRED; DRAWTEXT(卖出条件 AND D2>=12 AND D2<14,HIGH*1.13,'↙赚12%'),COLORRED; DRAWTEXT(卖出条件 AND D2>=14 AND D2<17,HIGH*1.13,'↙赚15%'),COLORRED; DRAWTEXT(卖出条件 AND D2>=17 AND D2<20,HIGH*1.13,'↙赚18%'),COLORRED; DRAWTEXT(卖出条件 AND D2>=20 AND D2<23,HIGH*1.13,'↙赚22%'),COLORRED; DRAWTEXT(卖出条件 AND D2>=23 AND D2<27,HIGH*1.13,'↙赚25%'),COLORRED; DRAWTEXT(卖出条件 AND D2>=27 AND D2<31,HIGH*1.13,'↙赚30%'),COLORRED; DRAWTEXT(卖出条件 AND D2>=31 AND D2<33,HIGH*1.13,'↙赚32%'),COLORRED; DRAWTEXT(卖出条件 AND D2>=33 AND D2<36,HIGH*1.13,'↙赚35%'),COLORRED; DRAWTEXT(卖出条件 AND D2>=36 AND D2<39,HIGH*1.13,'↙赚38%'),COLORRED; DRAWTEXT(卖出条件 AND D2>=39 AND D2<43,HIGH*1.13,'↙赚40%'),COLORRED; DRAWTEXT(卖出条件 AND D2>=43 AND D2<47,HIGH*1.13,'↙赚45%'),COLORRED; DRAWTEXT(卖出条件 AND D2>=47 AND D2<50,HIGH*1.13,'↙赚48%'),COLORRED; DRAWTEXT(卖出条件 AND D2>=50 AND D2<53,HIGH*1.13,'↙赚50%'),COLORYELLOW; DRAWTEXT(卖出条件 AND D2>=53 AND D2<58,HIGH*1.13,'↙赚55%'),COLORYELLOW; DRAWTEXT(卖出条件 AND D2>=58 AND D2<63,HIGH*1.13,'↙赚60%'),COLORYELLOW; DRAWTEXT(卖出条件 AND D2>=63 AND D2<68,HIGH*1.13,'↙赚65%'),COLORYELLOW; DRAWTEXT(卖出条件 AND D2>=68 AND D2<73,HIGH*1.13,'↙赚70%'),COLORYELLOW; DRAWTEXT(卖出条件 AND D2>=73 AND D2<78,HIGH*1.13,'↙赚75%'),COLORYELLOW; DRAWTEXT(卖出条件 AND D2>=78 AND D2<83,HIGH*1.13,'↙赚80%'),COLORYELLOW; DRAWTEXT(卖出条件 AND D2>=83 AND D2<88,HIGH*1.13,'↙赚85%'),COLORYELLOW; DRAWTEXT(卖出条件 AND D2>=88 AND D2<93,HIGH*1.13,'↙赚90%'),COLORYELLOW; DRAWTEXT(卖出条件 AND D2>=93 AND D2<97,HIGH*1.13,'↙赚95%'),COLORYELLOW; DRAWTEXT(卖出条件 AND D2>=97 AND D2<100,HIGH*1.13,'↙赚99%'),COLORYELLOW; DRAWTEXT(卖出条件 AND D2>=100,HIGH*1.03,'↙100%发了!'),COLORYELLOW; DRAWTEXT(卖出条件 AND D2<=-1 AND D2>-3,HIGH*1.03,'↙-2%'),COLORBLUE; DRAWTEXT(卖出条件 AND D2<=-3 AND D2>-5,HIGH*1.03,'↙-3%'),COLORBLUE; DRAWTEXT(卖出条件 AND D2<=-5 AND D2>-7,HIGH*1.03,'↙-5%'),COLORBLUE; DRAWTEXT(卖出条件 AND D2<=-7 AND D2>-9,HIGH*1.03,'↙-7%'),COLORBLUE; DRAWTEXT(卖出条件 AND D2=-9 ,HIGH*1.03,'-↙9%'),COLORBLUE; DRAWTEXT(卖出条件 AND D2<=-10 AND D2>-12,HIGH*1.03,'↙-10%'),COLORBLUE; DRAWTEXT(卖出条件 AND D2<=-12 AND D2>-14,HIGH*1.03,'↙-12%'),COLORBLUE; DRAWTEXT(卖出条件 AND D2<=-14 AND D2>-16,HIGH*1.03,'↙-14%'),COLORBLUE; DRAWTEXT(卖出条件 AND D2<=-16 AND D2>-18,HIGH*1.03,'↙-16%'),COLORBLUE; DRAWTEXT(卖出条件 AND D2<=-18 AND D2>-20,HIGH*1.03,'↙-18%'),COLORBLUE; DRAWTEXT(卖出条件 AND D2<=-20 AND D2>-23,HIGH*1.03,'↙-20%'),COLORBLUE; DRAWTEXT(卖出条件 AND D2<=-23 AND D2>-26,HIGH*1.03,'↙-23%'),COLORBLUE; DRAWTEXT(卖出条件 AND D2<=-26 AND D2>-28,HIGH*1.03,'↙-25%'),COLORBLUE; DRAWTEXT(卖出条件 AND D2<=-28 AND D2>-33,HIGH*1.03,'↙-30%'),COLORBLUE; DRAWTEXT(卖出条件 AND D2<=-33 AND D2>-35,HIGH*1.03,'↙-32%'),COLORBLUE; DRAWTEXT(卖出条件 AND D2<=-35 AND D2>-39,HIGH*1.03,'↙-35%'),COLORBLUE; DRAWTEXT(卖出条件 AND D2<=-39 AND D2>-43,HIGH*1.03,'↙-40%'),COLORBLUE; 发射副图: VAR1:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20; VAR2:=2*ABS(VAR1); VAR3:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1); VAR4:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1); VAR5:=(HIGH+LOW+CLOSE)/3; VAR6:=(VAR5-MA(VAR5,14))/(0.015*AVEDEV(VAR5,14)); VAR7:=(VAR5-MA(VAR5,70))/(0.015*AVEDEV(VAR5,70)); VAR8:=IF(VAR6>=150 AND VAR6<200 AND VAR7>=150 AND VAR7<200,10,0); VAR9:=IF(VAR6<=-150 AND VAR6>-200 AND VAR7<=-150 AND VAR7>-200,-10,VAR8); VARA:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100; VARB:=100-ABS(VARA); VARC:=3*SMA((INDEXC-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1)-2*SMA(SMA((INDEXC-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1),15,1); VARD:=3*SMA((INDEXO-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1)-2*SMA(SMA((INDEXO-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1),15,1); VARE:=REF(LOW,1)*0.9; VARF:=LOW*0.9; VAR10:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL; VAR111:=EMA(VAR10,30); VAR12:=VAR111-CLOSE; VAR13:=REF(CLOSE,1); VAR14:=SMA(MAX(CLOSE-VAR13,0),7,1)/SMA(ABS(CLOSE-VAR13),7,1)*100,LINETHICK2; VAR15:=SMA(MAX(CLOSE-VAR13,0),13,1)/SMA(ABS(CLOSE-VAR13),13,1)*100,LINETHICK2; VAR16:=BARSCOUNT(CLOSE); VAR17:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100,LINETHICK1; VAR18:((-100)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+50)*2,LINETHICK1; VAR19:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100; VAR1A:=(SMA(VAR19,4,1)-50)*2; VAR1B:SMA(VAR1A,3,1); VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100; VAR1D:=SMA(VAR1C,4,1); VAR1E:=SMA(VAR1D,3,1); VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100,LINETHICK1; VAR11:=(INDEXC-REF(INDEXC,1))/REF(INDEXC,1)*100; VAR22:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100; VAR33:=IF(ABS(VAR1)<2,0.9,1); VAR44:=VAR33*(VAR22-VAR11); VAR20:=IF(VAR17<=50 AND VAR18<-95 AND VAR1F>0 AND VAR1B<-50 AND VAR1E<50 AND VAR12>=-0.20 AND VAR14<25 AND VAR15<30 AND VAR16>50,70,0); {VAR20:=IF(VAR17<=30 AND VAR18<0 AND VAR1F>20 AND VAR1B<-30 AND VAR1E<45 AND VAR12>=-0.25 AND VAR14<25 AND VAR15<30 AND VAR16>50,70,0); {VAR20:=IF(VAR17<=25 AND VAR18<-95 AND VAR1F>20 AND VAR1B<-30 AND VAR1E<30 AND VAR12>=-0.25 AND VAR14<25 AND VAR15<30 AND VAR16>50,70,0);} ★发射:= VAR20,LINETHICK0,COLORRED; 预警系统:IF(VAR7>=200 AND VAR6>=150,15,IF(VAR7<=-200 AND VAR6<=-150,-15,VAR9))+60,LINETHICK0; 发射: VAR20,LINETHICK0,COLORRED; STICKLINE(★发射>0,15,★发射*1.1,0,0),POINTDOT,COLORWHITE; STICKLINE(★发射>0 AND ★发射<400,40,★发射,0,1),COLORRED,LINETHICK1; STICKLINE(★发射>0,15,★发射*0.7,1.5,0),COLORFFA4A6,LINETHICK5; STICKLINE(★发射>0,15,★发射*0.1,3,0),COLOR0099CC,LINETHICK7; STICKLINE(★发射>0,15,0,5,0),COLORRED,LINETHICK6; 天:=IF(VARB<90,VARB,100); 地:= IF(VAR1>0,VAR1,0); 基地:= IF(VAR1<0,VAR2,0); T1:=CLOSE>MA(CLOSE,20) AND MA(CLOSE,20)>=REF(MA(CLOSE,20),1); T2:=CLOSE<MA(CLOSE,20) AND MA(CLOSE,20)<REF(MA(CLOSE,20),1); T3:=地>50 AND 预警系统>60 AND 天 =100; T4:=地>48 AND 预警系统>60 AND 天<100; T5:=基地>38 AND 预警系统<55; T6:=★发射>50 AND 天<90; T7:=VAR3<REF(VAR4,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1); T8:=VAR3>=REF(VAR4,1) AND CLOSE<REF(CLOSE,1) AND 预警系统=60 AND ★发射=0 AND 基地>REF(基地,1) AND VARC<REF(VARD,1); STICKLINE(T8,0,5,6,0),COLORFFFF00; 洗盘回调介入( 顶尖财经 股票学院: http://www.58188.com ): {洗盘回调介入} T11:=CONST(LLVBARS(LOW,10)); T11HIGH:=CONST(REF(HIGH,T11)); CC1:=CONST(CURRBARSCOUNT); T22:=CONST(BARSLAST(CURRBARSCOUNT>CC1+T11 AND H>T11HIGH)); T22HIGH:=CONST(REF(HIGH,T22)); T33:=CONST(BARSLAST(CURRBARSCOUNT>CC1+T22 AND HIGH>T22HIGH)); T33HIGH:=CONST(REF(HIGH,T33)); {C>=T33HIGH AND REF(C,1)<T33HIGH AND DYNAINFO(17)>2;} N:=10; T1K:=CONST(LLVBARS(LOW,N)); T1HIGH:=CONST(REF(HIGH,T1K)); CC:=CONST(CURRBARSCOUNT); T2K:=CONST(BARSLAST((CURRBARSCOUNT >(CC+T1K)) AND (HIGH>T1HIGH))); T2HIGH:=CONST(REF(HIGH,T2K)); T3K:=CONST(BARSLAST((CURRBARSCOUNT >(CC+T2K)) AND (HIGH>T2HIGH))); T3HIGH:=CONST(REF(HIGH,T3K)); 洗盘杀入线:DRAWLINE(CURRBARSCOUNT=10+1,T3HIGH,ISLASTBAR, T3HIGH,1),LINETHICK1,COLORLIRED; DRAWTEXT(ISLASTBAR, T3HIGH,'杀入线')LINETHICK1,COLORLIRED; DRAWKLINE(HIGH,OPEN,LOW,CLOSE); LC:=REF(CLOSE,1); RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100); FF:=EMA(CLOSE,3); MA15:=EMA(CLOSE,21); 回调:MA(CLOSE,10000); 买线:EMA(C,2),COLORRED; 卖线:EMA(SLOPE(C,21)*20+C,42),COLORGREEN; 指导线: EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2),LINETHICK1,COLORFFFFFF; 界: MA(CLOSE,27),LINETHICK1,COLOR00FFFF; {STICKLINE((MA15 > REF(MA15,1)),MA15,MA15,9,6),LINETHICK2,COLOR0000FF;} {STICKLINE((MA15 < REF(MA15,1)),MA15,MA15,9,6),LINETHICK2,COLORFF0000;} DRAWTEXT(CROSS(FF,MA15),(LOW * 0.99),'上拐点'),COLOR00FFFF; DRAWTEXT(CROSS(MA15,FF),(HIGH * 1.02),'下拐点'),COLOR00FF00; DRAWTEXT(CROSS(85,RSI),(HIGH * 1.02),'回调!'),COLORFFFFFF; BU:=CROSS(买线,卖线); SEL:=CROSS(卖线,买线); STICKLINE(买线>=卖线,CLOSE,OPEN,2.5,0),COLOR0000AA; STICKLINE(买线>=卖线,CLOSE,OPEN,2,0),COLOR0000CC; STICKLINE(买线<卖线,CLOSE,OPEN,2.5,0),COLORAAAA00; STICKLINE(买线<卖线,CLOSE,OPEN,2,0),COLORBBBB00; STICKLINE(CROSS(买线,卖线) OR CROSS(卖线,买线),OPEN,CLOSE,1.5,0),COLOR00FFFF; |