追涨时注意控制风险,抄底和减仓为买入信号,减仓和逃顶为卖出信号。
主力趋势:(EMA(((CLOSE-LLV(LOW,36))/(HHV(HIGH,30)-LLV(LOW,36)))*(4),4)),color6FE6FF,LINETHICK3;
升:IF(主力趋势>REF(主力趋势,1),主力趋势,DRAWNULL),COLORFF00FF,LINETHICK3;
降:IF(主力趋势<REF(主力趋势,1),主力趋势,DRAWNULL),COLOR00FF00,LINETHICK3;
趋势:(EMA(((CLOSE-LLV(LOW,36))/(HHV(HIGH,30)-LLV(LOW,36)))*(4),4)),coloryellow,LINETHICK1;
VAR1:="DMI.+DI";
VAR2:="DMI.-MDI";
VAR3:=VAR1>65 AND VAR1>REF(VAR1,1);
VAR4:=LLV(VAR1,0);
VAR5:=BARSLAST(VAR4=VAR1);
VAR6:=(0-REF(VAR2,4))/(VAR4-REF(VAR2,VAR5))>2;
VAR7:=VAR1>REF(VAR1,1);
VAR8:=VOL>2*MA(VOL,30);
VARB:=CLOSE>MA(CLOSE,30) AND CLOSE<MA(CLOSE,30)*1.04;
VARC:=MA(CLOSE,30)>REF(MA(CLOSE,30),1);
VARD:=BARSLAST(CROSS(MA(CLOSE,5),MA(CLOSE,10)))<BARSLAST(CROSS(MA(CLOSE,10),MA(CLOSE,5)));
VARE:=0-"MACD.DIFF"(7,21,3);
VARF:=TROUGHBARS(3,15,1)<4;
VAR10:=EMA(CLOSE,30)>REF(EMA(CLOSE,30),2);
VAR11:=IF(VARF=1,50,0);
VAR14:=VARB AND VARC AND VARD AND VAR10 AND VAR6 AND VAR7 AND VAR8*50;
VAR15:=BARSLAST(CROSS(VAR2,VAR1)=1);
VAR16:=BARSLAST(CROSS(VAR1,VAR2)=1);
VAR17:=HHV(VAR1,VAR16);
VAR18:=BARSLAST(VAR1=VAR17);
STICKLINE(FILTER(VARF=1,5),2,0,10,0),coloryellow;
DRAWICON(FILTER(VARF=1,3),2,1);
DRAWTEXT(FILTER(VARF=1,3),2,'抄底'),coloryellow;
STICKLINE(多空<-10,0,多空,1,0),coloryellow;
STICKLINE(多空>10,0,多空,1,0),coloryellow;
A1:=REF(C,1);
A2:=DCLOSE;
A3:=(A2-A1)/A1*100;
AA1:=(A3-REF(A3,1));
AA2:=9.8;
选股1:=CROSS(AA1,AA2);
A11:=REF(V,1);
A12:=DVOL;
A13:=A12/A11;
AA3:=(A13-REF(A13,1));
AA4:=500;
选股2:=CROSS(AA3,AA4);
抢劫:选股1 AND 选股2,colorff00ff;
下影线:C/REF(C,1)<=1.03 AND C/REF(C,1)>=0.97 AND H/MAX(C,O)<1.01 AND MIN(C,O)/L>1.03,coloryellow;
LCD:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LCD,0),4.1,1)/SMA(ABS(CLOSE-LCD),4.1,1)*100;
建仓:CROSS(RSI,11)*1,colorred;
DIFF:=EMA(DCLOSE,5)-EMA(DCLOSE,19);
DEA:=EMA(DIFF,2);
MACD:=(DIFF-DEA)*10;
低位金叉:CROSS(DIFF,DEA) AND DIFF<-0.1,colorE800E8;