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

[amibroker] Re: Is Custom Backtester "reentrant" safe?



PureBytes Links

Trading Reference Links

bump - still found no resolution on this...

--- In amibroker@xxxxxxxxxxxxxxx, "tiedemj" <home@xxx> wrote:
>
> Hello - trying to stop trading activity when portfolio equity is 
> below maxEquity by some pct, and resume trading when "equity" rises 
> above previous maxEquity (where "equity" is as if trading had not 
> been suspended)
> 
> Using custom backttest as follows:
> 
> // first run to collect when to stop/resume trading
> bo.PreProcess(); 
> for( bar = 0; bar < BarCount; bar++ ) 
> {
> bo.ProcessTradeSignals(bar); 
> ...some algorithm collecting when to stop/start trading
> }
> bo.PostProcess(); 
> 
> // second run to do the actual trading with equity based 
stops/resumes
> bo.PreProcess(); 
> for( bar = 0; bar < BarCount; bar++ ) 
> {
> ...algorithm to scaleout/in of trades according to previous 
collected 
> info
> bo.ProcessTradeSignals(bar); 
> }
> bo.PostProcess(); 
> 
> However, on the second call to bo.ProcessTradeSignals(bar) above, I 
> get "COM method/function failed: Internal application error". Can I 
> use custom backtest in this "reentrant" way? - or is there anothor 
> way to stop/resume trading based on portfolio equity (of the 
> underlying trading algorithm)...?
> 
> best regards
> Jens Tiedemann
>



------------------------------------

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

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

For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

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