PureBytes Links
Trading Reference Links
|
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 amibroker@xxxxxxxxxxxxxxx, "p_thomas82" <pthomas82@xxx> 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
>
------------------------------------
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|