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

RE: [amibroker] Re: stops setting in formula



PureBytes Links

Trading Reference Links

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: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On
Behalf Of Vins
Sent: Wednesday, July 12, 2006 14:12
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Re: stops setting in formula

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


--- In amibroker@xxxxxxxxxxxxxxx, TOBY <t-o-b-y@xxx> 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