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

Difficulty with BarsSince()...



PureBytes Links

Trading Reference Links

Hi,

Could someone please help me with this problem:

Buy = Cross(x,y);
Sell = Cross(y,x);
Short = Sell; Cover = Buy;

In order to survive whipsaws I want to reject Sell signals which 
occur within three bars of a Buy, and Buy signals which occur within 
three bars of a Sell.

I am trying to use Barssince(Sell,3) etc. but I still have all the 
Buy/Sell signals, or none at all :-(

Keith (B)