通达信G操盘风控线主图指标 源码 贴图
用法说明:
红色上涨趋势,绿色下降趋势
{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>M1;
BUYEXIT:=L<LPB;
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.GPXIAZAI.COM}
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;
- 上一篇公式:通达信量能雷达副图指标 源码 贴图
- 下一篇公式:通达信北狼绝谷决杀副图指标 北狼系列指标 源码 贴图