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

Re: [amibroker] Re: ApplyStop Question



PureBytes Links

Trading Reference Links

hi,
 
yes it is possible.  If you use stopModePoint then the value you enter is the the number of points with respect to the entryprice. So you have to rewrite it in such a way that you can use an absolute price.
 
For instance you buy at 40 and you want to take a profit at 42. Then you can use for instance:
 
profitStop = ValueWhen(Buy, abs(40 - 42));
ApplyStop(stopTypeProfit,stopModePoint,profitStop,ExitAtStop = 1,Volatile = False, ReentryDelay = 1 );
I could give a more complete example if needed,
 
rgds, Ed

 
----- Original Message -----
From: ami_trader
Sent: Friday, April 08, 2005 5:52 PM
Subject: [amibroker] Re: ApplyStop Question


Please, help me.

How do I exit or enter at specific price ?
Is it possible with AB?

---
Giuseppe


--- In amibroker@xxxxxxxxxxxxxxx, "ami_trader" <ami_trader@x...>
wrote:
>
> Is it possible to exit exactly at stop loss price?
>
> ApplyStop( stopTypeLoss, stopModePoint, 0.0014, 0, 0, 0);
>
> Exit exactly at stop loss value (Entry Price - 0.0014)
>
>
> Thanks in advance
>
>
> ---
> Giuseppe





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





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