以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  这样写的最大回撤模型是否正确  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=57617)

--  作者:左岸
--  发布时间:2013/10/16 10:23:01
--  这样写的最大回撤模型是否正确

//最大回撤模型如下

 

当前资产:asset,noaxis,colorgray;
if barpos=1 then 
 begin
 MaxAsset:=当前资产;
 Maxhc:=0;
 end
if 当前资产>MaxAsset then MaxAsset:=当前资产;
if MaxAsset-当前资产>Maxhc then Maxhc:=MaxAsset-当前资产;
最大回撤:Maxhc,linethick0,COLORRED;

 

如上一段最大回撤模型,是论坛上某人编写的,请问这样的模型是否正确?

 


--  作者:jinzhe
--  发布时间:2013/10/16 10:29:50
--  

http://www.weistock.com/bbs/dispbbs.asp?boardid=10&Id=9439

 阿火秘笈第五个

[此贴子已经被作者于2013/10/16 10:30:06编辑过]