Mike, thank you very much.
That's got it.
Wood
--- In [email protected], "Mike" <sfclimb...@...> wrote:
>
> Looks like you have double negatives, resulting in a value greater than 1
> (i.e. 1 - (-0.0359) = 1 + 0.0359 = 1.0359)
>
> You are then multiplying that by the Open, thereby guaranteeing that the Low
> will be less than the resulting product. In the most optimistic case the Open
> will be the Low and you have already multiplied that by a factor greater than
> 1 before making the comparison.
>
> Mike
>
> --- In [email protected], "woodshedder_blogspot"
> <woodshedder_blogspot@> wrote:
> >
> > D2=-0.0359;
> > Filter=v>100000;
> > Buy=Filter AND L<(Open*(1-D2);
> > BuyPrice=Open*(1-D2);
> > Sell=SellPrice;
> > SellPrice=C;
> >
> > No matter what the open is, this code will always generate a price lower
> > than the open. The buy rule should guarantee that a buy will not be
> > recorded if the low is not lower than the BuyPrice. Yet the buy is taking
> > place, and I'm getting the HOD for the BuyPrice.
> >
> > Any help will be greatly appreciated. I've been chasing my tail on this
> > issue for two days now.
> >
> > Thanks,
> > Wood
> >
>