TimeFrameCompress
|
Time Frame functions |
SYNTAX | TimeFrameCompress( array, interval, mode = compressLast ) |
RETURNS | ARRAY |
FUNCTION | The TimeFrameCompress function compresses single array to given interval using given compression mode available modes:
To expand compressed array you should use the TimeFrameExpand function. The TimeFrameCompress function is provided for completeness and it can be used when you want to compress single array without affecting built-in OHLC,V arrays. If you call TimeFrameCompress it does not affect results of other functions (opposite to TimeFrameSet). For more information check Tutorial: Multiple time frame support |
EXAMPLE | wc = TimeFrameCompress( Close, inWeekly ); |
SEE ALSO | TimeFrameExpand() function |
The TimeFrameCompress function is used in the following formulas in AFL on-line library:
See updated/extended version on-line.