Sunday, February 24, 2013

How to Add foreign Bought and Sell on Amibroker

If you have successfully installed and feed your amibroker the best next move is to add foreign buy/sell.


The steps below will walk you though on how to do it.

First open the amibroker.

1.0 upper lift corner on the amibroker environment there is a slide bar name "Chart" see picture below


1.1 next step is to right click any folder on that side bar.
But for this example we will use the folder "Bands"

1.2 Put the cursor on "New", a side options will appear that is Formula and Folder.

1.3 click "Formula" and rename that new folder to foreign buys.

1.4 double click that new formula which has now have the name "foreign buys"
A new tab below will appear like the screen shoot below.

  
 1.5 right click that new tab and option will appear.

1.6 navigate or locate "Edit formula" click that edit formula.
A new window will appear which has a name [Formulas\ Custom\foreign buys.afl] - Formula Editor
Just like the image below.



1.7  the formula below will be paste to the empty new window
_SECTION_BEGIN("Foreign Buy");
Plot( OI, _DEFAULT_NAME(), IIf( OI > O, ParamColor("Up Color", colorGreen ), ParamColor("Down Color", colorRed ) ), ParamStyle( "Style", styleHistogram | styleThick, maskHistogram ) );
_SECTION_END();

1.8 Close the window where you paste the formula.
 The query will ask you if you want to save changes click "Yes".

Your amibroker should now look like this.



See the new tab now has historical foreign bought and sell.


Congrats!






1 comment: