Setting up the PatternExplorer and AmiBroker
The file PE – Configuration.afl which is located in the Configurations folder contains most default settings like colours, styles, columns, conditions and more. Some styles are really important as they can greatly influence the visual behaviour of the tools when you view charts or lists with dark versus light background. It is therefore recommended to take a look at this file.
Note that during PatternExplorer software updates it might be necessary to overwrite this file with default settings in order to add new functionalities. The setup then makes a copy of your settings and saves it inside the Configurations folder so that you can copy your modifications to the new configuration file.
/// SECTION 3 - Default filter
/// -----------------------------------------------------------------------------------------
def_Filter = 1;
// Any default filter for all tools can be defined here.
// The filter definition will be overwritten when the variable def_Filter is defined in the PE - Extensions file
/// SECTION 7.1 - Automatic analysis row colors
/// -----------------------------------------------------------------------------------------
isDarkListView = false;
// Colors
bullishTextColorOnDarkListView = colorLime;
bullishTextColorOnLightListView = colorGreen;
bearishTextColorOnDarkListView = ColorRGB(255, 110, 110);
bearishTextColorOnLightListView = colorRed;
/// SECTION 21 - Add custom code after PatternExplorer code.
/// -----------------------------------------------------------------------------------------
procedure AddCustomCodeAfterPE()
{
if(FormulaName == "PE - Alert 1 - Price")
{
// AddColumn(H == HHV(H, 20), "H == HHV(H, 20)", 1.0);// Example to add a column after all PatternExplorer columns in PE - Alert 1 - Price.
}
// AddColumn(RSI() < 30, “RSI() < 30”); // Example to add a column to all PatternExplorer columns in all tools.
if(InAA)
{
// AddCandleColumn();
}
AddTextColumn(SectorID(1), "Sector", 1.2, aaTextRowColor);
AddTextColumn(IndustryID(1), "Industry", 1.2, aaTextRowColor);
AddTextColumn(FullName(), "Full name", 1.2, aaTextRowColor);
}
AmiBroker
- Preferences – Charting – Collapse parameter sections (not recommended)
Although it is not recommend by AmiBroker it is useful when a formula contains many parameters like the PatternExplorer formulas do have. The result is a shorter menu where the desired section can be opened. - Preferences – Charting – Turn of Ask for parameters of newly inserted indicators
AmiBroker does not show the parameters of sections when a formula is inserted the very first time. The parameters only appear when the parameter window is opened through a right mouse button click. As we are using sections intensively it is recommend to turn this setting off. - Automatic Analysis
Turn on Autosize columns to fit content
This setting is very useful as it assures that the column is displayed in the necessary width automatically.
