{黑马起步主图源码如下}
G1:=CLOSE;
G2:=LOW;
G3:=OPEN;
G4:=HIGH;
GUP1:=EMA(G1,5),COLORWHITE;
GUP2:=EMA(GUP1,0),COLORWHITE;
持币双线:HHV(MA(G4,3),2),LINETHICK2,COLORGREEN;
持股单线:LLV(MA(G4,3),1),LINETHICK2,COLORRED;
GUP3:=FILTER(GUP2>REF(GUP2,1) AND 持币双线<REF(持币双线,1) AND C>REF(C,1),11);
IF(GUP3>=1,L*0.996,DRAWNULL),COLORMAGENTA,CIRCLEDOT;
DRAWTEXT(GUP3>=1,L,'黑马起步'),COLORYELLOW;
{黑马起步副图源码如下}
G1:=CLOSE;
G2:=LOW;
G3:=OPEN;
G4:=HIGH;
GUP1:=(G1-LLV(G2,75))/(HHV(G4,75)-LLV(G2,75))*100;
GUP2:=SMA(GUP1,20,1);
GUP3:=SMA(GUP2,15,1);
GUP4:=100-3*GUP2+2*GUP3;
GUP5:=IF(GUP4>REF(GUP4,1),GUP4,GUP4-5);
GUP6:=HHV(G4,25);
GUP7:=LLV(G2,25);
GUP8:=EMA((G1-GUP7)/(GUP6-GUP7)*100,5);
GUP9:=GUP4>GUP5 AND GUP8>=REF(GUP8,1);
GUP10:=GUP4>GUP5;
GUP11:=MAX(G1,EMA(G1, 13));
GUP12:=REF(C,1);
GUP13:=HHV(GUP12,2);
GUP14:=REF(GUP13,1);
GUP15:=LLV(GUP12,2);
GUP16:=REF(GUP15,1);
GUP17:=BARSLAST(C< GUP15 AND GUP12>=GUP16);
GUP18:=REF(GUP17,1);
GUP19:=BARSLAST(C>GUP13 AND GUP12<=GUP14);
GUP20:=REF(GUP19,1);
GUP21:=IF(GUP17-GUP19>0 AND GUP18<=GUP20,1,IF(GUP19-GUP17>0 AND GUP20<=GUP18,0,2));
GUP22:=MAX(G1, GUP11);
GUP23:=MIN(G1, GUP22);
GUP24:=GUP21=1;
GUP25:=GUP23>=REF(GUP23,1) AND GUP23=GUP22;
GUP26:=GUP23=GUP22;
持股:STICKLINE(GUP9 AND GUP25,0,2,10,0),COLORLIRED;
上涨:STICKLINE(GUP10 AND GUP26,0,1,10,0),COLORLIGREEN;
持币双线:=HHV(MA(G4,3),2),LINETHICK2,COLORGREEN;
持股单线:=LLV(MA(G4,3),1),LINETHICK2,COLORRED;
GUP33:=FILTER(GUP2>REF(GUP2,1) AND 持币双线<REF(持币双线,1) AND C>REF(C,1),11);
DRAWTEXT(GUP33>=1,1.5,'黑马起步'),COLORYELLOW;
DRAWICON(GUP33>=1,2,1);