Chris,

As the Sell array can only contain 0 or 1 (False or True), I figured that True 
would be completely wrong as I don't want an exit signal on every bar. So, that 
just leaves False as the solution... and it seems to work. But I am not really 
sure if this is the proper way to do it...

--- In [email protected], "Chris DePuy" <cde...@...> wrote:
>
> rise,
> 
> I'm literally working with this same thing now.  yes, you have to tell 
> amibroker to put a 0 in each of the Sell array locations, otherwise it will 
> sell.  but, if you don't put a value in there, the backtester won't work.
> 
> Chris
> 
>   ----- Original Message ----- 
>   From: rise_t575 
>   To: [email protected] 
>   Sent: Thursday, April 15, 2010 1:19 PM
>   Subject: [amibroker] Sell & ApplyStop
> 
> 
>     
>   Hello,
> 
>   I guess I have a small problem with understanding the ApplyStop function.
> 
>   If I want to use the stop defined by the ApplyStop function as my only stop 
> (e. g. stopTypeNBar for exiting after n days), the backtester still wants 
> some condition for the "Sell" array (sell = ...), although I don't need 
> another condition for selling.
> 
>   Is it correct in this case to assign just a "False" to the Sell array? 
> Seems a bit strange to me...
> 
>   Sell = False;
>   ApplyStop(stopTypeNBar, ...);
> 
>   Thanks in advance!
>


Reply via email to