PE – Composites Update

At your first use, you have to set up your reference market to calculate a relative strength indicator. Please open the file PE – Configuration.afl with the editor.

Inside the formula you will find the following lines at the top of the file, which defines the default market: 

//|--------------------------------------------------------------
//|SECTION 1 - Composite indicator settings
//|--------------------------------------------------------------
def_CompMarket = "^DJI";
//|--------------------------------------------------------------

Just change it to your desired market. While changing the market through the parameter window is possible, we recommend to set it up in the code. Also, each market should be assigned to a sector and industry in the AmiBroker symbol information settings.

After setting up the composite base market, you have to open the tool called “Composite update” in AA and scan your desired symbols to calculate the composite indicator. While it is recommended to scan all symbols, you could also scan a watchlist as long it includes your reference market.