Mike,
Thank you very much. That works.
TM


________________________________
From: Mike <[email protected]>
To: [email protected]
Sent: Wed, April 14, 2010 10:28:26 PM
Subject: [amibroker] Re: How to close at the same day?

  
Are you using end of day data, or intra day? If end of day, try something like

SetTradeDelays( 0, 0, 0, 0);
SetOption("AllowSam eBarExit" , true);

Buy = ...;
BuyPrice = Open;

Sell = 1;
SellPrice = Close;

Mike

--- In amibro...@yahoogrou ps.com, Tony M <pqj...@...> wrote:
>
> Please help me with a simple exit strategy: when backtesting, I open my 
> positions at the open in the morning, how can I close at the close of the 
> same day? 
> 
> I can use ApplyStop( stopTypeNBar, stopModeBars, 1) to close at the second 
> day, but I can not figure out a way to close at the same day. 
> 
> Thanks,
> TM
>


 


      

Reply via email to