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

[amibroker] Re: Can someoneplease code up this simple system



PureBytes Links

Trading Reference Links

--- In amibroker@xxxxxxxxxxxxxxx, "Edward Pottasch" <empottasch@xxx>
wrote:
>
> similar effect you get if you use settradedelays(1,1,1,1). I am used
to Ref(Buy,-1) and I leave setttradedelays(0,0,0,0) because I can
directly put this signal in the chart and shows me where it is at.
There is nothing mysterious about it. It just shifts signals 1 bar
forward. Yesterdays signal will be executed on todays bar. Ofcourse
you will get a different result in the backtest because your signals
are delayed by 1 bar. You can choose not to use it but then you will
have to use settradedelays(1,1,1,1). If implemented properly this
should give the same result. You need to use one or the other because
when you use the close price to define your signal you will only be
able to enter at the open of the next bar.
> 
> Ed
> 
> 
> 
> Does that mean that the Portfolio backtester passes up the stock if 
> there is no room to purchase. Conversly if you remove Ref(Buy,-1), is 
> the stock purchased when the portfolio allows this. Ref(Buy,-1) seems 
> to impact the performance of the portfolio backtest. To tell you the 
> truth this is the 1st piece of code I've seen this used.
>


Thanks for the explanation Ed



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/