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

Re: [amibroker] Re: BACKTESTER QSTN - STOP a BUY trade for X dayssince last actual BUY



PureBytes Links

Trading Reference Links

you will need to go to the advanced backtest code to alter signals
based on what trades were taken in the first pass portfolio backtest


--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_write.htm



On 5/2/06, moztrader <das300@xxxxxxxxxxx> wrote:
> sorry I have re written the problem to make it clearer:
>
>
>
> HI,
> It' s been a while since I programmed AB as I now have it on automatic
> but  i was wondering if anyone had ideas to help me implement the
> following:
>
> I wish to delay a BUY if the last BUY in the "back tester system" was
> greater than X days ago. This is not the same as ignoring  a BUY
> signal for a particular SHARE. As an example : the last BUY signal of
> say IBM may have been 200 days ago but the last actual BUY inback
> tester was 7 days ago ( say share ebay ) . Therefore if wqe were to
> BUY only if the last buy was > 20 days we could not BUY at that time .
>
> The BUY should only be possible when the last ACTUAL purchase in
> BACKTESTER was made more than X days ago. I want this to -
> -TEST in backtester
> -prevent too many new trades coming on board too fast.
>
> Regards
> Maurice
> das300@xxxxxxxxxx
>
>
>
> ---------------------------------------------------------------------
>
>
> --- In amibroker@xxxxxxxxxxxxxxx, "moztrader" <das300@xxx> wrote:
> >
> > HI,
> > It' s been a while since I programmed AB as I now have it on automatic
> > but  i was wondering if anyone had ideas to help me implement the
> > following:
> >
> > I wish to delay a BUY if the last BUY in the "trade system" was X days
> > ago. This is not the same as ignoring  a BUY signal for a particular
> > SHARE. As anexample : the last BUY of say IBM may have been 200 days
> > ago but the last actual BUY was 7 days ago ( say share ebay ) .
> >
> > The BUY should only be possible when the last ACTUAL purchase was made
> > more than X days ago. I want this to prevent too many new trades
> > coming on board too fast.
> >
> > Regards
> > Maurice
> > das300@xxx
> >
>
>
>
>
>
>
>
>
> 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 other support material please check also:
> http://www.amibroker.com/support.html
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>


------------------------ Yahoo! Groups Sponsor --------------------~--> 
GFT Forex Trading Accounts As low as $250 with up to 400:1 Leverage. Free Demo.
http://us.click.yahoo.com/lpv1TA/jlQNAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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 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/

<*> 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/