[amibroker] Re: Custom Backtester: can I display equity()?

 

Thank you for your reply! I found your code and while i like the good example it isn't what I require. You are adding a value to your trade-list, I want to add a value (column) to the Backtest Summary.

What is very strange in my case is that the _Trace() that precedes the AddCustomMetric() statement prints out the correct value, it is just that the following AddCustomMetric() doesn't accept this value. If I substitute a number it lists nicely.

It almost seems like the Staticvariable is cleared, or Equity() is NULL, when the CustomBacktester runs.

Perhaps Equity() cannot be used when we use the CustomBacktester. If so, how can I calculate the Buy and Hold Equity/profits for display it in the backtester Summary?

Herman

__._,_.___

Posted by: psytek@bell.net
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (3)
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/


.

__,_._,___


EmoticonEmoticon