以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  请老师指教。。。谢谢  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=79522)

--  作者:jinzhe
--  发布时间:2015/6/9 8:55:01
--  

if h>=ref(h,1) then begin
 h1:h,colorcyan;
end
if h<ref(h,1) then begin
 h2:h,colorgreen;
end

if l>=ref(l,1) then begin
 l1:l,colorcyan;
end
if l<ref(l,1) then begin
 l2:l,colorgreen;
end
ee:(h+l)/2,colorred;

 

改了一下颜色,其他不变

逐k线计算