九毛八公式指标
公式模块:
请老师把 关注看看指标 ,做成 选股 (关注出现)做出选股 选股预警 例如300277
VARZ:=(H+L+C)/3;
VAR2Z:=(C-LLV(L,100))/(HHV(H,100)-LLV(L,100))*200;
VAR3Z:=SMA(VAR2Z,3,1);
线:=SMA(VAR3Z,3,1);
中线:=EMA((VARZ-LLV(VARZ,60))/(HHV(VARZ,60)-LLV(VARZ,60)),2)*100;
HAN:=DATE<1131230;
盈亏线:=MA((CLOSE-MA(CLOSE,27))/MA(CLOSE,27),3)*100;
观望:IF(盈亏线<0,盈亏线,0)*HAN,COLOR00EE00,LINETHICK2;{一线盈亏}
操作:IF(盈亏线>0,盈亏线,0)*HAN,COLORFF00FF,LINETHICK2;
看多:=IF(操作>盈亏线,操作,DRAWNULL);
DRAWBAND(操作,RGB(250,0,0),0,RGB(0,100,150))*HAN;
看空:=IF(盈亏线>观望,盈亏线,DRAWNULL);
DRAWBAND(盈亏线,RGB(250,0,0),0,RGB(256,200,0)*HAN);
STICKLINE(线<30 AND 中线<15,4,100,25,0)*HAN,COLOR990055;
STICKLINE(线<30 AND 中线<15,4,80,25,0)*HAN,COLOR990059;
STICKLINE(线<30 AND 中线<15,4,60,25,0)*HAN,COLOR990060;
STICKLINE(线<30 AND 中线<15,4,40,25,0)*HAN,COLOR990064;
STICKLINE(线<30 AND 中线<15,4,30,25,0)*HAN,COLOR990069;
STICKLINE(线<30 AND 中线<15,4,20,25,0)*HAN,COLOR990070;
最底线:-5,COLORWHITE,LINETHICK3;
VAR1:=(2*CLOSE+HIGH+LOW)/4;
VAR2:=LLV(LOW,34);
VAR3:=HHV(HIGH,34);
XX:=EMA((VAR1*HAN-VAR2)/(VAR3-VAR2)*100,13);
YY:=EMA(0.667*REF(XX*HAN,1)+0.333*XX,2) , ;
冯:=STICKLINE(YY<XX,XX,YY,3,0),COLORRED;
冯A:=STICKLINE(YY>XX,XX,YY,3,0);
V1:=MA(100*(C-LLV(C,34))/(HHV(H,34)-LLV(L,34)),5)-20;
V2:=2*ABS(V1);
V3:=100-(100-3*SMA((C-LLV(L,75))/(HHV(H,75)-LLV(L,75))
*100,20,1)+2*SMA(SMA((C-LLV(L,75))/(HHV(H,75)-LLV(L,75))
*100,20,1),15,1));
V4:=100-(100-3*SMA((O-LLV(L,75))/(HHV(H,75)-LLV(L,75))
*100,20,1)+2*SMA(SMA((O-LLV(L,75))/(HHV(H,75)-LLV(L,75))
*100,20,1),15,1));
V5:=(H+L+C)/3;
V6:=(V5-MA(V5,10))/(0.015*AVEDEV(V5,10));
V7:=(V5-MA(V5,30))/(0.015*AVEDEV(V5,30));
V8:=IF(V6>=150 AND V6<200 AND V7>=150 AND V7<200,10,0);
V9:=IF(V6<=-150 AND V6>-200 AND V7<=-150 AND V7>-200,-10,V8);
VA:=(C-MA(C,13))/MA(C,13)*100;
VB:=100-ABS(VA);
VC:=3*SMA((INDEXC-LLV(INDEXL,55))/(HHV(INDEXH,55)-LLV(INDEXL,55))*100,20,1)-2
*SMA(SMA((INDEXC-LLV(INDEXL,55))/(HHV(INDEXH,55)-LLV(INDEXL,55))*100,20,1),15,1);
VE:=REF(L,1)*0.9;
VF:=L*0.9;
V10:=(VF*V+VE*(CAPITAL-V))/CAPITAL;
V11:=EMA(V10,30);
V12:=V11-C;
V13:=REF(C,1);
V14:=SMA(MAX(C-V13,0),7,1)/SMA(ABS(C-V13),7,1)*100;
V15:=SMA(MAX(C-V13,0),13,1)/SMA(ABS(C-V13),13,1)*100;
V16:=BARSCOUNT(C);
V17:=SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100;
V18:=((-100)*(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))+50)*2;
V19:=(C-LLV(L,15))/(HHV(H,15)-LLV(L,15))*100;
V1A:=(SMA(V19,4,1)-50)*2;
V1B:=SMA(V1A,3,1);
V1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
V1D:=SMA(V1C,4,1);
V1E:=SMA(V1D,3,1);
V1F:=(HHV(H,30)-C)/C*100;
V20:=IF(V17<=25 AND V18<-95 AND V1F>20 AND V1B<-30 AND V1E<30
AND V12>=-0.25 AND V14<22 AND V15<28 AND V16>50,80,0);
顶线:=IF(VB<90,VB,100);
抄底:=V20;
T6:=抄底>50 AND 顶线<90;
趋势: V3*HAN;
多方:= IF(V1>20,V1,0),LINESTICK;
空方:= -IF(V1<0,V2,0),LINESTICK;
预警系统:= (IF((V7>=200 AND V6>=150) OR crOSS(65,多方),15,IF(V7<=-200 AND V6<=-150,-15,V9))+65);
T1:=C>MA(C,20) AND MA(C,20)>=REF(MA(C,20),1);
T4:=多方>48 AND 预警系统>65 AND 顶线<100;
T8:=V3<=REF(V4,1) AND C AND 空方>=REF(空方,1) AND VC;
波:STICKLINE(V3<=REF(V4,1),V3,V4,8,0)*HAN,COLORGREEN;
江:STICKLINE(V3>REF(V4,1),V3,V4,8,0)*HAN,COLORRED;
STICKLINE(趋势>106,V3,V4,6,0)*HAN,COLOR00FFFF;
买入线:4,COLORRED,LINETHICK2 ;
高压线:100,COLORBLUE,LINETHICK2;
警戒线:80,COLORYELLOW,LINETHICK2;
趋势线:= 3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
见底信号:= 3;
买入:= IF(CROSS(趋势线,见底信号),100,0);
趋势线1:= 3*SMA((CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100,5,1),3,1);
见底信号1:= 3;
买入1:= IF(CROSS(趋势线1,见底信号1),100,0);
趋势线2:= 3*SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,5,1),3,1);
见底信号2:= 3;
买入2:= IF(CROSS(趋势线2,见底信号2),50,0);
顶:=STICKLINE(买入 AND 买入1 AND 买入2 AND 趋势<10,25,80,8,0);
小:=IF(COUNT(( 趋势<0),5)=3, -25,0) ;
顶顶A:=STICKLINE(顶 OR 小,25,80,8,0);
顶部:=FILTER(顶顶A,25);
顶A:STICKLINE(顶部,40,80,8,0),COLORRED;
110;
VAR6:=COUNT(CLOSE>OPEN,20);
VARF:=REF(LOW,1)*0.9;
VAR10:=LOW*0.9;
VAR11:=(VAR10*vol+VARF*(CAPITAL-VOL))/CAPITAL;
VAR12:=EMA(VAR11,30);
VAR13:=CLOSE-REF(CLOSE,1);
VAR14:=MAX(VAR13,0);
VAR15:=ABS(VAR13);
VAR16:=SMA(VAR14,7,1)/SMA(VAR15,7,1)*100;
VAR17:=SMA(VAR14,13,1)/SMA(VAR15,13,1)*100;
VAR18:=BARSCOUNT(CLOSE);
VAR19:=SMA(MAX(VAR13,0),6,1)/SMA(ABS(VAR13),6,1)*100;
VAR1A:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;
VAR1B:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
VAR1C:=SMA((SMA(VAR1B,4,1)-50)*2,3,1);
VAR1D:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
VAR1E:=SMA(VAR1D,4,1);
VAR1F:=SMA(VAR1E,3,1);
VAR20:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
VAR21:=VAR19<=25 AND VAR1A<-95 AND VAR20>20 AND VAR1C<-30 AND VAR1F<30 AND VAR12-CLOSE>=-0.25 AND VAR16<22 AND VAR17<28 AND VAR18>50;
STICKLINE(VAR21,-5,35,3,0)*HAN,COLORLICYAN;
110;
在:DRAWTEXT(REF(CLOSE,2)/REF(OPEN,2)<0.95 AND
REF(C,2)<REF(C,3) AND REF(OPEN,1)<REF(CLOSE,2) AND
REF(CLOSE,1)>REF(CLOSE,2) AND
REF(CLOSE,1)>(REF(CLOSE,2)+REF(OPEN,2))/2 AND
CLOSE>REF(CLOSE,1) AND
LLV(LOW,13)=REF(LOW,1),45,' 关注出现'),COLORRED;
VAR1V:=CLOSE>REF(CLOSE,1);
VAR2V:=VOL<MA(VOL,5);
VAR3V:=VOL<REF(VOL,1);
VAR4V:=(CLOSE-OPEN)/REF(CLOSE,1)>0.09;
VAR5V:=COUNT(SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100<20,20)>=1;
VAR6V:=VAR1V AND VAR2V AND VAR3V AND VAR4V AND VAR5V;
VAR1Q:=(CLOSE-REF(CLOSE,24))/REF(CLOSE,24)*100;
ASDQ:=CROSS(VAR1Q,MA(VAR1Q,12)) AND OPEN<CLOSE AND OPEN/REF(CLOSE,1)<=0.97 AND CLOSE/OPEN>=1.05 AND VAR1<-25;
VAR1AN:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;
VAR2AN:=SMA(VAR1AN,5,1);
VAR3AN:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
VAR4AN:=SMA(VAR3AN,2,1);
VAR5AN:=MA(VOL/CAPITAL,30)*MA(VOL,60)/10000+MA(CLOSE,30)*8;
VAR6AN:=MA(VOL/CAPITAL,30)*MA(VOL,60)/10000+MA(CLOSE,30);
ASDAN:REF(CLOSE,2)/REF(OPEN,2)<0.98 AND REF(OPEN,1)<REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.04 AND CLOSE/OPEN>1.06 AND CLOSE>REF(CLOSE,2) OR VAR2>80 AND CAPITAL<=1500000 AND BARSCOUNT(CLOSE)>120 AND VOL/CAPITAL>0.04 AND VOL>REF(HHV(VOL,10),1)*2;
DRAWTEXT(ASDAN,45,' 牛初追涨'),COLORRED;
STICKLINE(ASDAN OR ASDQ OR VAR6V OR 在,30,60,3.5,0),COLOR0077FF;
STICKLINE(ASDAN OR ASDQ OR VAR6V OR 在,30,60,2,5),COLOR0099FF;
STICKLINE(ASDAN OR ASDQ OR VAR6V OR 在,30,60,1.2,0),COLOR00BBFF;
STICKLINE(ASDAN OR ASDQ OR VAR6V OR 在,30,60,0,0),COLOR00FFFF;
REF(CLOSE,2)/REF(OPEN,2)<0.95 AND
REF(C,2)<REF(C,3) AND REF(OPEN,1)<REF(CLOSE,2) AND
REF(CLOSE,1)>REF(CLOSE,2) AND
REF(CLOSE,1)>(REF(CLOSE,2)+REF(OPEN,2))/2 AND
CLOSE>REF(CLOSE,1) AND
LLV(LOW,13)=REF(LOW,1);