手机端
当前位置:爱约股 > 公式技巧 > 把此主图指标(7日线上穿20天线)改成选股指标

把此主图指标(7日线上穿20天线)改成选股指标

要求:把主图中出现两个买字字样时分别做选股 MA7:MA(C,7),COLORYELLOW; MA20:MA(C,20),COLORGREEN; SMX:MA(C,60),COLORRED,LINETHICK2; STICKLINE(REF(BARSLASTCOUNT(C19 AND CROSS(C,SMX), C,O,1,0),COLORMAGENTA; DRAWTEXT(REF(BARSLASTCOUNT(C19 AND CROSS(C,SMX) AND CLOSE>OPEN, H*1.01,'买'),COLORMAGENTA; {在60天线下盘整20日以上之后上穿60天线} DRAWTEXT(FILTER(EXIST(CROSS(MA7,MA20),3) AND C>O,3) AND C>MA7,L*0.99, '买'),COLORRED; STICKLINE(FILTER(EXIST(CROSS(MA7,MA20),3) AND C>O,3) AND C>MA7,C,O,1,0) ,COLORYELLOW; {收盘上7天线,7日线上穿20天线,之后三天内出现的第一根阳线即为金叉阳线};

爱约股解答:

{两个买字}

MA7:=MA(C,7),COLORYELLOW;

MA20:=MA(C,20),COLORGREEN;

SMX:=MA(C,60),COLORRED;

XG1:=REF(BARSLASTCOUNT(C<MA(C,60)),1)>19 AND CROSS(C,SMX) AND CLOSE>OPEN;

XG2:=FILTER(EXIST(CROSS(MA7,MA20),3)  AND C>O,3) AND C>MA7;

TAG:
分享至:

相关推荐