以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://222.73.7.161/bbs/index.asp) -- 公式模型编写问题提交 (http://222.73.7.161/bbs/list.asp?boardid=4) ---- [推荐]一个均线类趋势指标 (http://222.73.7.161/bbs/dispbbs.asp?boardid=4&id=3016) |
-- 作者:admin -- 发布时间:2010/9/27 16:49:00 -- [推荐]一个均线类趋势指标 ma1:ma(close,5),colorwhite; ma2:ma(close,10),coloryellow; ma3:ma(close,20),colorffcc00; 年:=ma(close,26); var1:=(100 - ((90 * (hhv(high,21) - close)) / (hhv(high,21) - llv(low,21)))); var2:=(100 - ((90 * (hhv(high,21) - close)) / (hhv(high,21) - llv(low,21)))); var3:=(100 - ma(((100 * (hhv(high,5) - close)) / (hhv(high,5) - llv(low,5))),34)); stickline(c>年 and c>o,h,l,1,0),color00ffcc; stickline(c>年 and c>o,o,c,3,1),color00ffcc; stickline(c>年 and c<=o,h,l,1,0),color00ffcc; stickline(c>年 and c<=o ,o,c,3,0),color00ffcc; stickline(c<=年 and c>o,h,l,1,0),colorffcc00; stickline(c<=年 and c>o,o,c,3,1),colorffcc00; stickline(c<=年 and c<=o ,h,l,1,0),colorffcc00; stickline(c<=年 and c<=o,o,c,3,0),colorffcc00; stickline(cross(ma(var3,6),var1),l,h,1,0),color00ff33; stickline(cross(ma(var3,6),var1),min(o,c),max(o,c),3,1),color00ff33; stickline(cross(var2,ma(var3,6)),l,h,1,0),color3300cc; stickline(cross(var2,ma(var3,6)),min(o,c),max(o,c),3,1),color3300cc; |