[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] 'remebering' a value



PureBytes Links

Trading Reference Links

Among other comments Tomasz wrote:

> Buy = ... your rule here...
> N = 7; // the number of bars to wait
> Buy = ExRemSpan( Buy, N ); // filter out repeated buys signals that occur
in N days from buy
>
> Sell = BarsSince( Buy ) > N AND Open > ValueWhen( Buy, BuyPrice );
> SellPrice = Open;

Ah. I think I tried to use Open > BuyPrice (it's been a while) and
wound up with results I didn't trust. Now that I see this, the
problem is obvious. Many thanks.

Owen