AmiBroker 5.40.0 Release Candidate 1

Stability: Rank 4 – Stable, almost as good as final release version

This is a Release Candidate 1 version. Make a backup first

A new RC version (5.40.0) of AmiBroker has just been released. It contains updated documentation and other support files.

32-bit version:
(8 638 024 bytes)

64-bit version – update 5.40.1 (requires Professional Edition license):
(8 965 552 bytes)


CHANGES FOR VERSION 5.40.1 (64-bit only) (as compared to 5.40.0)

  1. 64-bit version: MS VC++2005 compiler default floating point code generation option switched back to fp:precise because fp:fast produced incorrect code

CHANGES FOR VERSION 5.40.0 (as compared to 5.39.0)

  1. Fixed crash occuring when drawing object was not deselected prior to switching symbol
  2. Added extra thread safety measure for Foreign() so it handles situation when other thread is deleting symbol while it is being accessed via Foreign()
  3. New version (1.3) of 3D chart viewer (O3G) fixes problem with Edit->Copy image function on Vista/Windows 7 with desktop composition turned ON
  4. Multithreading does not revert to “ON” state on startup when user turned if OFF last time (it was so in 5.34-5.39 to force testing of MT)
  5. Temporarily removed asInvoker manifest because it created problems with 3rd party programs/plugins that are not Windows 7 compatible (QP2, FastTrack)
  6. AFL thread termination is safer and faster now (this also eliminates randomly occuring AFL syntax errors when swithing layouts)
  7. AFL: PercentRank( array, range ) implemented

    array – input data
    range – lookback range

    Returns percent rank (0…100) of the current element of the array within all elements over the specified range.

    A value of 100 indicates that the current element of the array is the highest for the given lookback range, while a value of 0 indicates that the current value is the lowest for the given lookback range.

    It is equivalent (but 2x faster) to:

    function PercentRank2( Data, Periods)
    Count = 0;
    for ( i = 1; i <= Periods ; i++ ) { Count += Data > Ref( Data, -i );
    return 100 * Count / Periods;

For more details, instructions and examples how to use new features see What’s new document.

For the full list of changes see Release Notes document.


  1. The upgrade is FREE for all users who purchased AmiBroker after February 3rd, 2007
  2. The users who purchased AmiBroker before February 3rd, 2007 would need to buy upgrade if they want to use this newest version ($99 – Standard Edition, $139 – Professional). If you don’t want to pay – you may continue using previous version(s) infinitely.
  3. To find out when you have purchased AmiBroker and how long your free upgrade period is, use “Account Information” page in the members area at:
  4. To purchase new license or upgrade please use our ordering page at:

Comments are closed.