ApplyStop() generates Sell/Cover signals so you can enter on those.
However, this only works for entering Short positions since Cover is
"undefined" at the time of the Buy. To do Short S&R only it would look
like this:

Buy = yourBuyConditions;
Sell = yourSellConditions; //ApplyStop also generates Sells

Short = Sell; //Reverse from a Long position
Cover = yourCoverConditions; //ApplyStop also generates Covers

I cannot think of how to do this both Long and Short and still be using
the ApplyStop function. You can do it by writing your own loop and your
own stops.
--
Terry

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Vins
Sent: Wednesday, July 12, 2006 14:12
To: [email protected]
Subject: [amibroker] Re: stops setting in formula

and is there a way to do a stop and reverse ?
thank You


--- In [email protected], TOBY <[EMAIL PROTECTED]> wrote:
>
> Hi. 
> 
> I can look up ApplyStop in help.
> http://www.amibroker.com/guide/afl/afl_view.php?id=20
> 
> I made it.
> Thanks!
> --
> TOBY
> E-MAIL: t-o-b-y(at mark)tobysoft.net
>






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