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

RE: [amibroker] TimeFrameSet and compress/expand



PureBytes Links

Trading Reference Links

It is very easy to understand  timeframecompress and timeframeexpand

1.	When it is compressed, the data series now becomes shorter (ie
operatoring on a higher time frame)
2.	When it is expanded, the opposite happened.

 

Time frame set is equivalent to timeframecompress every statement.

In your example

The MA is operated on a shortened series (approx 5 times as short). The
series only contains weekly bars.

But it is on a daily time axis. In this instance, the first 4/5 of the
series is filled with NULL, and only the last 1/5 contains the data.

 

If you plot myMA at this point. You will see the series squashed  up towards
the end.

 

So you will need to TimeframeExpand it to distributed evenly across the time
domain and fill up the gaps. That's what timeframeExpand does

 

 

 

  _____  

From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf
Of foginthehills
Sent: Wednesday, 22 November 2006 9:33 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] TimeFrameSet and compress/expand

 

Hi there, 

Can someone please confirm this for me? 

I read about Timeframeset in the AFL help, but it's still not clear to 
me.

I have seen this code in an AFL explore script: 

TimeFrameSet(inWeekly); 
myMA = MA(Close, 3); 

.... so is myMA a 3 day or a 3 week moving average? 

And what does the Expand function really do with the array - does it 
add more elements? How are these calculated? (Likewise Compress?)

Many thanks for any help. Trying to understand AFL better.

 


Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.14.13/546 - Release Date: 11/22/2006