量价:=(VOL/CLOSE)/3;
B2:=SUM((IF(((量价>0.20) AND (CLOSE>(REF(CLOSE,1)))),量价,0)),0);
B3:=SUM((IF(((量价>0.20) AND (CLOSE<(REF(CLOSE,1)))),量价,0)),0);
B6:=B2+B3;DD1:=1;比:=B2/B3;
BBB1:=STRCAT(STRCAT('买= ',CON2STR((100*B2)/B6,0)),'%');
BBB2:=STRCAT(STRCAT('卖= ',CON2STR((100*B3)/B6,0)),'%');
BBB3:=STRCAT(STRCAT(' B ',CON2STR((100*(B2-B3))/B6,0)),'');
{DRAWTEXT_FIX(DD1=1,0,0.50,0,BBB1),COLORRED;
DRAWTEXT_FIX(DD1=1,0,0.60,0,BBB2),COLORGREEN;}
{DRAWTEXT_FIX(DD1=1,0,0.35,0,BBB3),COLOR00FFFF;}
DRAWTEXT_FIX(01,0.48,0.48.0,0,BBB3),COLOR00FFFF;
量价突破1:=(EMA(C,5)-EMA(C,13))/EMA(C,13)*100;
量价突破2:=(EMA(C,5)-EMA(C,120))/EMA(C,13)*100;
龙年牛妖1:=3*SMA((C-LLV(L,75))/(HHV(H,75)-LLV(L,75))*100,20,1);
龙年牛妖2:=2*SMA(SMA((C-LLV(L,75))/(HHV(H,75)-LLV(L,75))*100,20,1),15,1);
龙年牛妖3:=龙年牛妖1-龙年牛妖2;
龙年牛妖4:=100-龙年牛妖3;
龙年牛妖5:=(0-(EMA(龙年牛妖4,1)-50))+50;龙年牛妖6:=(0-(EMA(龙年牛妖4,12)-50))+50;
量价突破3:=V/CAPITAL*(C+O+L+H)/4;量价突破4:=(H-MAX(C,O))-(MIN(C,O)-L)+(C-REF(C,1));
量价突破5:=IF(量价突破4>0,量价突破3,0-量价突破3);
量价突破6:=H-MAX(C,O)-(MIN(C,O)-L);
量价突破7:=(量价突破5+量价突破6)/2+C-REF(C,1);
量价突破10:=SUM(量价突破7,0)+100;
量价突破11:=EMA(量价突破10,5)+100;
量价突破12:=EMA(量价突破10,13)+100;
量价突破15:=EMA(量价突破10,120)+100;
量价突破16:=(量价突破11-量价突破12)/EMA(C,13)*100;
量价突破19:=(量价突破11-量价突破15)/EMA(C,13)*100;
量价突破8:=(量价突破19-量价突破16);AAB1:=3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1);
AAB2:=2*SMA(SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1),3,1);
AAB3:=(AAB1-AAB2-50)*1.032+50;AAB4:=(2*C+H+L+O)/5;
AAB5:=EMA((AAB4-LLV(L,34))/(HHV(H,34)-LLV(L,34))*100,13);
价启动:=量价突破2-量价突破1+量价突破8+龙年牛妖5-龙年牛妖6,COLORYELLOW;
量先行:=(AAB3-AAB5)/2+价启动,COLORGREEN;
量价启动:CROSS(量先行,价启动) AND 量先行<40, VOLSTICK,LINETHICK2;DRAWICON(量价启动,1,9);
日:=120; 昨前:=3;
高1:=REF(HHV(H,日),昨前);
低1:=REF(LLV(L,日),昨前);
H1:=高1-(高1-低1)*0.191;
H2:=高1-(高1-低1)*0.382;
H3:=高1-(高1-低1)*0.5;
H4:=高1-(高1-低1)*0.618;
H5:=高1-(高1-低1)*0.809;
LOW1:REFDATE(低1,DATE),COLORGREEN,LINETHICK3;
金牛:=(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25),DOTLINE,COLORYELLOW;
金钻趋势:XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1,LINETHICK2,COLORRED;
金牛2:=EMA(金钻趋势,25)COLORCYAN,LINETHICK2;
DRAWBAND(金钻趋势,RGB(55,0,0),金牛2,RGB(0,91,0));
DRAWKLINE(H,O,L,C);
STICKLINE(金钻趋势>LOW AND TIME<=0935 AND 金钻趋势<HIGH,金钻趋势,MIN(MIN(OPEN,CLOSE),金钻趋势*9),1000,0),COLORMAGENTA;
STICKLINE(金钻趋势>MIN(C,O) AND 金钻趋势<MAX(C,O),金钻趋势,MIN(OPEN,CLOSE),2,0),COLORYELLOW;
STICKLINE(金钻趋势>HIGH,OPEN,CLOSE,2,0),COLORYELLOW;
STICKLINE(金钻趋势>HIGH,HIGH,LOW,2,0),COLORYELLOW;
VAR23:=100*XMA(XMA((C-REF(C,1)),6),6)/XMA(XMA(ABS((C-REF(C,1))),6),6);
回调买:=LLV(VAR23,2)=LLV(VAR23,7) AND COUNT(VAR23<0,2) AND CROSS(VAR23,MA(VAR23,2));
XG:=金钻趋势>HIGH AND 回调买 AND L<=金钻趋势;
DRAWTEXT(XG,L,'▲买入'),COLORRED;
{}
PP:=CROSS(C,MA(C,4));
EE:=STICKLINE(PP AND MA(C,20)>=REF(MA(C,20),1) AND
C>O,H,L,1,0),COLORFF00FF,LINETHICK2;{20日均线走强买点};
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
AA:=MACD>REF(MACD,1) AND REF(MACD,1)<REF(MACD,2) AND REF(MACD,2)<REF(MACD,3)AND
MACD>0;
CT:=MACD>REF(MACD,1) AND REF(MACD,1)>REF(MACD,2) AND REF(MACD,2)<REF(MACD,3) AND REF
(MACD,3)<REF(MACD,4)AND MACD>0;
PPO:=MA(C,4)>MA(C,24) AND PP AND MA(C,24)>=REF(MA(C,24),1) ;
VIP:=AA AND PPO OR CT AND PPO;
DRAWICON(VIP=1 AND TIME<=0935,LOW*1.01 ,9),COLORRED;