把(买入明日涨 )红色实体出现改为选股预警
2020/2/19 18:38:15
公式编写说明:
请老师把 指标 (买入明日涨)里红色实体出现 改为选股指标!!!源码:A:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19);B:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));D:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4);长期线:=A+100;短期线:=B+100;中期线:=D+100;见顶:=((REF(中期线,1)>85 AND REF(短期线,1)>85 AND REF(长期线,1)>65) AND CROSS(长期线,短期线));顶部区域:=(中期线=80) AND (REF(短期线,1)>95 OR REF(短期线,2)>95 ) AND 长期线>60 AND 短期线<83.5AND 短期线<中期线 AND 短期线<长期线+4;顶部:=FILTER(顶部区域,4);STICKLINE( {见顶 OR} 顶部,VOL,VOL*1.1,20,1 ),COLORBLUE,LINETHICK2;VAR6:=REF(CLOSE,1);VAR7:=SMA(MAX(CLOSE-VAR6,0),6,1)/SMA(ABS(CLOSE-VAR6),6,1)*100;STICKLINE( CROSS(84,VAR7),VOL,VOL*1.05,20,1 ),COLOR0099FF,LINETHICK2;均势一:=(((((((((CLOSE + REF(CLOSE,1)) + REF(CLOSE,2)) + REF(CLOSE,3)) + REF(CLOSE,4)) + REF(CLOSE,5)) + REF(CLOSE,6)) + REF(CLOSE,7)) + REF(CLOSE,8)) / 9);均势二:=((((CLOSE + REF(CLOSE,1)) + REF(CLOSE,2)) + REF(CLOSE,3)) / 4);趋势一:=((((均势一 - REF(均势一,1)) / REF(均势一,1)) * 1000) + 50);趋势二:=((((均势二 - REF(均势二,1)) / REF(均势二,1)) * 1000) + 50);波段高位:=(CROSS(趋势一,趋势二) AND (COUNT((CLOSE > REF(HIGH,1)),12) > 5));STICKLINE(波段高位,VOL,VOL*1.08,20,1 ),COLORGREEN,LINETHICK2;VVOL:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,-1,-1),COLOR00C0C0;VOLUME:VOL,VOLSTICK;MAVOL1:MA(VOLUME,5),LINETHICK2;MAVOL2:MA(VOLUME,35),LINETHICK2;MAVOL3:MA(VOLUME,135),LINETHICK2;T:=DYNAINFO(8)>0; VO:VOL=LLV(VOL,100) AND T;地量柱:T AND VO,COLORBLUE;STICKLINE(地量柱,0,V,1,0),COLORBLUE;DRAWTEXT(地量柱,VOL+3000,'地'),COLORBLUE;BLZ:=VOL>REF(V,1)*1.9;BLZ1:=VOL<REF(LLV(VOL,13),1);BLZ2:=VOL<REF(LLV(VOL,55),1);STICKLINE(BLZ,0,V,1,0),COLORYELLOW;倍量柱:BLZ,COLORYELLOW;DRAWTEXT(倍量柱,VOL+3000,'倍'),COLORYELLOW;HJZ:=(3*C+H+L+O)/6;HJZ2:=(8*HJZ+7*REF(HJZ,1)+6*REF(HJZ,2)+5*REF(HJZ,3)+4*REF(HJZ,4)+3*REF(HJZ,5)+2*REF(HJZ,6)+REF(HJZ,8))/36;HJZ3:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>HJZ2 AND C>O;黄金柱:FILTER(HJZ3,5),STICK,COLORRED,LINETHICK4;STICKLINE(黄金柱,0,V,1,0),COLORRED;DRAWTEXT(黄金柱,VOL+10000,'黄'),COLORRED;价涨量缩:CLOSE>REF(CLOSE,1) AND VOL<REF(VOL,1),COLORGREEN;FLZ:=V>REF(V,1)*0.98 AND V<REF(V,1)*1.02,LINETHICK0;STICKLINE(FLZ,0,V,1,0),COLORMAGENTA;DRAWTEXT(FLZ,VOL+3000,'平'),COLORMAGENTA;平量柱:FLZ,COLORMAGENTA;V1:=CLOSE/REF(CLOSE,3)>=1.1;V2:=BACKSET(V1,2);V3:=REF(CLOSE,3)*1.1;V4:=CROSS(C,V3);OK:STICKLINE((V2 AND COUNT(V2,2)=1),VOL,0,5,0),COLORRED;{【地量】}{VOL,VOLSTICK;}AA:=SUMBARS(VOL,CAPITAL);地量:IF(CAPITAL=0,AMOUNT=LLV(AMOUNT,34),VOL<MA(VOL,AA)/3) ,LINETHICK0;STICKLINE(地量,VOL,0,3,0),COLORYELLOW;EV:=VOL;VAR11:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));成交:=VOL,POINTDOT;买盘:IF(CLOSE>OPEN,VAR11*(HIGH-LOW),IF(CLOSE<OPEN,VAR11*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED,NODRAW;STICKLINE(地量>0,0,买盘,0.5,1),COLORRED,LINETHICK2;STICKLINE(V>=3*REF(V,1),V/3,V/3,3.9,0),COLORWHITE;STICKLINE(V>=2*REF(V,1),V/2,V/2,3.9,0),COLORYELLOW;流通〖亿〗:CAPITAL/1000000,LINETHICK0;内外比:DYNAINFO(51),COLORYELLOW,NODRAW;单日量比:V/REF(V,1),COLORWHITE,NODRAW;五日量比:V/(REF(MA(V,5),1)/240*FROMOPEN),COLORYELLOW,NODRAW;5换:SUM(100*V/CAPITAL,5),LINETHICK0;10换:SUM(100*V/CAPITAL,10),LINETHICK0;20换:SUM(100*V/CAPITAL,20),LINETHICK0;5日换:SUM(100*V/CAPITAL,5),NODRAW;VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主买:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED,NODRAW;主卖:IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2)),COLOR00FF00,NODRAW;
公式源码示例:
【有未来】
V1:=CLOSE/REF(CLOSE,3)>=1.1;
V2:=BACKSET(V1,2);
V2 AND
COUNT(V2,2)=1;
看股吧 公式 www.kanguba. com
其它股票公式列表