UOS短期:(ACC1*6*12+ACC2*3*12+ACC3*3*6)*100/(3*6+3*12+6*12);
STICKLINE(C 0,35,35,10,0),COLOR00FF00;
STICKLINE(C 0,65,65,10,0),COLORFF00FF;
STICKLINE(C 0,70,70,10,0),COLORRED;
STICKLINE(C 0,50,50,10,0),COLORYELLOW
选股源码
TH:=MAX(HHV(HIGH,1),REF(CLOSE,1));
TL:=MIN(LLV(LOW,1),REF(CLOSE,1));
ACC1:=SUM(CLOSE-TL,3)/SUM(TH-TL,3);
ACC2:=SUM(CLOSE-TL,6)/SUM(TH-TL,6);
ACC3:=SUM(CLOSE-TL,12)/SUM(TH-TL,12);
UOS短期:=(ACC1*6*12+ACC2*3*12+ACC3*3*6)*100/(3*6+3*12+6*12);
选股:cross(UOS短期,35);