What I really would like to be able to do
is sell on condition the buy went through, not sell
even if a buy was not executed
-----Original Message-----
From: Graham
[mailto:kavemanperth@xxxxxxxxx]
Sent: Friday, 11 February 2005
19:29 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] I am
stuck
something like this ?
sell = ref(buy,-1) or
cross(h,valuewhen(buy,buyprice)*1.02);
On Fri, 11 Feb 2005 16:44:12 +1100, John Simovic
<jsimovic@xxxxxxxxxx> wrote:
>
>
> I would like to get the following code
>
>
>
> Buy = Ref( EMA( Close, 3 ), -1 ) > Ref(
MA( Close, 9 ), -1 )
>
> AND Cross( EMA( Close, 9 ), EMA( Close, 3 ) )
>
> AND LinRegSlope(C,30)<0 AND Ref(Open,0)
> Ref (Close,-1);
>
>
>
> to exit the next day or at 2% profit. How do
I amend it achieve this goal.
>
>
>
>
>
> Kind Regards.
>
>
>
> Check AmiBroker web page at:
> http://www.amibroker.com/
>
> Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
>
>
> Yahoo! Groups Sponsor
> ADVERTISEMENT
>
> ________________________________
> 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 the
Yahoo! Terms of Service.
--
Cheers
Graham
http://e-wire.net.au/~eb_kavan/
Check
AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Sponsor |
|
|
Yahoo! Groups Links