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

Re: [amibroker] Re: Coding question



PureBytes Links

Trading Reference Links

1. Is there a way to have the backtester execute on the current bar,
not the bar after trigger.

         Change the trade delays to zero

2. Is it possible to use the intrabar price at the time of trigger,
rather than the OHLC price.
         Set your AA window settings to what ever time/tick period you
want to use, provided you have the database for it

--
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 10/2/05, valrox1 <grpmail@xxxxxxxxxxxxxxxx> wrote:
> Thanks to both you and Graham for this solution. It works well.
>
> However, it brings up a couple of questions.
>
> 1. Is there a way to have the backtester execute on the current bar,
> not the bar after trigger.
>
> 2. Is it possible to use the intrabar price at the time of trigger,
> rather than the OHLC price.
>
> Both these questions relate to real time tick data.
>
> Thanks again
> Tom
>
>
> --- In amibroker@xxxxxxxxxxxxxxx, "dalengo" <dalengo@xxxx> wrote:
> > do you mean "Cross above zero?"
> > cross_above_zero = Cross( CCI(20), 0); // cross above zero
> >
> > This one::
> >
> > CCIlevel = Param("CCIlevel", 0, -200, 200, 25);
> > per = Param("CCI period", 20, 5, 50, 5);
> > cross_above_zero_1 = Cross( CCI(per), CCIlevel);
> >
> > would allow to select the level and the period of CCI (adjust to
> your
> > needs).
> > Note that cross_above_zero and cross_above_zero_1 are _arrays_
> > and can be used elsewhere in your system.
> >
> > --- In amibroker@xxxxxxxxxxxxxxx, "mymail" <grpmail@xxxx> wrote:
> > > I need to test a condition when the CCI(20) crosses its own
> > zeroline.
> > >
> > > Since the cross() function needs 2 arrays, "cross(CCI(20), ?array
> > )"
> > how
> > > would I be able to write this?
> > >
> > > Thank you
> > > Tom


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/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/