把唐奇安通道做成大智慧的
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个

编写要求:

请老师把唐奇安通道做成大智慧的,谢谢{唐奇安通道}{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

解答:

 {唐奇安通道}

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,0),COLORBLUE,LINETHICK0; 
多止:IF(UPTREND,LPB,0),COLORRED,LINETHICK0;
PARTLINE(HPB,DWTREND),COLORBLUE,LINETHICK2; 
PARTLINE(LPB,UPTREND),COLORRED,LINETHICK2;
DRAWTEXT(BARSLAST(DWTREND)=1,多止,'B'),COLORRED;
DRAWTEXT(BARSLAST(UPTREND)=1,空平*1.03,'S'),COLORGREEN;

选股票看什么指标最好 >股票指标网