[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] max drawn in indicator



PureBytes Links

Trading Reference Links

continuing an earlier thread, I'm showing equity in an indicator, according
to buy/sell signals it displays. I'd like to show maximum % drawdown in the
title.

does this look right?
---------
e = Equity(1, 0);
max_e = Highest(e);
MDD = Highest((max_e - e) / max_e) * 100;
---------

it's very close to what I get from the report when I backtest using the same
buy/sell rules, but not always exact in very early bars. quite usably close
actually, but the difference makes me question my thinking.

any ideas?

thanks,

Dave Merrill


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Special Sale: 50% off ReplayTV
Easily record your favorite shows!
CNet Ranked #1 over Tivo!
http://us.click.yahoo.com/WUMW7B/85qGAA/ySSFAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/