通达信领涨抄底副图指标公式源码


N:=27;(参数)
益:=FINANCE(33);
换手:=VOL/CAPITAL;
{缩量长阳:IF(长阳,(WINNER(C)-WINNER(O))*100,0),STICK,COLOR6EA4FF,LINETHICK2;}
VAR2:=(INDEXC-REF(INDEXC,1))/REF(INDEXC,1); 
大盘:=EMA(SUM(VAR2,20),5);
VAR3:=(C-LLV(L,125))/(HHV(H,125)-LLV(L,125))*100;
VAR5:=SMA(VAR4,34,1);
中线趋势升:=(中线趋势-REF(中线趋势,1))>=0;
均十升:=(MA(C,10)-REF(MA(C,10),1))>=0;
领涨大盘:IF(均五升 AND 均十升 AND 中线趋势升 AND 领涨,4,0),COLORFF99FF;
VAR7:=LLV(L,N);
攀登:=EMA((VAR6-VAR7)/(VAR8-VAR7)*100,13)-50;
STICKLINE(攀登>金山 AND 攀登>=REF(攀登,1),攀登+5,金山-1,1.5,0),COLORRED,LINETHICK2;
STICKLINE(攀登>=金山,金山,金山,1.5,0),COLORYELLOW,LINETHICK2;
{STICKLINE(领涨大盘=4,攀登+6,金山-1,1.5,0),COLORFF99FF;}
STICKLINE(攀登>=金山 AND 均五升 AND 均十升 AND 中线趋势升 ,金山-3,金山-7,2,0),COLOR64A0E6 ;
起攀:IF(运动员=1 AND COUNT(运动员=1,5)=1,8,0),COLORFF9999,LINETHICK1;
BIAS1:=(C-MA(C,6))/MA(C,6)*100;
BIAS3:=(C-MA(C,24))/MA(C,24)*100;
乖离:=MA(BIAS,3);{}
抄底一:IF(乖离<-12 AND 乖离>=-18,-12,0),{COLOR33CCCC}COLORMAGENTA,STICK;
抄底二:IF(乖离<-18,-18,0),{COLOR3399CC}COLORYELLOW,STICK;
必抄底:IF(起攀=8 AND COUNT(乖离<-12,10)>=1,10,0),LINETHICK0,COLORRED;
{DRAWTEXT(必抄底=10,10,'←必抄底'),COLORRED;};