唐奇安通道
2014-11-24 14:42:47点击:
{唐奇安通道}
{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:=IF(BUYIN,1,IF(BUYEXIT,-1,0));
CURRSIGN:=REF(SINGAL,BARSLAST(SINGAL));
UPTREND:=CURRSIGN= 1;
DWTREND:=CURRSIGN=-1;
{跟踪止损}
空平:IF(DWTREND,HPB,DRAWNULL),COLORBLUE,LINETHICK2;
多止:IF(UPTREND,LPB,DRAWNULL),COLORRED,LINETHICK2;
信号持续:IF(DWTREND,BARSLAST(UPTREND),BARSLAST(DWTREND)),NODRAW,COLORMAGENTA;
DRAWICON(BARSLAST(DWTREND)=1,多止,7);
DRAWICON(BARSLAST(UPTREND)=1,空平,8);
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
{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:=IF(BUYIN,1,IF(BUYEXIT,-1,0));
CURRSIGN:=REF(SINGAL,BARSLAST(SINGAL));
UPTREND:=CURRSIGN= 1;
DWTREND:=CURRSIGN=-1;
{跟踪止损}
空平:IF(DWTREND,HPB,DRAWNULL),COLORBLUE,LINETHICK2;
多止:IF(UPTREND,LPB,DRAWNULL),COLORRED,LINETHICK2;
信号持续:IF(DWTREND,BARSLAST(UPTREND),BARSLAST(DWTREND)),NODRAW,COLORMAGENTA;
DRAWICON(BARSLAST(DWTREND)=1,多止,7);
DRAWICON(BARSLAST(UPTREND)=1,空平,8);
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
- 上一篇:极品布林线持币持股、线主图(有图} 2014/11/24
- 下一篇:买在启动点 2014/11/24