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

Re: [amibroker] What's wrong with my formula (trouble with custombacktest)



PureBytes Links

Trading Reference Links

Hi Graham,

Wouldn't it be implicit to AB that if I set a maximum of 5 trades (SetOption("MaxOpenPositions", 5 );)  each would be about 20%?

Anyway I added SetPositionSize( 20, spsPercentOfEquity );  and it works well...  But I thought this was custom backtest;  I still have a lot to learn I guess!

Thanks for your patience!

Louis


2008/3/22, Graham <kavemanperth@xxxxxxxxx>:

Now we can answer what your real problem is.
You need to specify a Positionsize, if not defined then AB assumes 100% of equity is used per trade, thus only one trade at one time


--
Cheers
Graham Kav
AFL Writing Service
http://www.aflwriting.com


On 23/03/2008, Louis Préfontaine <rockprog80@xxxxxxxxx> wrote:
Well, sorry for posting "code that has no relevance at all"  (still, in the manual it looks like setoption has a relevance to customizing backtesting...), but I just can't see what is the problem.  

If I use auto-analysis and try to backtest my list of tickers, it won't do more than one trade at a time EVEN IF I click on "settings" and change the max number of positions to 10.   The only way I could have more than one position at any time is to use custom variables.  Maybe I have no clue about what it is, but that's why I am asking, dingo.


Louis



__._,_.___

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




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___