欧欧 欧欧量化
2024年12月07日 08:08 广西
图片
一、方针讲明:
二、主图公式如下:
DRAWTEXT_FIX(1,0.005,0,0,'所属立场:'),COLORYELLOW;DRAWTEXT_FIX(1,0.06,0,0,FGBLOCK),COLORYELLOW;DRAWTEXT_FIX(1,0.005,0.05,0,'所属倡导:'),COLORMAGENTA;DRAWTEXT_FIX(1,0.06,0.05,0,GNBLOCK),COLORYELLOW;主力换手率:=O;游资换手率:=C;龙头冲破:=(3*C+H+L+O)/6;换手率寻龙1:=(8*龙头冲破+7*REF(龙头冲破,1)+6*REF(龙头冲破,2)+5*REF(龙头冲破,3)+4*REF(龙头冲破,4)+3*REF(龙头冲破,5)+2*REF(龙头冲破,6)+REF(龙头冲破,8))/36,COLORFF7700;换手率寻龙2:=(HHV(换手率寻龙1,5)+HHV(换手率寻龙1,10)+HHV(换手率寻龙1,20))/3;换手率寻龙3:=(LLV(换手率寻龙1,5)+LLV(换手率寻龙1,10)+LLV(换手率寻龙1,20))/3;换手率寻龙4:=(HHV(换手率寻龙2,5)+HHV(换手率寻龙2,10)+HHV(换手率寻龙2,20))/3;换手率寻龙5:=(LLV(换手率寻龙3,5)+LLV(换手率寻龙3,10)+LLV(换手率寻龙3,20))/3;换手率寻龙6:=(LLV(换手率寻龙1,2)+LLV(换手率寻龙1,4)+LLV(换手率寻龙1,6))/3;STICKLINE(游资换手率>主力换手率,游资换手率,主力换手率,3,0),COLOR000099;STICKLINE(游资换手率>主力换手率,游资换手率,主力换手率,2.2,0),COLOR0000CC;STICKLINE(游资换手率>主力换手率,游资换手率,主力换手率,1.5,0),COLOR0000FF;STICKLINE(游资换手率>主力换手率,游资换手率,主力换手率,0.5,0),COLORCC66FF;DRAWBAND(换手率寻龙1,RGB(155,50,50),换手率寻龙6,RGB(250,250,0));DRAWKLINE(HIGH,主力换手率,LOW,游资换手率);短线趋势线:换手率寻龙1,COLORWHITE;中线趋势线:换手率寻龙6,COLORYELLOW,LINETHICK3;下落:IF(换手率寻龙1=换手率寻龙6,换手率寻龙6,DRAWNULL),COLORFF5500,LINETHICK4;BIAS13:=MA((游资换手率-MA(游资换手率,13))/MA(游资换手率,13),3)*100,COLORFF5500,LINETHICK4;XG2:=DRAWICON(CROSS(BIAS13,REF(BIAS13,1)),BIAS13,1);DRAWTEXT(FILTER(XG2=1,5),LOW-0.03,'↖换手龙头'),COLORYELLOW;STICKLINE(XG2,O,C,2,0),COLOR00FFFF;NX:=MA(C,100);牛熊:NX,COLORFFFFFF,LINETHICK1;DRAWTEXT(ISLASTBAR,NX,' 牛熊')COLORFFFFFF;短趋势:EMA(EMA(EMA(EMA(EMA(游资换手率,60),2),2),2),2),LINETHICK1,COLORRED;DRAWTEXT(ISLASTBAR,短趋势,' 短期')COLORRED;均价:=(3*C+H+L+O)/6;换手率寻龙1A:=(8*均价+7*REF(均价,1)+6*REF(均价,2)+5*REF(均价,3)+4*REF(均价,4)+3*REF(均价,5)+2*REF(均价,6)+REF(均价,8))/36;换手率寻龙2A:=(LLV(换手率寻龙1A,2)+LLV(换手率寻龙1A,4)+LLV(换手率寻龙1A,6))/3;SZ1:=REF(换手率寻龙1A,1)=REF(换手率寻龙2A,1) AND 换手率寻龙1A>换手率寻龙2A AND 游资换手率>换手率寻龙1A;SZ2:=换手率寻龙1A>换手率寻龙2A AND 换手率寻龙1A>REF(换手率寻龙1A,1) AND 换手率寻龙2A>REF(换手率寻龙2A,1) AND H/换手率寻龙1A<1.1 AND L>换手率寻龙2A AND 游资换手率>换手率寻龙1A;SZ3:=换手率寻龙1A>换手率寻龙2A AND 换手率寻龙1A>REF(换手率寻龙1A,1) AND 换手率寻龙2A>=REF(换手率寻龙2A,1) AND H/换手率寻龙1A>1.1;SZ4:=换手率寻龙1A>换手率寻龙2A AND 换手率寻龙1A>REF(换手率寻龙1A,1) AND 换手率寻龙2A>REF(换手率寻龙2A,1) AND 游资换手率>换手率寻龙2A AND 游资换手率<换手率寻龙1A;SZ5:=(换手率寻龙1A>换手率寻龙2A AND 换手率寻龙2A>REF(换手率寻龙2A,1) AND 换手率寻龙1A<>REF(换手率寻龙1A,1) AND 游资换手率<换手率寻龙2A) OR (换手率寻龙1>换手率寻龙2A AND 换手率寻龙1A<REF(换手率寻龙1A,1) AND 换手率寻龙2A<REF(换手率寻龙2A,1) AND 游资换手率<换手率寻龙2A);SZ6:=REF(换手率寻龙1A,1)>REF(换手率寻龙2A,1) AND 换手率寻龙1A=换手率寻龙2A AND 游资换手率<换手率寻龙2A;XD1:=换手率寻龙1=换手率寻龙2A AND 游资换手率<换手率寻龙2A OR (换手率寻龙1A<REF(换手率寻龙1A,1) AND 换手率寻龙2A<REF(换手率寻龙2A,1) AND REF(换手率寻龙1A,1)=REF(换手率寻龙2A,1) AND 游资换手率<换手率寻龙2A);XD2:=换手率寻龙1=换手率寻龙2A AND 游资换手率>换手率寻龙1A;DRAWTEXT_FIX(C>O,0.01,0.9,0,'微信公众号:欧欧量化'),COLOR0000FF;DRAWTEXT_FIX(BARSTATUS=2 AND SZ1,0.65,0.05,0,''),COLORFF00FF;DRAWTEXT_FIX(BARSTATUS=2 AND SZ2,0.65,0.05,0,''),COLORRED;DRAWTEXT_FIX(BARSTATUS=2 AND SZ3,0.65,0.05,0,''),COLOR00FFFF;DRAWTEXT_FIX(BARSTATUS=2 AND SZ4,0.65,0.05,0,''),COLORFFFFFF;DRAWTEXT_FIX(BARSTATUS=2 AND SZ5,0.65,0.05,0,''),COLORFF9933;DRAWTEXT_FIX(BARSTATUS=2 AND SZ6,0.65,0.05,0,''),COLORFFFF00;DRAWTEXT_FIX(BARSTATUS=2 AND XD1,0.72,0.05,0,''),COLOR00FF00;DRAWTEXT_FIX(BARSTATUS=2 AND XD2,0.65,0.05,0,''),COLORYELLOW;LCC:=REF(游资换手率,1);RSIC:=SMA(MAX(游资换手率-LCC,0),6,1)/SMA(ABS(游资换手率-LCC),6,1)*100;DRAWTEXT(CROSS(84,RSIC) , HIGH*0.99,' '),COLORGREEN;{绝顶逃}日:=150;昨前:=3;高1:=REF(HHV(H,日),昨前);天顶:REFDATE(高1,DATE)NODRAW,COLORCYAN;顶:=REFDATE(高1,DATE);极顶:=REFDATE(顶,DATE);跑:=极顶=H AND ((C-L)<(O-C) OR (O-L)<(C-O));STICKLINE(跑,C,O,3,0),COLORGREEN;STICKLINE(跑,L,H,0.1,0),COLORGREEN;DRAWTEXT(跑,H*0.96,'---')COLORGREEN;{涨跌停}C3:=REF(C,1);涨停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),1,0);STICKLINE(涨停,主力换手率,游资换手率,2,0),COLORMAGENTA;跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0);STICKLINE(跌停,主力换手率,游资换手率,2,0),COLORWHITE;{顶底背离,无将来}TC1:=IF(H=HHV(H,48),H,DRAWNULL);TC2:=CONST(BARSLAST(TC1=H))+1;UPPER1:=CONST(IF(TC2=1,H,REF(H,TC2-1)));BC1:=IF(L=LLV(L,48),L,DRAWNULL);BC2:=CONST(BARSLAST(BC1=L))+1;LOWER1:=CONST(IF(BC2=1,L,REF(L,BC2-1)));LP:=CURRBARSCOUNT<=BC2 AND L=LOWER1;{低点定位}HP:=CURRBARSCOUNT<=TC2 AND H=UPPER1;{高点定位}DRAWTEXT(LP,L*1,'底背'),COLORYELLOW;{波段底笔墨提醒,黄色}DRAWTEXT(HP,H*0.98,' '),COLOR00FF00;{波段顶笔墨提醒,绿色};三、换手龙头选股:主力换手率:=O;
游资换手率:=C;
龙头冲破:=(3*C+H+L+O)/6;
换手率寻龙1:=(8*龙头冲破+7*REF(龙头冲破,1)+6*REF(龙头冲破,2)+5*REF(龙头冲破,3)+4*REF(龙头冲破,4)+3*REF(龙头冲破,5)+2*REF(龙头冲破,6)+REF(龙头冲破,8))/36,COLORFF7700;
换手率寻龙2:=(HHV(换手率寻龙1,5)+HHV(换手率寻龙1,10)+HHV(换手率寻龙1,20))/3;
换手率寻龙3:=(LLV(换手率寻龙1,5)+LLV(换手率寻龙1,10)+LLV(换手率寻龙1,20))/3;
换手率寻龙4:=(HHV(换手率寻龙2,5)+HHV(换手率寻龙2,10)+HHV(换手率寻龙2,20))/3;
换手率寻龙5:=(LLV(换手率寻龙3,5)+LLV(换手率寻龙3,10)+LLV(换手率寻龙3,20))/3;
换手率寻龙6:=(LLV(换手率寻龙1,2)+LLV(换手率寻龙1,4)+LLV(换手率寻龙1,6))/3;
BIAS13:=MA((游资换手率-MA(游资换手率,13))/MA(游资换手率,13),3)*100,COLORFF5500,LINETHICK4;
XG2:=DRAWICON(CROSS(BIAS13,REF(BIAS13,1)),BIAS13,1);
XG3:FILTER(XG2=1,5);
风险提醒:本方针公式仅算作常识共享,模拟测试不组成任何投资提议,不作投资依据。
图片
END图片
本站仅提供存储工作,悉数实质均由用户发布,如发现存害或侵权实质,请点击举报。