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

[amibroker] Re: ApplyStop Question



PureBytes Links

Trading Reference Links


Thank you ed.
It doesn't work for me, but maybe I don't understand.

My pseudocode is:

Buy this bar at yesterday H - 10 tick
Stop Loss when the price is -14 tick from entry price
Take Profit when the price is +6 tick from entry price

Can you give me an example?

---
Giuseppe

--- In amibroker@xxxxxxxxxxxxxxx, "ed nl" <ed2000nl@xxxx> wrote:
> 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 
>   To: amibroker@xxxxxxxxxxxxxxx 
>   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@xxxx> 
>   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
> 
> 
> 
> 
> 
> -------------------------------------------------------------------
-----------
>   Yahoo! Groups Links
> 
>     a.. To visit your group on the web, go to:
>     http://groups.yahoo.com/group/amibroker/
>       
>     b.. To unsubscribe from this group, send an email to:
>     amibroker-unsubscribe@xxxxxxxxxxxxxxx
>       
>     c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms 
of Service.





------------------------ Yahoo! Groups Sponsor --------------------~--> 
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
http://us.click.yahoo.com/EpW3eD/3MnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/