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

Re: [amibroker] Tj:Counting buy signals



PureBytes Links

Trading Reference Links

Steve,

Thank you for your suggestion, But Tomasz answered the question several
posts later with the following:

Tomasz wrote:
"If you really want to count signals inside some date range you would
need to use:

Cum( buy AND datenum() >= 990101 AND datenum() <= 1000503 )"

Again, Thank you

Anthony



Steve Dugas wrote:

> Hi Anthony, I believe that CUM ignores your range settings, and always
> starts at the beginning of your data. You could use SUM instead, but
> you would need to either figure out how many days you are testing or
> switch range to "n = (number of periods in SUM function)". Steve
>
> ----- Original Message -----
> From: Anthony Faragasso
> To: amibroker@xxxxxxxxxxxxxxx
> Sent: Monday, April 29, 2002 10:08 PM
> Subject: [amibroker] Tj:Counting buy signals
> Tomasz,
>
> I added a counter at the end of my trading system inorder to
> count the
> number of buy signals that are generated buy the system
> specifically
> related to the range settings , and also to check the
> validity of the
> exrem functions.
> filter=1;
> AddColumn((Cum(Buy)),"buy",1);
>
> I set Range : from 1/1/00 to: 4/26/02.
>
> The first buy signal in the range specified above occured
> on 4/10/00,
> but the counter has recorded 6 buy signals prior to the
> range settings,
> Do these prior buy signals influence the backtest results ?
> Why are
> there buy signals prior to the range settings, shouldn't the
> signals be
> restricted to the range settings ?
>
> Thank you in advance
> Anthony
>
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service.
>
> -------------------------------------------------------------
>
> [Image]
>
>
> Yahoo! Groups Sponsor
ADVERTISEMENT
[Image]

>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.