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

Re: [amibroker] 200V Volume Bar



PureBytes Links

Trading Reference Links

CHANGES FOR VERSION 4.71.0 (as compared to 4.70.5)
 
Added N-volume bars charts and timeframe support.

Custom N-volume bar intervals are definable (as usual) in Tools->Preferences->Intraday.

TimeFrame functions were also extended to support N-volume bars using new TimeFrameMode() function calling

TimeFrameMode( 0 );

- switches time frame functions to time-based operation (the default)

TimeFrameMode( 1 );

- switches time frame functions to N-tick operation (positive values passed to TimeFrameSet are treated now as N-tick)

TimeFrameMode( 2 );

- switches time frame functions to N-volume bar operation (positive values passed to TimeFrameSet are treated nowas N-volme bars)


Example:

TimeFrameMode( 2 );
TimeFrameSet( 50000 ); // 50'000 share bars..
...do something ...
TimeFrameRestore();


Note: N-volume bars are somewhat weird (compression of data to N-volume bar may actually deliver MORE output bars - for example if one tick is 1000 shares and you have specified 100V bars then single tick will be expanded to TEN 100V bars - ten times original size)
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 );

// gives 2000V barsSimilarly formatted negative numbers will be reported by Interval() function when n-volume bars are selected.


Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: martinod
Sent: Thursday, March 16, 2006 9:30 PM
Subject: [amibroker] 200V Volume Bar

Hello,

 

 

Does anyone knows if we can have 200V (or any other number for volume) bar charts with Amibroker ?

 

Thank you,

 

 

AL,



Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html





SPONSORED LINKS
Investment management software Real estate investment software Investment property software
Software support Real estate investment analysis software Investment software


YAHOO! GROUPS LINKS