PureBytes Links
Trading Reference Links
|
Walter,
Another idea to explore is you might try running a separate backtest to
compare against a buy and hold portfolio based on a watchlist using the
following code. This will count the symbols of a watchlist and adapt the
position size to an equal weight. I have not verified the code but it
should get you started.
//Adapted from Count tickers in watchlist function by Anthony Faragasso
//Can be expanded for Multiple watchlist output
//Add watchlist here
WatchlistNumber0=69;//enter watchlist number
/*********************************************/
function CountTickersInWatchList( Listnum )
{
// retrive comma-separated list of symbols in watch list
list = GetCategorySymbols( categoryWatchlist, listnum );
for( i = 0; ( sym = StrExtract( list, i ) ) != ""; i++ )
{
if( i == 0 ) i = 0;
else i = i ;
}
return i;
}
Count=CountTickersInWatchList(WatchlistNumber0);
PositionSize=(-100/Count);
Filter=1;
Buy=1;
Sell=0;
Regards,
Duke Jones, CMT
Walter Lepore wrote:
>
> Hi Brian
>
> Very interesting. Thank you for the insight and further info on your
> files called "compare index to portfolio". I found the files and I am
> studying them.
>
> I've owned another back testing and trading platform for a couple of
> years but never found the time to learn their "easy language". One
> thing I've learned is that if support and/or some type of online
> community dries up then that pretty much spells the end for a new user.
>
> I'm finally learning to code using Amibroker and quite frankly enjoy
> the fact that the program resides on my computer and not online. No
> reason to pay $100./month for an online trading platform if all one
> accomplishes is consistent losses in the market.
>
> Thank You
> Walter
>
> --- In amibroker@xxxxxxxxxxxxxxx <mailto:amibroker%40yahoogroups.com>,
> "brian_z111" <brian_z111@xxx> wrote:
> >
> > --- In amibroker@xxxxxxxxxxxxxxx
> <mailto:amibroker%40yahoogroups.com>, "Walter Lepore"
> > <electricwally77@> wrote:
> > >
> > >
> > >
> > >
> > > Hi Brian
> > >
> > > Thank you. I'm studying your response as it may be a little over my
> > > head at this point.
> >
> > Don't worry - I use a lot of pictures in my 'help' files to help
> > facilitate learning (images are the language of the subconscious
> > mind). I also start at the beginning and walk through the process
> > step by step (the path you take after the beginning steps and how
> > fast you travel is up to you).
> >
> > The reason we are interested in buy&hold (b&h) is because we want to
> > know if our trading skills are producing better results than dumbluck
> > (anybody, without any specialist trading knowledge can b&h) i.e. we
> > want to benchmark our trading 'system' against a b&h strategy (in
> > real life, when you b&h you receive dividends so you need to account
> > for the dividends as well - some 'professional' indexes account for
> > dividends some don't - if you use dividend adjusted data then a
> > straight b&h calculation is an approximate surrogate for dividend
> > inclusion).
> >
> > So, if I remember correctly, the files at this board are intended to
> > expose the reader to the concepts of b&h and show one easy way that
> > it can be done and plotted in AB.
> >
> > Once you understand the concept (and agree with it or conversely
> > disagree and want to do it another way) then you can move on to more
> > advanced methods to construct b&h plots, or values, etc and also
> > consider other ways to benchmark.
> >
> > I have pointed to some more advanced ideas because:
> >
> > 1) the mind is more powerful than you think and works in amazing ways.
> >
> > 2) when you are exposed to new ideas they seep into your subconscious
> > mind, become fertile and later on come back out as productive insight
> > (that's when you say - that's what he was talking about).
> >
> > 3) the mind is like a jumps horse - it baulks at new and/or 'big'
> > hurdles - but if you walk it up to them a few times and let it see
> > what is coming up then it will settle down and be prepared to accept
> > the 'big' jump later.
> >
> > brian_z
> >
> >
> >
> >
> > I'm new to Amibroker and finally starting to find
> > > my way around the interface.
> > >
> > > I'll check out your files in the file section and see if I can
> > > experiment with them.
> > >
> > > Thank again
> > > Walter
> > >
> > > --- In amibroker@xxxxxxxxxxxxxxx
> <mailto:amibroker%40yahoogroups.com>, "brian_z111" <brian_z111@> wrote:
> > > >
> > > > --- In amibroker@xxxxxxxxxxxxxxx
> <mailto:amibroker%40yahoogroups.com>, "Walter Lepore"
> > <electricwally77@>
> > > > wrote:
> > > > >
> > > > > Hi Members
> > > > >
> > > > > Can anyone please tell me if the "Buy and Hold" results in the
> > Old
> > > > > Backtester (v4.4)will be made available in the "Individual
> > Backtest
> > > > > and Portfolio Backtest. It's nice If I can see all results in
> > one
> > > > report.
> > > > >
> > > > > Perhaps there is already a way I can view this but I'm still
> > llearning
> > > > > the interface.
> > > > >
> > > > > Thank you for your patience
> > > > >
> > > > > Walter
> > > > >
> > > >
> > > > Hello Walter,
> > > >
> > > > Perhaps not the definitive answer but to start some thinking
> > around the
> > > > subject - I did an example of how to simulate a buy and hold
> > using a
> > > > GUI method (via AA) - it is still in the file section, of this
> > > > messageboard, as COMPARE INDEX TO PORTFOLI0 by brian.z123 - sorry
> > it is
> > > > in parts due to the upoad limits of the file section (I should
> > edit it
> > > > and move it to the UKB one day) - the limit on the number of
> > stocks you
> > > > can hold in the simulation is the decimal places that 'Pozition
> > Size'
> > > > accepts - I haven't tried to push it to the limit as on my part
> > it was
> > > > only an exercise to demonstrate the principles of the 'buy &
> > hold'
> > > > equity curve as the freelance traders 'true benchmark' cf to
> > popular
> > > > indexes (like the Dow etc) - the answer is relative and doesn't
> > depend
> > > > on the capacity to actually 'buy' many stocks in real life.
> > > >
> > > > I didn't explore the other (less GUI) ways to go about 'buy and
> > hold'
> > > > in AB but the ATC function can easily calculate (and allow you to
> > plot)
> > > > customize buy and hold equivalents for large numbers of stocks in
> > a
> > > > watchlist etc.
> > > >
> > > > brian_z
> > > >
> > >
> >
>
>
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/
|