以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  [原创]日内均线  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=7122)

--  作者:z7c9
--  发布时间:2011/7/6 16:18:37
--  [原创]日内均线

 

runmode:0;

variable:baramount=0;
variable:barvol=0;

if barpos<=1 then exit;

if date<>date[barpos-1] then begin
 baramount:=amount;
 barvol:=vol;
end else begin
 baramount:=baramount[barpos-1]+amount;
 barvol:=barvol[barpos-1]+vol;
end

averageprice:=baramount/barvol/multiplier;
均价线:round(averageprice/mindiff)*mindiff,linethick2,coloryellow;

 

图片点击可在新窗口打开查看

 


--  作者:wzywzy292
--  发布时间:2011/7/6 21:01:02
--  
 好