HVN5EM:=20;
N:=500;
0.6,COLORMAGENTA;
0.8,COLORLIMAGENTA;
0.999,LINETHICK4,COLORYELLOW;
HVN1:=L/HVN;
HVN5:EMA(HVN1,HVN5EM),COLORLIGRAY;
NNN:=N/1000;
STICKLINE(HVN5< HV2N5,0.8,0.99,1,1),COLORBLUE;
STICKLINE(HV2N5>0.6 AND HVN5< HV2N5,HV2N5,0.6,1,1),COLORBROWN;
STICKLINE(HV2N5>0.8 AND HVN5< HV2N5,HV2N5,0.8,1,1),COLORLIRED;
STICKLINE(HVN5< HV2N5 ,0.8,0.99,1,1),COLORBLUE;
HVN5EM:=20;
N:=500;
HVN1:=L/HVN;
HVN5:=EMA(HVN1,HVN5EM);
选股:HVN5< HV2N5 AND REF(HVN5,1)>=REF(HV2N5,1);