Showing posts with label Amibroker. Show all posts
Showing posts with label Amibroker. Show all posts

Saturday, 18 February 2012

Amibroker 5.5


CHANGES FOR VERSION 5.50.4 (as compared to 5.50.3)
  1. New Analysis: “Show arrows for actual trades” sometimes used date range from old AA. Fixed
  2. New Analysis: Individual backtest – custom metrics columns would not appear if very first symbol under test does not generate ANY trades. Fixed.
  3. UI: when you float a maximized MDI window it becomes little smaller so it does not overlap MDI tabs.
  4. Print/Print Preview: circle/arc/rectangle objects outside current view are properly clipped on printouts
  5. New Analysis: When user cancelled optimization in the middle and ran backtest afterwards then this single follow up backtest could be incorrect and required another run to produce correct result again. Fixed.
  6. When timeshift != 0 then duplicate range markers could appear at day boundary. Fixed.
  7. Small rounding issue in ray drawing fixed
  8. When multiple chart panes were using SetForeign on rare occassions foreign call could fail (return other symbol data) Fixed.

Thursday, 26 January 2012

> Amibroker AFL writing



Simple Amibroker Formula Language (AFL) (Ver.2)

Sample chart enclosed

Sample Chart selected with the following
Price Style             : Average
Order Type           : Point And Figure
Candle/Bar color   : Yellow
Background           : Teal
Top                       : Red
Bottom                  : Blue
Title Back Ground : Dark Blue

The following AFL is to combine Price Style, Order Type,Top color-Bottom color(Background color) and Title Back ground color.

By price style I mean Open,High,Low and Close with Average,Volume and Open Interest(OI)
By order type I mean Line,Candle,Bar,Histogram,Staircase,Swing Dots etc.
By Color type I mean you can use your custom and default colors in Amibroker.

There are three different AFLs for the above functions but i have combined all the above
three in a single AFL.


_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
fld=ParamField("price Style",-1);
stl=ParamStyle("Order Type", defaultstyle=styleBar,mask=maskAll);
Plot( fld, "", ParamColor("Candle/Bar Color", colorWhite),stl);
SetChartBkColor( ParamColor("Background", colorBlack) );
Topcolor=ParamColor("Top", colorBlack);
Bottomcolor=ParamColor("Bottom", colorBlack);
Titlebkcolor=ParamColor("Title Background", colorBlack);
SetChartBkGradientFill( Topcolor, bottomcolor, titlebkcolor);
_SECTION_END();

Small note to apply AFL : Copy the above indicator - Open file editor
it looks almost like notepad  and Paste the text in the window
and hit apply or insert indicator.

Wednesday, 25 January 2012

> Amibroker AFL writing


Simple Amibroker Formula Language (AFL) (Ver.1)

The following AFL is to combine Price Style, Order Type and color.

By price style I mean Open,High,Low and Close with Average,Volume and Open Interest(OI)
By order type I mean Line,Candle,Bar,Histogram,Staircase,Swing Dots etc.
By Color type I mean you can use your custom and default colors in Amibroker.

There are three different AFLs for the above functions but i have combined all the above
three in a single AFL.

The code as follows :

_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
fld=ParamField("price Style",-1);
stl=ParamStyle("Order Type", defaultstyle=styleBar,mask=maskAll);
Plot( fld, "", ParamColor("Color-1", colorWhite),stl);
_SECTION_END();