{白马亮蹄主图源码如下}
ABC1:=MA((2*CLOSE+HIGH+LOW)/4,5);
ABC2:=ABC1*102/100;
ABC3:=ABC1*(200-102)/100;
ABC4:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
ABC5:=DMA(CLOSE,ABC4);
ABC6:=(1+7/100)*ABC5;
ABC7:=(1-7/100)*ABC5;
ABC8:=14;
ABC9:=(HIGH+LOW+CLOSE)/3;
ABC10:=(ABC9-MA(ABC9,ABC8))/(0.015*AVEDEV(ABC9,ABC8));
ABC11:=REF(CLOSE,1)<=ABC7;
ABC12:=REF(CLOSE,2)<=ABC7;
ABC13:=REF(CLOSE,3)<=ABC7;
ABC14:=REF(CLOSE,1)<=REF(CLOSE,1);
ABC15:=REF(CLOSE,2)< REF(CLOSE,3);
ABC16:=REF(CLOSE,3)< REF(CLOSE,4);
ABC17:=REF(CLOSE,1)/REF(CLOSE,2)<=1.035;
ABC18:=REF(CLOSE,1)/REF(CLOSE,2)>(-1.095);
ABC19:=CLOSE/REF(CLOSE,1)>1.08;
ABC20:=OPEN>REF(CLOSE,1);
ABC21:=CLOSE/REF(CLOSE,1)>1.07;
ABC22:=CROSS(ABC10,(-90));
ABC23:=ABC10>(-68);
ABC24:=ABC10>=REF(ABC10,1);
ABC25:=REF(ABC10,1)< (-90);
ABC26:=CROSS(CLOSE,ABC7);
ABC27:=CLOSE/REF(CLOSE,1)>1.03;
ABC28:=EMA(CLOSE,9);
ABC29:=EMA(ABC28*1.13,5);
ABC30:=CLOSE>=OPEN;
ABC31:=EMA(ABC28*1.12,5);
ABC32:=EMA(ABC28*1.11,5);
ABC33:=CROSS(CLOSE,ABC32);
ABC34:=CROSS(CLOSE,ABC29);
ABC35:=CROSS(CLOSE,ABC31);
ABC36:=7;
ABC37:=35;
ABC38:=VOL;
ABC39:=MA(ABC38,5);
ABC40:=MA(ABC38,10);
ABC41:=ABC39>=ABC40;
ABC42:=ABC11 AND ABC22 AND ABC17 AND ABC21;
ABC43:=ABC11 AND ABC26 AND ABC17 AND ABC19;
ABC44:=ABC34 OR ABC35 OR ABC33 AND ABC30 AND ABC27;
MA5:MA(CLOSE,5),COLORFFFFFF, DOTLINE LINETHICK1;
AA:=VOL>REF(V,1)*1.9;
白马启动:=BARSLASTCOUNT(ABC42 OR ABC43 OR ABC44)=1 AND AA;
STICKLINE(白马启动,CLOSE,OPEN,4,0),COLORFF00FF;
DRAWTEXT(白马启动,LOW*0.99,'★启动'),COLORYELLOW;
{白马亮蹄副图源码如下}
AA:=LLV(LOW,34);
BB:=HHV(HIGH,30);
DD:=(EMA(((CLOSE-AA)/(BB-AA))*(4),4))*(25);
谷:=(((DD-LLV(DD,21))/(HHV(DD,21)-LLV(DD,21)))*(4))*(25);
BBA1:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
BBA2:=SMA(BBA1,3,1);
BBA3:=SMA(BBA2,3,1);
BBA4:=SMA(BBA3,3,1);
波:=BBA3,COLORWHITE;
段:=BBA4,COLORYELLOW;
BBA7:=CROSS(BBA4,BBA3) AND BBA3>80;
STICKLINE(FILTER(BBA7,5)=1,0,70,1,0),COLORBLUE;
DRAWTEXT(FILTER(BBA7,5)=1,50,' 卖'),LINETHICK1,COLORFFCC66;
趋势1:=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),DOTLINE,COLORGRAY;
BBA8:=CROSS(BBA2,BBA3) AND BBA3>80 AND BBA3>BBA4;
BBA9:=CROSS(趋势1,BBA2) AND 趋势1< 20 AND 趋势1< 段;
分批卖出:STICKLINE(BBA8,50,90,1,0),COLOR008360;
分批买入:STICKLINE(BBA9,40,0,1,0),COLOR000080;
NOTEXT1:90,COLORGRAY,DOTLINE;
NOTEXT:=0,COLORYELLOW ;
BBA01:=EMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5);
BBA02:=(HHV(HIGH,25)-LLV(LOW,25))/EMA((CLOSE-LLV(LOW,25)),5);
BBA03:=CROSS(BBA02,BBA01);
BBA04:=REF(BBA02,2)< REF(BBA02,1) AND BBA02< REF(BBA02,1);
BBA05:=COUNT(BBA03,7)>0 AND BBA04;
BBA06:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
BBA07:=SMA(ABS(LOW-BBA06),13,1)/SMA(MAX(LOW-BBA06,0),10,1);
BBA08:=EMA(BBA07,10);
BBA09:=EMA(C,5);
BBA10:=LLV(LOW,33);
BBA11:=EMA(IF(LOW<=BBA10,BBA09,0),3)*40;
BBA12:=IF(BBA11>100,BBA11*0.312,BBA11);
资金入场:BBA02,COLORRED;
CBA1:=REF(LOW,1);
CBA2:=SMA(ABS(LOW-CBA1),13,1)/SMA(MAX(LOW-CBA1,0),13,1)*4;
CBA3:=EMA(CBA2,13);
CBA4:=LLV(LOW,34);
CBA5:=EMA(IF(LOW<=CBA4,CBA3,0),3);
散户:STICKLINE(CBA5>REF(CBA5,1),0,CBA5,0.5,0),COLORGREEN;
RE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
ACA2:=(HIGH+LOW+CLOSE)/3;
ACA3:=(ACA2-MA(ACA2,14))/(0.015*AVEDEV(ACA2,14));
ACA4:=(ACA2-MA(ACA2,70))/(0.015*AVEDEV(ACA2,70));
ACA5:=IF(ACA3>=150 AND ACA3< 200 AND ACA4>=150 AND ACA4< 200,10,0);
ACA6:=IF(ACA3<=-150 AND ACA3>-200 AND ACA4<=-150 AND ACA4>-200,-10,ACA5);
NQ:=9;
MQ:=3;
RSVQ:=(CLOSE-LLV(LOW,NQ))/(HHV(HIGH,NQ)-LLV(LOW,NQ))*100;
KQ:=SMA(RSVQ,5,1);
DQ:=SMA(KQ,MQ,1);
JQ:=3*KQ-2*DQ;
CABBQ:=(RSVQ/2+22)*1;
CAB2A:=LLV(LOW,10);
CAB3A:=HHV(HIGH,25);
动力线:= EMA((CLOSE-CAB2A)/(CAB3A-CAB2A)*4,4);
趋势:MA(动力线,2)*30;
IF(趋势>REF(趋势,1),趋势,DRAWNULL),COLORRED;
IF(趋势< REF(趋势,1),趋势,DRAWNULL),COLORBLUE;
STICKLINE(趋势>REF(趋势,1) ,趋势 ,REF(趋势,1),1,0),COLORRED;
STICKLINE(趋势<=REF(趋势,1) ,趋势 ,REF(趋势,1),1,0),COLOR00FF00;
X:=MA(AMOUNT,5)/MA(V,5)/100;
CAB13A:=(X-MA(AMOUNT,125)/MA(V,125)/100)/X;
CAB14A:=MA((LLV(L,45)-C)/(HHV(H,45)-LLV(L,45))*100,3);
CAB15A:=C/MA(C,60)-1;
大底:=IF(CROSS(-5,CAB14A) AND CAB13A< -0.4,-0.01,-1);
中底:=IF(CROSS(-5,CAB14A) AND CAB13A< -0.25 AND CAB13A>-0.4,-0.3,-1);
小底:=IF(CROSS(-5,CAB14A) AND CAB13A< -0.15 AND CAB13A>-0.25,-0.6,-1);
减仓:=IF(CROSS(CAB14A,-95) AND CAB15A< 0.2 AND CAB15A>=0.1,0.6,1);
中顶:=IF(CROSS(CAB14A,-95) AND CAB15A< 0.35 AND CAB15A>=0.2,0.3,1),COLORYELLOW;
大顶:=IF(CROSS(CAB14A,-95) AND CAB15A>=0.35,0,1)COLORRED;
VABC2:=V>MA(V,89);
VABC3:=EXPMA(C,5);
VABC4:=EXPMA(C,29);
VABC5:=VABC3>VABC4;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),56,1)/SMA(ABS(CLOSE-LC),56,1)*100;
VABC6:=RSI1>RSI2 AND VABC5 AND VABC2;
ACC1:=HHV(H,30);
ACC2:=LLV(L,30);
ACC3:=REF((ACC1/ACC2-1)*100<=30,1);
ACB1:=ABS(((3.48*CLOSE+HIGH+LOW)/4-EMA(CLOSE,23))/EMA(CLOSE,23));
ACB2:=DMA(((2.15*CLOSE+LOW+HIGH)/4),ACB1);
游资:=EMA(ACB2,200)*1.1;
白马:CROSS(C,游资) AND REF(C*1.097,1)< C AND VABC6 AND ACC3;
IF(白马,35,0),COLORMAGENTA,LINETHICK3;
DRAWTEXT(白马,22,'白马'),COLORYELLOW;
C1:=((MA(C,30)-L)/MA(C,60))*200;
M2:=SMA(MAX(C-REF(C,1),0),7,1)/SMA(ABS(C-REF(C,1)),7,1)*100;
G1:=FILTER(REF(M2,1)< 20 AND M2>REF(M2,1),5);
TU:=C/MA(C,40)< 0.74;
SMMA:=EMA(EMA(C,5),5);
IM:=EMA(C,5)- REF(EMA(C,5),1);
TSMMA:=SMMA - REF(SMMA,1);
DIVMA:= ABS(EMA(C,5)- SMMA);
TDJ:=(H-L)/REF(C,1)>0.05;
ET:=(IM+TSMMA)/2;
TDF:= POW(DIVMA,1)*POW(ET,3);
NTDF:=TDF/HHV(ABS(TDF),5*3);
YUL:=COUNT(TDJ,5)>1;
启动:=TU AND TDJ AND YUL;
确定:=CROSS(NTDF,-0.9);
波段:=FILTER((G1 AND C1>20 OR C>REF(C,1)) AND REF(启动,1),10);
选股:=FILTER(REF(启动,1) AND (确定 OR C>REF(C,1)) AND MACD.MACD>-1.5,10);
底部确立:(COUNT(选股,13)>=1 AND 波段)*10,LINETHICK2;
DRAWTEXT(底部确立/10,7,'底部确立'),COLORRED;
A:=REF(C,4)>REF(C,3);
ABC1:=REF(C,3)>REF(C,2);
ABC2:=REF(C,2)>REF(C,1);
ABC3:=A AND ABC1 AND ABC2;
ABC5:=BARSLAST(C/REF(C,1)>1.065);
ABC6:=ABC5>6 AND C>REF(C,1)*1.03 ;
B:=EMA(MAX(C-REF(C,1),0),5)/EMA(ABS(C-REF(C,1)),5)*100;
B1:=EMA(MAX(C-REF(C,1),0),8)/EMA(ABS(C-REF(C,1)),8)*100;
B2:=REF(C,3)>REF(C,2) AND REF(C,2)>REF(C,1) AND REF(C,4)>REF(C,3);
B3:=CROSS(B,20) AND (CROSS(B,B1));
XGG:=ABC3 AND ABC6 AND B3 ;
D3:=C/REF(C,1)< MA(C,24);
D4:=CROSS(C,MA(C,24)) AND V/REF(MA(V,5),1)>1.016;
XG1:=D3 AND D4 AND RANGE(MA(C,24),L,C);
超牛:(XG1 AND XGG)*10;
DRAWTEXT(超牛/10,9,'牛股启动'),COLORWHITE;
MAH:=(H*18+REF(H,1)*17+REF(H,2)*16+REF(H,3)*15+REF(H,4)*14+REF(H,5)*13+REF(H,6)*12+REF(H,7)*11+REF(H,8)*10+REF(H,9)*9+REF(H,10)*8+REF(H,11)*7+REF(H,12)*6+REF(H,13)*5+REF(H,14)*4+REF(H,15)*3+REF(H,16)*2+REF(H,17)*1)/171;
MAL:=(L*18+REF(L,1)*17+REF(L,2)*16+REF(L,3)*15+REF(L,4)*14+REF(L,5)*13+REF(L,6)*12+REF(L,7)*11+REF(L,8)*10+REF(L,9)*9+REF(L,10)*8+REF(L,11)*7+REF(L,12)*6+REF(L,13)*5+REF(L,14)*4+REF(L,15)*3+REF(L,16)*2+REF(L,17)*1)/171;
FABC1:=ABS(((3.48*CLOSE+HIGH+LOW)/4-EMA(CLOSE,23))/EMA(CLOSE,23));
FABC2:=DMA(((2.15*CLOSE+LOW+HIGH)/4),FABC1);
白马王:=EMA(FABC2,200)*1.118;
白马王2:=EMA(FABC2,200)*1.118;
条件:=(C-REF(C,1))/REF(C,1)*100>8;
金K线:=CROSS(C,白马王) AND 条件;
白马亮蹄:金K线*11,LINETHICK2;
DRAWICON(金K线,5,11);