Hi James. That works as well. Thank you very much.

--- In [email protected], "jamesfarrow2003"
<[EMAIL PROTECTED]> wrote:
>
> For Buy and Hold simulation, I have been using:
> 
> Buy = 1;
> Sell = 0;
> 
> I then select the date range from the AA window.
> 
> --- In [email protected], "electricwally77" <soundmaker@> 
> wrote:
> >
> > The code I wrote yesterday (Oct 20, 2008) is wrong. Howard Bandy 
> wrote
> > the correct code. See below:
> > 
> > SetTradeDelays(0,0,0,0);
> > BuyPrice = O;
> > SellPrice = C;
> > Buy = IIf(DateNum()==950623,1,0);
> > Sell = IIf(DateNum()==1020912,1,0);
> > 
> >
>


Reply via email to