Tomasz:
 
Thanks for your clarification.
I have successfully simulated "using redundant signals for entries" by using low level rotational mode. I am able to duplicate the results of my WL system, though it is 10-20 times slower than normal backtesting since I need to use a big WorstRankHeld number to avoid losing exit signals . I am still looking forward to the new switch to disable "removing redundant signals" for portfolio backtesting to speed things up. Under current simulation speed, it is impossible to do any optimization.
 
A question regarding HandleStops().
I have a n-bar stop in my system. If I use HandleStops(bar), it delays one more day before exit compared to high level backtest results.
If I use HandleStops(bar-1), I can get the same exit dates as high level backtest.
For example,
 
SetTradeDelays( 1, 1, 1, 1 );
ApplyStop(stopTypeNBar, stopModeBars, 5 );
 
High level backtest: Entry: 4/18/2006 N-Bar Exit: 4/25/2006
Use HandleStops(bar): Entry: 4/18/2006 N-Bar Exit: 4/26/2006
Use HandleStops(bar-1): Entry: 4/18/2006 N-Bar Exit: 4/25/2006
 
Can you explain how HandleStops() works? What's the different between HandleStops(bar) and HandleStops(bar-1)?
 
Thanks,
 
- Mark
 
----- Original Message -----
Sent: Friday, July 28, 2006 3:01 AM
Subject: Re: [amibroker] Low level backtest for rotational mode

Hello,
 
1. Your understanding is correct.
 
2. AB keeps 2 * WorstRankHeld signals (note that WorstRankHeld is guaranteed to be greater or equal to MaxOpenPos).
 
3. There is no need to keep signals with scores LESS than 2 * WorstRankHeld as if they are not in the table it means exit anyway
so there is no need to keep any signal that has score of zero.
 
Simply, in your code you have to assume that if symbol is not in the signal array it means that it should be exited (and it does not really
matter if it is because of just low or zero score).
 
All exit signals are tracked only in REGULAR mode when such assumptions can not be made.

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: Mark H
Sent: Friday, July 28, 2006 8:07 AM
Subject: Re: [amibroker] Low level backtest for rotational mode

Tomasz:
 
Thanks.
All signals under rotational mode have type 0, and the script has to enter and exit trades based on PosScore. Is my understanding correct?
 
Another question:
How many of these signals are kept (to save memory etc)?
Based on the document:
(2*MaxOpenPositons) for signals with PosScore > 0;
(2*MaxOpenPositons) for signals with PosScore < 0;
Unlimited for signals with PosScore == 0; (since they are exit signals)
 
However, based on my own testing, not all signals with PosScore==0 are kept. The number kept seems to be related to "WorstRankHeld".
I have to keep the "WorstRankHeld" very big to avoid missing exit signals, but that greatly slow down the backtesting (from a few minutes to more than half an hour).
I use "WorstRankHeld"==5000 for a 5000 stock portfolio.
Please advice how to make it more efficient,
 
Thanks,
 
- Mark
 
----- Original Message -----
Sent: Thursday, July 27, 2006 5:24 PM
Subject: Re: [amibroker] Low level backtest for rotational mode

Hello,
 
Yes it does and there is special type of signal : rank signal,
it has Type = 0.
 
PositionScore > 0 means long
PositionScore < 0 means short
PositionScore == 0 means exit

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: Mark H
Sent: Thursday, July 27, 2006 10:53 PM
Subject: [amibroker] Low level backtest for rotational mode

Tomasz:
 
In the low level backtesting, does it support rotational mode? If so, what are in the signal array and what type are the signals (Entry?Exit?Long?Scale?))?
 
Thanks,
 
- Mark
 

__._,_.___

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 other support material please check also:
http://www.amibroker.com/support.html






SPONSORED LINKS
Investment management software Real estate investment software Investment property software
Software support Real estate investment analysis software


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to