N:=5;趋势线:MA(CLOSE,13),COLORBLACK;{PARTLINE(MA(CLOSE,13),MA(CLOSE,13)<REF(MA(CLOSE,13),1),COLORGREEN,}
{MA(CLOSE,13)>=REF(MA(CLOSE,13),1),COLORRED),LINETHICK2;}IF(MA(CLOSE,13)<REF(MA(CLOSE,13),1),MA(CLOSE,13),DRAWNULL),COLORGREEN,LINETHICK2;
IF(MA(CLOSE,13)>=REF(MA(CLOSE,13),1),MA(CLOSE,13),DRAWNULL),COLORRED,LINETHICK2;买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,26)*15+C,45);BU:=CROSS(买线,卖线);SEL:=CROSS(卖线,买线);DRAWBMP(BU,L*0.999,'B');DRAWBMP(SEL,H*1.02,'S');STICKLINE(买线>=卖线,LOW,HIGH,0,1),COLORLIRED;STICKLINE(买线>=卖线,CLOSE,OPEN,8/3,1),COLORLIRED;JC:=(REF(C,3)+REF(C,5)+REF(C,7)+REF(C,8)+REF(C,13)+REF(C,21))/6;参考价:=SMA(JC,5,1),COLORCYAN;价:=IF(C>=参考价,参考价,参考价*0.98 ), CIRCLEDOT,COLOR0000FF;STICKLINE(买线<卖线,LOW,HIGH,0,1),COLORCYAN;STICKLINE(买线<卖线,CLOSE,OPEN,8/3,1),COLORCYAN;