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

[amibroker] Re: Missing Trade



PureBytes Links

Trading Reference Links

Thanks Graham for your suggestion. I went to the knowledge base and 
used TJ's example. However, there is bug(enhancement) #105 that needs 
to get done before ranking can be implemented in the CBT. Looking at 
the TJ's correspondents with various users I get the feel that this 
issue will be fixed/implemented sometime soon.


--- In amibroker@xxxxxxxxxxxxxxx, Graham <kavemanperth@xxx> wrote:
>
> You could try just using sigscalein for all trades, and not have an
> initial buy condition
> sigscalein will buy if not already in a trade
> Also see the knowldege base for example on using the surplus buy
> signals for scaled entries
> 
> -- 
> Cheers
> Graham
> AB-Write >< Professional AFL Writing Service
> Yes, I write AFL code to your requirements
> http://www.aflwriting.com
> 
> 
> 
> On 07/05/07, tipequity <l3456@xxx> wrote:
> > After running a portfolio backtest, I noticed that some potential
> > trades were missed. What i learned was that when initially the buy
> > signal was fired there was not enough buying power to get execute 
the
> > trade. Subsequent to the initial buy signal another buy signal 
fires
> > and this time there is enough buying power to execute the trade.
> > However, backtester doesn't allow the trade because it has a the
> > initial buy signal and pyramiding is not allowed. Is there a way 
that
> > I allow pyramiding but only get one instance of open position for
> > each symbol? The following is my backtest criterion:
> >
> > SetBarsRequired(1000000,0);
> > SetOption("InitialEquity", 100000); /* starting capital */
> > SetOption("CommissionAmount",8); /* commissions AND cost */
> > SetOption("CommissionMode", 2);
> > SetTradeDelays( 1, 1, 1, 1);
> > SetOption("PriceBoundChecking", 1);
> > SetOption("UsePrevBarEquityForPosSizing", 1);
> > SetOption("AllowPositionShrinking", True);
> > SetOption("MinShares", 100);
> > SetOption("AccountMargin", 100);
> > PositionSize = - 10;
> >
>




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/