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

[amibroker] Re: Backtest summary doesn't show all buys and sells as on the price chart



PureBytes Links

Trading Reference Links

You can set the PositionSize variable in your code. For example, if 
you want all positions to be 100 shares using the Open price, you 
would write:

PositionSize = Open * 100;

...where PositionSize is set to the dollar value for the position 
(see table): http://www.amibroker.com/guide/a_language.html

Alternatively, you could set the PosSize field of each individual 
Signal object from within custom backtester code.

http://www.amibroker.com/guide/a_custombacktest.html

--- In amibroker@xxxxxxxxxxxxxxx, "srengret" <lechols@xxx> wrote:
>
> Okay, the info from you and Tomas helped.
> Is there a way to explicitly limit the number of shares (100) using
> settings regardless of the amount available for trading?  I didn't 
see
> how. 
> 
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "apfxtrader" <apforex@> wrote:
> >
> > It can be that you do not have sufficient funds to enter all 
trades or
> >  backtestmode (regular) is removing all excess signals.
> > 
> > 
> > --- In amibroker@xxxxxxxxxxxxxxx, "srengret" <lechols@> wrote:
> > >
> > > When conducting a backtest, I obtain a trade list report as 
selected
> > > in  my settings. When I view the price chart, the stock shows 
more buy
> > > and sell arrows  in the price chart than the trade list report 
shows
> > > in the text.  This only happens some of the time.   In other 
cases,
> > > the trade list report buys and sells match the price chart buys 
and
> > > sells arrows. 
> > > I rechecked the dates on the price chart and trade list 
report.  They
> > > are okay. 
> > > What have I overlooked?   
> > > Example:  PYZ showed 3 buy and sell occurrences in the text.  
The
> > > price chart showed 3 buy and sell occurrences.  Using the same
> > > backtest criteria, PZD only showed one buy and sell on the 
trade list
> > > report and four or more buy and sell arrows on the price 
chart.  
> > > If anyone has any idea of what I need to recheck or change, 
please let
> > > me know.
> > > Regards.
> > >
> >
>




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/