{金戈铁马选股源码如下}
HGW1:=MA(CLOSE,5);
HGW2:=ATAN((HGW1/REF(HGW1,1)-1)*100)*180/3.1416;
HGW3:=SMA(EMA((HGW1-REF(HGW1,1))/REF(HGW1,1),3)*100,3,1);
HGW4:=EMA((HGW3-REF(HGW3,1)),3);
HGW5:=MA(CLOSE,10);
HGW6:=ATAN((HGW5/REF(HGW5,1)-1)*100)*180/3.1416;
HGW7:=MA(CLOSE,30);
HGW8:=(CLOSE-HGW7)/HGW7*100;
HGW9:=ATAN((HGW7/REF(HGW7,1)-1)*100)*180/3.1416;
HGW10:=FILTER(HGW9>30 AND HGW6>45 AND CROSS(HGW2,60),10);
HGW11:=COUNT(CROSS(HGW2,30),5)>=1 AND HGW1>REF(HGW1,1);
HGW12:=HGW8>REF(HGW8,1) AND HGW5>REF(HGW5,1);
HGW13:=EMA(COST(81),10);
VAR18:=HGW4>REF(HGW4,1) AND HGW3>REF(HGW3,1);
VAR19:=FILTER(HGW11 AND HGW12 AND VAR18,10) AND CLOSE>HGW13;
XG:VAR19 AND HGW10;
{金戈铁马主图源码如下}
追涨:EMA(COST(81),10),COLORRED,LINETHICK2;
牛熊线:EMA(COST(27),120),COLORGREEN,LINETHICK2;
做空68:HHV((HIGH+LOW+OPEN+2*CLOSE)/5*2-LOW,5),COLORRED,DOTLINE;
平衡点:LLV((HIGH+LOW+OPEN+2*CLOSE)/5,3),COLORGRAY,DOTLINE;
HGW1:=MA(CLOSE,5);
HGW2:=ATAN((HGW1/REF(HGW1,1)-1)*100)*180/3.1416;
HGW3:=SMA(EMA((HGW1-REF(HGW1,1))/REF(HGW1,1),3)*100,3,1);
HGW4:=EMA((HGW3-REF(HGW3,1)),3);
HGW5:=MA(CLOSE,10);
HGW6:=ATAN((HGW5/REF(HGW5,1)-1)*100)*180/3.1416;
HGW7:=MA(CLOSE,30);
HGW8:=(CLOSE-HGW7)/HGW7*100;
HGW9:=ATAN((HGW7/REF(HGW7,1)-1)*100)*180/3.1416;
HGW10:=FILTER(HGW9>30 AND HGW6>45 AND CROSS(HGW2,60),10);
HGW11:=COUNT(CROSS(HGW2,30),5)>=1 AND HGW1>REF(HGW1,1);
HGW12:=HGW8>REF(HGW8,1) AND HGW5>REF(HGW5,1);
VAR18:=HGW4>REF(HGW4,1) AND HGW3>REF(HGW3,1);
VAR19:=FILTER(HGW11 AND HGW12 AND VAR18,10) AND CLOSE>追涨;
DRAWTEXT(VAR19,LOW*0.97,'←短金'),COLORRED;
DRAWTEXT(HGW10,LOW*0.95,'←黑马'),COLORYELLOW;