九毛八公式指标
请老师把唐奇安通道做成大智慧的,谢谢 {唐奇安通道} {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;