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

Re: [amibroker] OT HTML only posts



PureBytes Links

Trading Reference Links

Al, please turn off HTML.  Thanks.  You seem to be the only one with
that feature turned on.  Thanks for your understanding.

178 lines of code, when only 12 where needed for the message.

Posted in full below.  To all the other members, sorry for my OT post.

-= Chris ß =-
_________________________________________________________

On Wed, 05 Feb 2003 11:28:47 -0500, you wrote: 

> <html>
> 
> <div style='background-color:'><DIV>
> <P>Jerome,</P>
> <P>Let me give an example. Suppose I start out at day 0 with an initial equity of $100 K. I set my position size thusly:</P>
> <P>PositionSize = -1*BuyPrice/(2*ATR(15));</P>
> <P>If the buyprice is, say, $50 and the ATR is 1.5, then the above position size would be 1000*50/3 or $16,667. This is quite reasonable. Now, suppose my equity over 10 years has grown to $1,000,000. Assuming&nbsp;everything else is the same (ATR, Buyprice),&nbsp;then the position size would be $166,667. That's a pretty big stake for one trader trading one stock. I'm risking 1% of my current equity, but my current equity has grown 10-fold since I started backtesting. If I were trading a basket of 5 or 8 stocks, naturally that position size would be smaller because the equity has to be divided among the other issues being traded. As I already acknowledged, Amibroker does not manage position sizes right now on a basket of stocks; it only does so on one stock at a time. Yes, I know TJ is working on this, and I don't want to bug him about it again. I was just wondering what others do when performing&nbsp;backtests on a single stock to give trading positions that are more realistic,
> that's all. Perhaps one can't, or perhaps your idea of exporting the trade list to Excel and creating a VB&nbsp;algorithm would do it. I'm certainly not a whiz at VB. Hope this answers your question. </P>
> <P>Al Venosa<BR></P></DIV>
> <DIV></DIV>
> <DIV></DIV>
> <DIV></DIV>
> <DIV></DIV>&gt;From: Jerome ULRICH <SILVARIUS@xxxxxxx>
> <DIV></DIV>&gt;Reply-To: amibroker@xxxxxxxxxxxxxxx 
> <DIV></DIV>&gt;To: <AMIBROKER@xxxxxxxxxxxxxxx>
> <DIV></DIV>&gt;Subject: RE: [amibroker] Re: NDX / QQQ-Can itbe traded? !!!! 
> <DIV></DIV>&gt;Date: Wed, 5 Feb 2003 17:01:44 +0100 
> <DIV></DIV>&gt; 
> <DIV></DIV>&gt;Al, 
> <DIV></DIV>&gt; 
> <DIV></DIV>&gt;What do you mean by "when you base position sizing on current equity " ? Why 
> <DIV></DIV>&gt;is it unrealistic ? All depends on the position sizing algorythm. If you 
> <DIV></DIV>&gt;mean the way AmiBroker manages position sizing for a basket of stocks, then 
> <DIV></DIV>&gt;yes, it is unrealistic. But this problem is only due to AmiBroker limitation 
> <DIV></DIV>&gt;in this domain, and Tomasz is working to improve it. Meanwhile, if you want 
> <DIV></DIV>&gt;something realistic, you have to export the trades generated by AmiBroker in 
> <DIV></DIV>&gt;another program (Excel for example), then program an algorythm to select 
> <DIV></DIV>&gt;which trades are really taken, and in which order, and finally apply your 
> <DIV></DIV>&gt;position sizing algorythm. It sounds a bit complicated, but most people with 
> <DIV></DIV>&gt;a minimum of VBA knowledge should be able to tackle it. 
> <DIV></DIV>&gt; 
> <DIV></DIV>&gt;Best regards, Jerome ULRICH 
> <DIV></DIV>&gt; 
> <DIV></DIV>&gt; 
> <DIV></DIV>&gt; -----Message d'origine----- 
> <DIV></DIV>&gt; De : Al Venosa [mailto:avcinci@xxxxxxxxxxx] 
> <DIV></DIV>&gt; Envoye : mercredi 5 fevrier 2003 16:27 
> <DIV></DIV>&gt; A : amibroker@xxxxxxxxxxxxxxx 
> <DIV></DIV>&gt; Objet : RE: [amibroker] Re: NDX / QQQ-Can itbe traded? !!!! 
> <DIV></DIV>&gt; 
> <DIV></DIV>&gt; 
> <DIV></DIV>&gt; Good comment, Jerome. I, too, have found that expectancy calculations are 
> <DIV></DIV>&gt;incorrect when one uses compounding in his backtests. Fixing the position 
> <DIV></DIV>&gt;size will indeed enable you to calculate expectancy properly. Having done 
> <DIV></DIV>&gt;that, THEN you may use position size algorithsms to evaluate money 
> <DIV></DIV>&gt;management schemes. Good idea. However, that still doesn't solve the 
> <DIV></DIV>&gt;fundamental problem of unrealistic backtest results when you base position 
> <DIV></DIV>&gt;sizing on current equity. Thanks for the feedback. 
> <DIV></DIV>&gt; 
> <DIV></DIV>&gt; Al Venosa 
> <DIV></DIV>&gt; avcinci@xxxxxxxxxxx 
> <DIV></DIV>&gt; 
> <DIV></DIV>&gt; &gt;From: Jerome ULRICH 
> <DIV></DIV>&gt; &gt;Reply-To: amibroker@xxxxxxxxxxxxxxx 
> <DIV></DIV>&gt; &gt;To: 
> <DIV></DIV>&gt; &gt;Subject: RE: [amibroker] Re: NDX / QQQ-Can itbe traded? !!!! 
> <DIV></DIV>&gt; &gt;Date: Wed, 5 Feb 2003 15:53:37 +0100 
> <DIV></DIV>&gt; &gt; 
> <DIV></DIV>&gt; &gt;Hello Fred, 
> <DIV></DIV>&gt; &gt; 
> <DIV></DIV>&gt; &gt;Backtesting system on a constant dollar trades basis enables you to 
> <DIV></DIV>&gt; &gt;calculate the expectency of your system. Then, you can apply your 
> <DIV></DIV>&gt;position 
> <DIV></DIV>&gt; &gt;sizing algorism, which should include at least a minimum size under which 
> <DIV></DIV>&gt; &gt;trading should be stopped (that applies especially to professionnal 
> <DIV></DIV>&gt;traders 
> <DIV></DIV>&gt; &gt;that have fix costs to take into account), and a maximum size above which 
> <DIV></DIV>&gt; &gt;the commission/slippage you included in your test non longer applies. 
> <DIV></DIV>&gt; &gt; 
> <DIV></DIV>&gt; &gt;Best regards, Jerome ULRICH 
> <DIV></DIV>&gt; &gt; -----Message d'origine----- 
> <DIV></DIV>&gt; &gt; De : Fred [mailto:fctonetti@xxxxxxxxx] 
> <DIV></DIV>&gt; &gt; Envoye : mercredi 5 fevrier 2003 15:13 
> <DIV></DIV>&gt; &gt; A : amibroker@xxxxxxxxxxxxxxx 
> <DIV></DIV>&gt; &gt; Objet : [amibroker] Re: NDX / QQQ-Can itbe traded? !!!! 
> <DIV></DIV>&gt; &gt; 
> <DIV></DIV>&gt; &gt; 
> <DIV></DIV>&gt; &gt; Yuki, 
> <DIV></DIV>&gt; &gt; 
> <DIV></DIV>&gt; &gt; I'm not arguing your statement in terms of how one might trade in the 
> <DIV></DIV>&gt; &gt; real world, but you are not going to design &amp; optimize a trading 
> <DIV></DIV>&gt; &gt; system based on constant dollar trades are you ? especially if that 
> <DIV></DIV>&gt; &gt; sysem is designed to trade a broad index like NDX as represented by 
> <DIV></DIV>&gt; &gt; QQQ's or for that matter the hundred stocks it represents. 
> <DIV></DIV>&gt; &gt; 
> <DIV></DIV>&gt; &gt; --- In amibroker@xxxxxxxxxxxxxxx, Yuki Taga wrote: 
> <DIV></DIV>&gt; &gt; &gt; Hi Fred, 
> <DIV></DIV>&gt; &gt; &gt; 
> <DIV></DIV>&gt; &gt; &gt; Wednesday, February 5, 2003, 10:45:49 PM, you wrote: 
> <DIV></DIV>&gt; &gt; &gt; 
> <DIV></DIV>&gt; &gt; &gt; Ffyc&gt; Maybe when I get to $50mm I'd agree with you, but to limit 
> <DIV></DIV>&gt; &gt; &gt; Ffyc&gt; position sizes produces unrealistic results 
> <DIV></DIV>&gt; &gt; &gt; 
> <DIV></DIV>&gt; &gt; &gt; Sorry, but you are quite wrong. I thought you were a trader, too, 
> <DIV></DIV>&gt; &gt; &gt; but now I'm wondering. It is unrealistic, quite unrealistic, not to 
> <DIV></DIV>&gt; &gt; &gt; limit position sizes to positions that can slip in and out of a 
> <DIV></DIV>&gt; &gt; &gt; market without distorting it, or actually becoming the market. 
> <DIV></DIV>&gt; &gt; &gt; 
> <DIV></DIV>&gt; &gt; &gt; Trading anything even close to that size, or allowing it to be 
> <DIV></DIV>&gt; &gt; &gt; considered as a test, in most stocks, is producing results that 
> <DIV></DIV>&gt; &gt; &gt; cannot be obtained in real trades, therefore the results are absurd. 
> <DIV></DIV>&gt; &gt; &gt; 
> <DIV></DIV>&gt; &gt; &gt; I would guess you would have to scale down drastically in many 
> <DIV></DIV>&gt; &gt; issues 
> <DIV></DIV>&gt; &gt; &gt; that are less liquid than others. You can do it or not as you see 
> <DIV></DIV>&gt; &gt; &gt; fit, but don't expect much respect for the numbers you are posting 
> <DIV></DIV>&gt; &gt; if 
> <DIV></DIV>&gt; &gt; &gt; you don't. They are absurd. 
> <DIV></DIV>&gt; &gt; &gt; 
> <DIV></DIV>&gt; &gt; &gt; Best, 
> <DIV></DIV>&gt; &gt; &gt; 
> <DIV></DIV>&gt; &gt; &gt; Yuki 
> <DIV></DIV>&gt; &gt; &gt; 
> <DIV></DIV>&gt; &gt; &gt; mailto:yukitaga@x... 
> <DIV></DIV>&gt; &gt; 
> <DIV></DIV>&gt; &gt; 
> <DIV></DIV>&gt; &gt; Yahoo! Groups Sponsor 
> <DIV></DIV>&gt; &gt; ADVERTISEMENT 
> <DIV></DIV>&gt; &gt; 
> <DIV></DIV>&gt; &gt; 
> <DIV></DIV>&gt; &gt; 
> <DIV></DIV>&gt; &gt; 
> <DIV></DIV>&gt; &gt; Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
> <DIV></DIV>&gt; &gt; (Web page: http://groups.yahoo.com/group/amiquote/messages/) 
> <DIV></DIV>&gt; &gt; 
> <DIV></DIV>&gt; &gt; Check group FAQ at: 
> <DIV></DIV>&gt; &gt;http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> <DIV></DIV>&gt; &gt; 
> <DIV></DIV>&gt; &gt; Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
> <DIV></DIV>&gt; 
> <DIV></DIV>&gt; 
> <DIV></DIV>&gt;---------------------------------------------------------------------------- 
> <DIV></DIV>&gt;-- 
> <DIV></DIV>&gt; Tired of spam? Get advanced junk mail protection with MSN 8. 
> <DIV></DIV>&gt; Yahoo! Groups Sponsor 
> <DIV></DIV>&gt; ADVERTISEMENT 
> <DIV></DIV>&gt; 
> <DIV></DIV>&gt; 
> <DIV></DIV>&gt; 
> <DIV></DIV>&gt; 
> <DIV></DIV>&gt; Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
> <DIV></DIV>&gt; (Web page: http://groups.yahoo.com/group/amiquote/messages/) 
> <DIV></DIV>&gt; 
> <DIV></DIV>&gt; Check group FAQ at: 
> <DIV></DIV>&gt;http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> <DIV></DIV>&gt; 
> <DIV></DIV>&gt; Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
> <DIV></DIV></div><br clear=all><hr>Tired of spam? Get advanced junk mail protection with MSN 8.
> <br>
> 
> <!-- |**|begin egp html banner|**| -->
> 
> <table border=0 cellspacing=0 cellpadding=2>
> <tr bgcolor=#FFFFCC>
> <td align=center><font size="-1" color=#003399><b>Yahoo! Groups Sponsor</b></font></td>
> </tr>
> <tr bgcolor=#FFFFFF>
> <td align=center width=470><table border=0 cellpadding=0 cellspacing=0> <tr> <td align=center><font face=arial size=-2>ADVERTISEMENT</font><br></td></tr></table></td>
> </tr>
> <tr><td><img alt="" width=1 height=1 src="http://us.adserver.yahoo.com/l?M=243066.2784922.4151385.1927555/D=egroupmail/S=:HM/A=1377501/rand=756399442";></td></tr>
> </table>
> 
> <!-- |**|end egp html banner|**| -->
> 
> 
> <br>
> <tt>
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx <BR>
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)<BR>
> <BR>
> Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html</tt>
> <br>
> 
> <br>
> <tt>Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.</tt>
> </br>
> 
> </html>



Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

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