I'm implementing my own stops via the loop as described in the "Coding
your own custom stop types" section of this page:

http://www.amibroker.com/guide/h_backtest.html

I'd like to add a column to the backtest report for "Reason For Exit"
depending on which branch of my custom exit strategy was invoked. 
I've seen the examples in the help file for "Adding custom backtest
metrics".  The problem is that there is no way to determine what
happened in my custom stop loop using anything in the Trade object
from the backtester.

http://www.amibroker.com/guide/a_custombacktest.html

Is there some way I can store information from within my stop loop
that can be easily retrieved from within the loop in the backtest
section of code that loops through the closed trades so my custom
metric can be added?

Reply via email to