AmiBroker 5.85.0 BETA Read Me
October 4, 2014 14:54
THIS IS A BETA VERSION OF THE SOFTWARE. EXPECT
Backup your data files and entire AmiBroker folder
IMPORTANT: This archive is update-only. You have to install full version
Just run the installer and follow the instructions.
Then run AmiBroker. You should see "AmiBroker 5.85.0 BETA" written
in the About box.
See CHANGE LOG below for detailed list of changes. Note that only changes
that affect end-user directly are listed here. Internal code changes/refactoring
is usually not mentioned.
CHANGES FOR VERSION 5.85.0 (as compared to 5.84.0)
- AFL Editor: backtest* mode constants added to auto-complete list
- AFL Editor:
now Code snippets are available in auto complete list (type @ plus first
letter of snippet key trigger), and even without auto complete activated
@keytrigger is replaced by snippet text
- AFL: added support for single-character
literals, so you don't need to use Asc() funciton.
Buy = Cross( MACD(), Signal() );
Sell = Cross( Signal(), MACD() );
Filter = Buy OR Sell;
AddColumn( IIf( Buy, 'B', 'S' ), "Signal", formatChar );
- AFL: adding/removing symbols
to/from watch list via CategoryAddSymbol/CategoryRemoveSymbol wasn't thread
- AFL: AmiBroker now checks number passed to SetOption("MaxOpenPosition",
x ) and SetOption("WorstRankHeld",x ) and trims down the request
to number of symbols in database to prevent running out of memory when user
specifies some absurdly high values,
- AFL: new function SendEmail( "subject", "message",
ShowUI = False )
A direct version of functionality already provided by AlertIF. This function
sends e-mail unconditionally and it is easier to use if you don't need state
logic provided by AlertIf.
Note that "From" and "To" addresses as well as SMTP email
configuration should be done in Tools->Preferences, "Alerts" page.
Without configuring E-mail settings first this function will not work.
E-mails are sent asynchronously (so function returns BEFORE e-mail is actually
sent, sending occurs in the background)
ShowUI parameter decides whenever user interface of e-mailer program is
shown after sending e-mail or not.
- AFL: SetOption("MarginRequirement", x ) checks
if x is in the range 1..100 and displays an error if not.
- Backtest: backtestRegular
now keeps detailed info on sequencing of signals within single bar to avoid
problems with premature exit of just opened trade
when same bar exits were allowed and previous trade was not open due to insuffcient
funds leaving an unmatched exit signal.
In case when an exit signal that really belongs to previous trade was found
on the bar when next trade was open AmiBroker would display the following entry
in the detailed report log:
Symbol> Exit/Entry/Scaling ignored because signal predates already processed
FWIW: The issue did not affect other backtest modes.
- Code Snippets: added "Properties" button
to the toolbar that allows editing name/description/key trigger without re-inserting
- Code Snippets: New snippet/Properties dialog is now resizable
- UI: changed
cursor shape in all tree views from "hand" to normal
- UI: Code snippet window is now also available when AFL editor is in
MDI mode (use Window->Code Snippet menu when AFL editor is open)
- UI: Interpretation
window: Ctrl+C (clipboard copy) did not copy the interpretation text in
CHANGES FOR VERSION 5.84.0 (as compared to 5.83.0)
- AFL Editor: Idle-time Info tips were positioned incorrectly in 5.83. Fixed.
Editor: Text of inserted snippet is selected so one can easily see what was
inserted and delete it if was a mistake.
- AFL: added Error 57. Invalid quotation
mark (when user uses curly quotation marks instead of straight quotation
marks " to type a string literal)
- OLE: Document object has new property
Interval (integer, read/write) - selected Interval in seconds (tick/range/volume
intervals are represented by negative
- Report Charts: now it is possible to output HTML instead of graphics
in report chart formulas using AFL: EnableTextOutput( 3 ) - HTML output
- Report Charts: rewritten 3. Profit Table.afl using HTML embedding
features auto-scalable layout (so it enlarges when numbers are bigger),
columns, negative values in red, boundary date changed to last day
- UI: added Code Snippets window - allows inserting/deleting/saving
selected parts of the formula as snippets. Also implemented is convenient
of snippet to the formula edit window
- UI: Further display improvements
of Parameter window for high-DPI displays (ParamList bullet point is bigger
and positioned better,
resized when resizing param window, etc, etc)
- UI: On non-standard
DPI displays Parameter window could show some visual artifacts when scrolling.
CHANGES FOR VERSION 5.83.0 (as compared to 5.82.1)
- New Analysis: Watch list 0 was used automatically (without opening WL selection
dialog) when new watch list is created between scan and RMB click->Add
- UI: Parameter window look and feel improved. Item height is
increased and slider thumb made wider for easier use on small size/high DPI
- Commentary: attempt to display commentary on symbol without any quotes
could cause access violation. Fixed.
- AFL Editor: Verify formula run on symbol
without any quotes could cause access violation. Fixed (proper error message
- Analysis: Table header in the HTML report trade list is now
right aligned (to match number alignment) (affects newly generated reports
- AFL editor: when syntax check is performed and errors are detected,
the editor is immediately scrolled to first error
- Analysis: Minimum value
for "Margin Requirement" is now 1 (1%)
- AFL: Since v5.65 RestorePriceArrays()
did nothing when there was no preceding SetForeign/TimeFrameSet. Now restores
data if user explicitely overwrote
OHLC arrays in the code preceding it.
- Analysis: Detailed Log message "Symbol
not entered bcause of insufficient funds" improved to display requested
position size in units such as shares/% of equity instead of just encoded
- AFL engine: brand new custom micro allocator speeds up AFL
execution of complex formulas with nested loops upto 3 times.
- Turned on LowFragmentationHeap
in number of places
- Code snippets: New line \n was truncated from "data
- AFL Editor: parameter info tip does not disappear on pressing Backspace
- AFL Editor: Parameter info updates highlighted parameter when
moving cursor inside function's param list
- New Analysis: Less refreshes
of Info page provide some extra speed
- Analysis: fixed HoldMinBars check for scenario 3 with both buy and sell
generated on all bars and random scores.
CHANGES FOR VERSION 5.82.1 (as compared to 5.82.0)
- AFL Engine: fixes for stability issues in 5.81.0/5.82.0
- Filter dialog: a matching count wasn't updated on opening the dialog. Fixed.
report window made a little bigger so at least crash address is seen when
someone sends screenshot instead of text
CHANGES FOR VERSION 5.82.0 (as compared to 5.81.0)
- UI: Interpretation and Commentary windows now support color text (via EncodeColor),
bold and italic styles (tags: <b></b> for bold, <i> </i> for
printf("Now " + EncodeColor( colorRed )
+ "red text\n");
printf("and finally " + EncodeColor( colorGreen )
+ "green <b>AND bold <i>AND italic</i></b>\n");
printf(EncodeColor( colorBlack )
+ "going back to black");
- UI: Notepad, Interpretation and Commentary windows use default GUI
font instead of hard-coded Tahoma now
- AFL: functionality of PlotGrid() function
PlotGrid( level, color = colorDefault, pattern = 1, width = 1, label = True
pattern - defines line pattern. Available grid patterns 1..10 as shown in
the Tools->Preferences, "Axes & Grids"
1-7 are single pixel patterns, 8 is regular windows dot pattern (PS_DOT)
, 9 is regular Windows dash pattern (PS_DASH), 10 is solid line
width - grid line width (in pixels). Note that due to Windows GDI limitations
only patterns 8 (PS_DOT), 9 (PS_DASH), 10 (PS_SOLID) are available in widths > 1
label - whenever to display value label or not
Use PlotGrid to display horizontal lines that are constant instead of using
PlotGrid offers much better performance in this case.
So instead of
Plot( 50, "", colorRed, styleLine | styleThick );
PlotGrid( 50, colorRed, 10, 2, False ); //
solid line 2 pixels thick, no label
- AFL Editor: added 4 new snippets under "Function" category
Filter dialog now displays number of matching symbols in real-time as selections
- AFL: CCI function speeded up by 50%
- Inserting indicator with Param() calls
into chart when currently selected symbol had no quotes caused exception.
- AFL: In 5.81.0 CategoryGetName returned nothing (void) instead of string
type when specified category did not exist. Fixed (empty string is returned
- New Analysis: portfolio backtest processing was attempted even if there
was no symbols that matched "apply to" filter. Fixed (unnecesary
processing is skipped now).
- AFL engine: in v5.81 access violation could occur
when AFL array size was 0. Fixed.
CHANGES FOR VERSION 5.81.0 (as compared to 5.80.3)
- AFL Engine: custom memory allocator does not use Microsoft runtime lib
for reference tracking anymore. Result - complex formulas with lots of loops
and OLE (especially
low-level custom backtests) run upto 3 times faster in 32 bit and 4 times
faster in 64-bit
- AFL Editor: Parameter info tip significantly enhanced - now
it re-opens on typing each , (comma) and highlights current parameter to
Column setup dialog: added Mark All / Toggle All buttons
- AFL: GetFormulaPath()
function added - returns full formula file path
- AFL Editor: Smart reference
highlighting implemented (usage: mark a word and all references become
- AFL Editor: Find/Replace shows a message box when reached the
end of the file and offers restarting from the beginning if new "Wrap around" option
is turned on.
- AFL Engine: code refactoring for reduced size and improved speed
- AFL: when value of unsupported type was appended to string a crash could
- AFL Engine: when
IIf was called the memory upsized from scalar to array could get freed twice
- AFL: MACD() and Signal() functions made faster (approx 1.5-2x times)
- Analysis: Interest
is added at the beginning of next bar (instead of end of current bar), to
account for overnight rate. This also fixes the problem of ignoring
interest in v.> 5.69
- UI: fixed yet another place where entering customization
changed working dir
If you experience any problem with this beta version please send detailed
description of the problem (especially the steps needed to reproduce it) to
support at amibroker.com