{G操盘风控线}
MID:=(3*CLOSE+L+H)/5;
操盘轨迹:WMA(MID,20),LINETHICK1;
N:=20;
T:=10;
M1:=MA(C,N);
HPB:=REF(HHV(H,N),1);
LPB:=REF(LLV(L,T),1);
BUYIN:=H HPB AND C
BUYEXIT:=L
SINGAL:=IFF(BUYIN,1,IFF(BUYEXIT,-1,0));
CURRSIGN:=REF(SINGAL,BARSLAST(SINGAL));
UPTREND:=CURRSIGN==1;
DWTREND:=CURRSIGN==-1;
多头通道:IFF(UPTREND,操盘轨迹,DRAWNULL),COLORRED,LINETHICK1;
空头通道:IFF(DWTREND,操盘轨迹,DRAWNULL),COLORGREEN,LINETHICK1;
空头止盈位:IFF(DWTREND,HPB,DRAWNULL),COLORGREEN,LINETHICK2;
多头止盈位:IFF(UPTREND,LPB,DRAWNULL),COLORRED,LINETHICK2;
趋势持续周期:IFF(DWTREND,BARSLAST(UPTREND),BARSLAST(DWTREND)),NODRAW,COLORFFFFFF;
DRAWICON(BARSLAST(DWTREND)==1,LOW,1);{www.9m8.cn 九毛八公式指标网}
DRAWICON(BARSLAST(UPTREND)==1,空头止盈位,2);
美洲盘:IFF(TIME 210000,TIME,DRAWNULL),NODRAW,COLORRED;
欧洲盘:IFF(TIME 153000 AND TIME 235900,TIME,DRAWNULL),NODRAW,COLORFFFF00;
亚洲盘:IFF(TIME 060000 AND TIME 150000,TIME,DRAWNULL),NODRAW,COLORYELLOW;