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