九毛八公式指标
公式模块:
麻烦帮我改成选股指标
思路是:前10天(不算当天)饱和度总和大余600的选股指标
用余选出近期量能放大的股票。求高手帮帮忙帮我改下吧。。
INPUT:N(20,1,100);
SAT:=(AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N));
饱和度:IF(SAT>1,1,SAT)*100,COLORYELLOW;
STICKLINE(C>0 AND BARSTATUS=2,5,100,10,1),COLORWHITE;
量能≤5:STICKLINE(饱和度<=5 AND BARSTATUS=2,5,饱和度+20,6,0),COLORRED;
量能5~80:STICKLINE((饱和度>5 AND 饱和度< 80) AND BARSTATUS=2,5,饱和度+8,6,0),COLOR5290FF;
量能80~97:STICKLINE((饱和度>80 AND 饱和度< 97) AND BARSTATUS=2,5,饱和度,6,0),COLORFFCC00;
量能≥97:STICKLINE(饱和度>=97 AND BARSTATUS=2,5,饱和度,8,0),COLORGREEN;
IF BARSTATUS=2 AND(饱和度) THEN BEGIN DRAWTEXTREL(798,800,'量能饱和度:'+NUMTOSTRN(饱和度,0)),COLORFFCCFF;END;
5,PRECIS0,POINTDOT,COLORFFEEBB; 97,PRECIS0,POINTDOT,COLORGREEN;
INPUT:N(20,1,100);
SAT:=(AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N))*100;
ref(sum(SAT,10),1)>600;