TimeFrameMode
|
Time Frame functions |
SYNTAX | TimeFrameMode( mode ) |
RETURNS | NOTHING |
FUNCTION | Switches time frame functions to different operating modes. Where mode is one of 0, 1, 2, 3, or 4.
TimeFrame functions are protected against array overrun and will not decompress beyond original array size (you will get an "Error 47. N-volume bar compressed data longer than base time frame"). Also switching main time frame to some weird N-volume bar value will result in limiting the output to maximum twice original data size(without error message). You should keep that in mind and avoid using too small N-volume bar intervals that could lead to such condition. Also due to the nature of N-volume bars the only TimeFrameSet() function will yield correct N-volume bar values, TimeFrameGetPrice() may give slightly distorted results. It is also possible to use n-volume bars in TimeFrame functions without calling TimeFrameMode() - it is then necessary to specify n-volume bars as negative number offset by -1000000 (minus one million): TimeFrameSet( -1000000 - 2000 ); |
EXAMPLE | TimeFrameMode( 2 ); |
SEE ALSO | TimeFrameSet() function , TimeFrameRestore() function |
The TimeFrameMode function is used in the following formulas in AFL on-line library:
See updated/extended version on-line.