//百战百胜主图
P1:=7;P2:=21;P3:=250;
MA1:EMA(CLOSE,P1),colorwhite,LINETHICK3;
MA2:EMA(CLOSE,P2),colorred,LINETHICK2;
MA3:EMA(CLOSE,P3),coloryellow;
工作线: EMA(CLOSE,P1),colorwhite,LINETHICK3;
神秘线: EMA(CLOSE,P2),colorred,LINETHICK3;
生命线: EMA(CLOSE,P3),coloryellow;
DRAWTEXT(CROSS(工作线,神秘线),工作线,'★建仓') ,coloryellow;
DRAWTEXT(CROSS(神秘线,工作线),神秘线,'★空仓') ,colorgreen;
LC:=REF(CLOSE,3);
JH:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
DRAWTEXT(FILTER(CROSS(JH,30),55),LOW*0.98,'↑关注'),coloryellow,LINETHICK1;
DRAWTEXT(FILTER(CROSS(84,JH),22),HIGH*1.02,'↓小心'),COLOR00FF00;