金叉死叉交易效果分析
指标名称:金叉死叉交易效果分析MA(C,5),DOTLINE;
MA(C,10),DOTLINE;
买入条件:=CROSS(MA(C,5),MA(C,10));
DRAWTEXT(买入条件,H*1.02,'买'),COLORRED;
价格1:=IF(买入条件,C,DRAWNULL);
DRAWNUMBER(买入条件,H*1.06,价格1),COLORRED;
卖出条件:=CROSS(MA(C,10),MA(C,5));
DRAWTEXT(卖出条件,L*0.96,'卖'),COLORGREEN;
价格2:=IF(卖出条件,C,DRAWNULL);
DRAWNUMBER(卖出条件,L*0.95,价格2),COLORGREEN;
DRAWLINE(买入条件,C,卖出条件,REF(C,BARSLAST(买入条件)),0),COLORYELLOW,POINTDOT,LINETHICK4;
DRAWNUMBER(卖出条件,L*0.93,(C/REF(C,BARSLAST(买入条件))-1)*100),COLORYELLOW;
DRAWNUMBER(卖出条件,REF(C,BARSLAST(买入条件)),BARSLAST(买入条件)),COLORWHITE;
**** Hidden Message *****
页:
[1]