PureBytes Links
Trading Reference Links
|
Quite straightforward. Something like this may work. I am just typing it
straight here, so hopefully no major typos
BuySig = yourbaseCondition;
LowHigh = lowestsince( buysig, H );
Buyprice = LowHigh + 0.01; //assuming 1 tick is 1 cent
Buy = Cross( C, LowHigh );
StopLoss = Cross( C, lowestsince( buysig, L );
Sell = YouSellCondition or StopLoss;
Cheers,
Graham
http://e-wire.net.au/~eb_kavan/
-----Original Message-----
From: acmetelka [mailto:jstepan@xxxxxxxxx]
Sent: Sunday, August 08, 2004 11:18 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Trailing buy-stop
Hi,
I'm new in AFL and Amibroker, so I'm just trying to get into the
scripts and bac testing...
Can anyone help me, how to write formula for trailing buy-stop,
described on
http://www.incrediblecharts.com/technical/trailing_stops.htm ?
First condition can be for example MA crossing and after that I need
to activate script for this trailing buy-stop, but I don't know, how
many bars it will be before activation of buy order.
Tnankx a lot,
AC.Metelka.
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.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/
|