Amibroker 5.4 highlights
Version
- Fully Multi-threaded charting.Fully Multi-threaded graphics.Massively parallel execution AFL (each chart in separate thread runs pane) * Allows to maximize speed and utilisation of modern multi-core / multi-CPU computers.Massively parallel execution of the AFL (each graph pane runs a separate thread) speed and a modern multi-core / multi-CPU to maximize the use of computers.For example on your 8-core Intel i7 CPU upto 8 times faster than charts in version will run 5:30. The AFL engine has been completely rewritten from the ground up to allow multiple instances of the engine running simultaneously.8-core Intel i7 processor, for example, the charts will continue until 8 times faster than version 5:30. AFL motor completely to allow for simultaneously running multiple instances of the engine from scratch, re-written.This not only enables but also enhances responsiveness of the entire application multithreading, as the formula used even in a badly-written chart user is not able to lock or slow the rest of the program. Multi-threading is ON by default. It can not be turned off by unchecking the "Multi-threaded charts" box in the Tools-> Preferences , "AFL" tab but it is strongly discouraged.This provides not only multiple but also improves the entire application response, and even used a graphical user formula is poorly written or too slow is not possible to lock the rest of the program. Multi-threading is on by default. This can be turned off in the "Multi-threaded graphics" box unchecking Tools -> Preferences , "AFL" tab, but definitely not recommended.Multi-threading should be ON if you want AmiBroker to operate at full speed.If you want to run at full speed multi-threading should be ON AmiBroker.
- 12 new AFL functions12 new AFL functions
- DateTimeAdd - adds specified number of seconds / minutes / hours / days to datetimeDateTimeAdd - datetime to seconds / minutes / hours / days, adds a certain number of
- HMA - Hull Moving AverageHMA - Hull Moving Average
- FIR - Finite Impulse Response filterFIR - Finite Impulse Response Filter
- PERCENTRANK - calculate percent rankPERCENTRANK - compute the rank of
- Lookup - search for bars with the array specified date / timeSearch - The specified date / time range of the bar with the search
- FirstVisibleValue - get first visible value of the arrayFirstVisibleValue - the array to get the value of the first visible
- LastVisibleValue - get out of the last visible arrayLastVisibleValue - the array to get the value of the last visible
- InGICS - check if given symbol belongs to category specified GICSInGICS - check if a given symbol belong to the category mentioned GIC
- GicsID - get information about GICS categoryGicsID - information about the GIC category
- PlaySound - to play. WAV sound filePlaySound -. WAV audio file to play
- ShellExecute - execute external program / fileShellExecute - External program / run the file
- _DT - synonym of StrToDateTime_DT - synonymous with StrToDateTime
- Quote Editor improvements and fixes: * Allows user to turn on / off time shift and editing timestamps down to milliseconds, fixed handling of the 12 hour (AM / PM) regional setting
Quote Editor improvements and fixes: user / time stamps down the millisecond time scrolling and editing , 12-hour fixed processing (AM / PM) Lets you turn on the regional setting - Charting improvements: better looking labels value, low-level gfx functions speeded up 4 times.Graphical improvements: better value labels appear, four times the speed of low-level gfx functions.
- Charting-related changesGraphics-related changes
- Data Window and Data Readout is immediate and does not require the extra tooltip AFL execution (values stored in RAM are required to display them during the normal chart available without need to refresh and re-run of the formula).Read data from the Data Window and emergency and extra AFL execution (re-run them without the need for a formula to display the values that the current during normal graphics refresh and stored in RAM) does not require tooltip.Tooltip variable is now obsolete.Number variable is now obsolete.Plotting a line without tooltips to display custom values you can use in the Plot () with styleHidden flag.If the flag styleHidden Land () without drawing a line that you can use tooltips to display special values.
- AFL does not require the display execution InterpreationInterpreation screen does not require execution of the AFL
- Inserting indicator parameters are orders of magnitude faster and resettingInstalling the display and reset the parameters is an order magnitude faster
- zoom setting is now saved chart layout file and restored when a layout is loaded inzoom setting of the graphics and the layout is now saved to the file is loaded back to a layout
- OLE interface improvements (new IsBusy object and Import method Analysis method of automatically refreshes the UI)
enhancements OLE interface (UI refreshes to automatically analyze the object and import method IsBusy new method) - The AFL engine improvements:The AFL engine improvements:
- detect potential user mistakes that added warnings - such as the assignment within conditional expression or redundant calls to plot () function() Function calls to Land or unnecessary in such a conditional expression in assignment - was added to determine the potential user errors, warnings
- added extra checks for invalid parameter values for many functions and array subscript == null - error message is displayed You APPROPRIATEan appropriate error message is displayed - for many functions, and the number of invalid parameter values to be added for an empty token == extra control
- PlotText optimized to conserve memory and reduce execution time by skipping invisible partsProtect and reduce execution time by skipping invisible parts PlotText memory optimized for
- Fixes Account manager
Account manager fixes - improved compatibility with Windows 7 (high-DPI aware manifest, compatibility with Internet Explorer 9)Better compatibility with Windows 7 (high-DPI aware of the manifest, compatibility with Internet Explorer 9)
- 64bit-specific fixes (including fixing problems with 3rd party DLLs)64bit custom fixes (fixing problems with 3rd party DLL included)
- appearance in new themes and many other improvements and fixesthemes of innovation and a new look and many other fixes
The function adds specified amount of 'Intervals' to datetime input array.
- datetime - scalar or array - the datetime value to add to (for example returned by Now (), DateTime () or StrToDateTime / _DT or ConvertDateTime functions)datetime - scalar or array - ((Now, returning for example), Date () or StrToDateTime / ConvertDateTime _DT or functions), add a datetime value
- amount - number of 'Intervals' to add (seconds / minutes / hours / days / etc - Depending on interval-parameter)amount - add to the 'interval' number (seconds / minutes / hours / days / etc - depend on the parameter range)
- interval - specifies unit you want to add, units are supported in1Second, in1Minute, inHourly, inDaily, inWeekly, inMonthly, inQuarterly, inYearlyrange - specifies the unit you want to add, support units in1Second, in1Minute, inHourly, inDaily, inWeekly, inMonthly, inQuarterly, has inYearly
x = Now ( 5 );
printf ( "11 days from the now" + DateTimeToStr ( DateTimeAdd (x, 11 , inDaily ))
/ / Example 2 (commentary):
x = Now ( 5 );
printf ( "now is" + DateTimeToStr (x)),
for (shift = - 12 ; shift <= 12 ; shift + +)
{
printf ( "% g seconds from now is" + DateTimeToStr ( DateTimeAdd (x, shift, 1 )) + "\ n" , shift);
printf ( "% g minutes from now is" + DateTimeToStr ( DateTimeAdd (x, shift, in1Minute )) + "\ n" , shift);
printf ( "% g hours from now is" + DateTimeToStr ( DateTimeAdd (x, shift, inHourly )) + "\ n" , shift);
printf ( "% g days from now is" + DateTimeToStr ( DateTimeAdd (x, shift, inDaily )) + "\ n" , shift) ;
printf ( "% g weeks from now is" + DateTimeToStr ( DateTimeAdd (x, shift, inWeekly )) + "\ n" , shift);
printf ( "% g months from now is" + DateTimeToStr ( DateTimeAdd (x, shift , inMonthly )) + "\ n" , shift);
printf ( "% g quarters from now is" + DateTimeToStr ( DateTimeAdd (x, shift, inQuarterly )) + "\ n" , shift);
printf ( "% g years from now is " + DateTimeToStr ( DateTimeAdd (x, shift, inYearly )) + "\ n \ n" , shift);
This is functionally equivalent to the following code: function HMA_AFL (array, period)
{
fast = WMA (array, period / 2 ),
slow = WMA (array, period);
return WMA ( 2 * fast - slow, sqrt (period));
}
- array - array to be smoothed inputArray - The input sequence to be corrected
- coefficients - array of FIR coefficientscoefficients - number of FIR coefficients
- size - number of coefficients (filter_order + 1)size - the number of coefficients (filter_order + 1)
{
result = 0 ;
sumcoeff = 0 ;
for (i = 0 ; i < min (size, BarCount ); i + +)
{
sumcoeff + = coeff [i];
result + = coeff [i] * Ref (input, - size + i + 1 );
}
return result / sumcoeff;
}
coeff [ 0 ] = 1 ;
coeff [ 1 ] = 2 ;
coeff [ 2 ] = 3 ;
coeff [ 3 ] = 4 ;
coeff [ 4 ] = 5 ;
FIR ( Close , coeff, 5 ); / / Another example: FIR Filter with ALMA is considered / / shifted Gaussian coefficents can be implemented as follows: functionALMA_AFL (input, range, offset, sigma)
{
local m, im, s, Coeff ,
m = floor (Offset * (range - 1 )),
s = range / sigma;
for (i = 0 ; i < min (range, BarCount ); i + +)
{
im = i - m;
Coeff [i] = exp (- (im * im) / ( 2 * s * s));
}
return FIR (input, Coeff, range);
}
- Array - the data entry
- range - range lookbackrange - range of lookback
{
count = 0 ;
for (i = 1 ; i <= Periods; i + +)
{
Count + = Data> Ref (Data,-i);
}
return 100 * Count / Periods;
}
- mode = 0 - find exact match, otherwise return nullmode = 0 - to find an exact match, otherwise return null
- mode = -1 - find exact match, otherwise return nearest predecesor (past last bar is if it will return a datetime value last bar)mode = -1 - to find an exact match, otherwise the nearest predecesor (datetime the last bar of the previous bar, the value of past returns) return
- mode = -2 - find exact match, otherwise return nearest predecessor EXCEPT the very last bar (last bar if past is searched, it will return a datetime Null)mode = -2 - to find an exact match, otherwise the closest ancestor of the last bar EXCEPT (called datetime the last bar will return to the past while she is empty) return
- mode = 1 - find exact match, otherwise return nearest successor (first bar, it will return if before first bar is datetime value)mode = 1 - find an exact match, otherwise the nearest successor (the first bar before the first bar returns datetime) return
- mode = 2 - find exact match, otherwise return nearest successor EXCEPT the very first bar (first bar before if it is searched, will return a datetime Null)mode = 2 - find an exact match, otherwise the closest successor to the first bar EXCEPT (datetime sought before the first bar is empty it will return to) return
Title = "Close value at (or before)" + InputDate + "is" + Lookup ( Close , _DT (InputDate), - 1 );
- Get the value of the first visible array
Indicators
Plot (x, "x" , colorRed )
Plot ( FirstVisibleValue (x), "FVV" , colorGreen )
Plot ( LastVisibleValue (x), "lvv" , colorBlue );
- Get value of last visible array
- Get the value of the series last visible
SYNTAX
Plot (x, "x" , colorRed )
Plot ( FirstVisibleValue (x), "FVV" , colorGreen )
printf ( "GICS (2) =" + GicsID ( 2 ))
for (i = 10 , i < 90 , i + = 1 )
{
gics_code = StrFormat ( "% 02.0f" , i);
printf ( "In Gics" " + gics_code + "=% S \ n" , InGics (gics_code) );
- mode = 0 - returns a string containing GICS code alone (such as the "15,103,020")mode = 0 - solo GIC returns a string containing the code ("15,103,020", etc.)
- mode = 1 - returns a string containing GICS category name (such as the "Paper Packaging")mode = 1 - GIC category name (for example, "Paper and Packaging", etc.) returns a string containing
- mode = 2 - returns a string containing both code and name (such as the "15,103,020 Paper Packaging")mode = 2 - code and name ("15,103,020 Paper and Packaging", etc.) and returns a string containing
printf ( "GICS (1) =" + GicsID ( 1 ));
printf ( "GICS (2) =" + GicsID ( 2 ))
for (i = 10 , i < 90 , i + = 1 )
{
gics_code = StrFormat ( "% 02.0f" , i);
printf ( "In Gics" " + gics_code + "=% S \ n" , InGics (gics_code) );
This work is carried out, scripts, such as document files using landing provides the associated editors
If the function succeeds, returns a value greater than 32.
If the function fails, an error value indicates the cause of failure.
FUNCTION

