What is a n-bar stop.
Can you give an example?

--- In [email protected], "Mark H" <[EMAIL PROTECTED]> wrote:
>
> How about using n-bar stops?
> 
>   ----- Original Message ----- 
>   From: conchoriverwater 
>   To: [email protected] 
>   Sent: Wednesday, August 16, 2006 1:37 PM
>   Subject: [amibroker] Help with one line of code.
> 
> 
>   When I am doing a back test, I want to trigger the sell at 
exactly 
>   10 bars after the buy. 
>   When I use the following code, there is a problem.
> 
>   G = BarsSince(Buy); 
>   Sell=IIf(G==10,1,0);
> 
>   The bar count starts again every time a buy condition is hit.
>   If a buy is hit two bars in a row, it doesn't work.
> 
>   Is there a better way to do this?
> 
>   Please keep it simple. I cut and paste a lot of code and only 
>   understand the simple stuff.
> 
>   Thanks
> 
>   James
>







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