文章预览
视频代码如下 : ZIG(C,20); A:=PEAK(C,20,1); DRAWSL(A>0,A,0,延伸,0); DRAWTEXT_FIX(CURRBARSCOUNT=1,0.85,0.1,0,'顶部价格') DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.9,0.1,0,A); B:=TROUGH(C,20,1); DRAWSL(B>0,B,0,延伸,0); DRAWTEXT_FIX(CURRBARSCOUNT=1,0.85,0.9,0,'底部价格'); DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.9,0.9,0,B); 更多基础选股指标公式,点击关注下方公众号: 通达信指标编写基础知识 常用函数 1、Cross用法: 交叉 示例: AA:=MA(C,5); {五日均线} BB:=MA(C,10); {10日均线} Cross(AA,BB); {金叉} Cross(BB,AA); {死叉} 2、REF用法:Ref(A,B) 取得B周期前的A值 示例: AA:Ref(H, 1); 返回昨天最高价 BB:Ref(C, 2); Ref(ma(C,10), 1); 涨停板:C/REF (C, 1)>=1.1; 大阳线:C/REF(C, 1)>1.05; 3、HHV、LLV用法 HHV(A,B);取得B周期内A的最大值 LLV(A,B);取得B周期内A的最小值 示例: AA:=HHV(H,5); BB:=LLV(L,5); CC:=AA / BB> 1.3; DD:=H/REF(C,5)E>1.3; 4、BARSLAST用法 BARSLAST(A); A条件成立到今天的周
………………………………