I need to load for some pattern recognition charts with 40 000 bars back.
I now want that some very cpu consuming ADE indicators only calculate for the last 500 bars. Is there an way to implement this, i havent found an easy way with barnumber ?
Calculating Studies only at the last bars
Re: Calculating Studies only at the last bars
just wondering if something like this will work:
date > MyDate then begin
..........
..........
end;
or
datetojulian(date) > datetojulian(date)-500 then begin
...........
...........
end;
date > MyDate then begin
..........
..........
end;
or
datetojulian(date) > datetojulian(date)-500 then begin
...........
...........
end;
- Dave Masalov
- Posts: 1712
- Joined: 16 Apr 2010
- Has thanked: 51 times
- Been thanked: 489 times