In your backtest code try adding the line:

Buy = Buy AND BarsSince(Ref(Buy, -1) < 29);

Haven't tested it but it should be quick and easy to try.

Rgds,

--- In [email protected], "p_thomas82" <[EMAIL PROTECTED]> wrote:
>
> Hi guys, 
> 
> im after a way to ignore a buy signal if there has been a previous buy 
> signal on the underlying in the last 30 days?  is there an easy way to 
> do that?
> 
> I am finding that some of the stocks my system picks up, triggers daily 
> buy signals when in a cerain move and this throws off my backtesting. 
> 
> And the scans i do, I want to automatically ignore the stock if there 
> has been a buy signal in the previous 30 days. 
> 
> Thanks for your help in advance,
> 
> PT
>


Reply via email to