For 1) you could try
Sell = Cross(TimeNum(),155000) and c<valuewhen(buy,buyprice+x);

-- 
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 02/08/06, supistarde <[EMAIL PROTECTED]> wrote:
> found some possiblities:
>
> 1) ??
> close for the end of the day would be
> Sell = Cross(TimeNum(),155000);
> 2) ??
> possible solution:
> Daystart = DateNum()!=Ref(DateNum(),-1) and cross(fast,slow);
> TimeStop = Cross( TimeNum(),113000);
> xO = ValueWhen(daystart,O);
> xH = ValueWhen(Timestop, HighestSince(daystart,H));
> xH = ValueWhen(Timestop, LowestSince(daystart,L));
> xO = ValueWhen(timestop,C);
> 3) solution:
> Daystart = DateNum()!=Ref(DateNum(),-1);
> TimeStop = Cross( TimeNum(),1000000);
> xO = ValueWhen(daystart,O);
> xH = ValueWhen(Timestop, HighestSince(daystart,H));
> xH = ValueWhen(Timestop, LowestSince(daystart,L));
> xO = ValueWhen(timestop,C);
>
>
> --- In [email protected], "supistarde" <[EMAIL PROTECTED]> wrote:
> >
> > Hello,
> >
> > I have some questions concerning intraday systems.
> >
> > 1)how do I tell the system that it should not close the position at
> > the end of day if i am  x points away from the entry price?
> > 2)How do i combine two rules? for example, i want to buy the high
> > after a moving average crossover occurs.
> > 3)I want to buy the highest high after 20 minutes. How can i programm
> > this? how do i select this high?
> > 4) is there an ab system database. i found information on the homepage
> > but there are not so many examples. i learn best if i analyze examples.
> >
> > Thanks,
> > Georg
> >
>
>
>
>
>
>
>
> 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
>
>
>
>
>
>
>


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:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to