ChannelPattern MetaTrader script is a simple tool to draw customizable breakout entry and exit levels based on a channel chart pattern. It is available both for MT4 and MT5. ChannelPattern script was developed to be used in combination with the Channel Pattern Helper EA but can also be used without it.
Sometimes, a trader would need to work with channel pattern breakout setups. Such setups can be based on all sorts of channel — descending, ascending, or horizontal. Usually, such setups share some common traits:
Each one has the main pattern — a channel.
Each has two entry lines for channel breakouts. The upper one is located at the upper border plus 10% of the channel's height. The lower one is located at the lower border minus 10% of the channel's height.
Each has two target lines. Similar to entry lines, they are placed at 100% of the channel's height away from the border lines.
To avoid doing all these calculations and then placing the chart objects in MetaTrader manually, you can use the handy ChannelPattern script presented here.
For it to work, all you need to do is to place the initial Border channel, name it "Border", and run the script. It will do all the calculations and place the 10%/100% channels completely by itself.
Additionally, the ChannelPattern script is very customizable and can even draw Entry/TP levels as trendlines on a chosen side of the Border channel. By default, it will draw two channels (Entry and Take-Profit) around the given Border channel. If the input parameter Sides is set to Upper or Lower instead of Both, the script will draw trendlines on a selected side only. This may help when you only expect a breakout from that particular side.
BorderName (default = "Border") — the name of the border channel to work with.
EntryName (default = "Entry") — the name of the resulting entry channel to set.
TPName (default = "TP") — the name of the resulting take-profit channel to set.
PercentageEntry (default = 10) — the distance from border to entry in percentage points of the channel's height.
PercentageTP (default = 100) — the distance from border to take-profit in percentage points of the channel's height.
EntryColor (default = clrTurquoise) — the color for entry objects.
TPColor (default = clrLimeGreen) — the color for take-profit objects.
EntryStyle (default = STYLE_DASH) — the line style for entry objects.
TPStyle (default = STYLE_DASH) — the line style for take-profit objects.
Sides (default = Both) — if set to Both, draws channels on both sides of the given channel; if set to Upper, draws trendlines for bullish breakout; if set to Lower, draws trendlines for bearish breakout.
UpperBorder (default = "UpperBorder") — the name of the upper border trendline object when the channel is set using trendline chart objects.
LowerBorder (default = "LowerBorder") — the name of the lower border trendline object when the channel is set using trendline chart objects.
UpperEntry (default = "UpperEntry") — name for the trendlines object acting as Upper Entry level.
UpperTP (default = "UpperTP") — name for the trendlines object acting as Upper TP level.
LowerEntry (default = "LowEntry") — name for the trendlines object acting as Lower Entry level.
LowerTP (default = "LowerTP") — name for the trendlines object acting as Lower TP level.
To install the script in MetaTrader 4, please follow the instructions below:
Download the script file.
Open the MetaTrader 4 data folder (via File→Open Data Folder).
Open the MQL4 folder.
Copy all the folders from the archive directly to the MQL4 folder.
Restart MetaTrader 4 or refresh the list of scripts by right-clicking the Navigator subwindow of the platform and choosing Refresh.
To install the script in MetaTrader 5, please follow the instructions below:
Download the script file.
Open the MetaTrader 5 data folder (via File→Open Data Folder).
Open the MQL5 folder.
Copy all the folders from the archive directly to the MQL5 folder.
Restart MetaTrader 5 or refresh the list of scripts by right-clicking the Navigator subwindow of the platform and choosing Refresh.
You can also read a more detailed instruction on how to perform the installation.
Use this strategy at your own risk. https://sites.google.com/view/engineer-the-forex/ cannot be responsible for any losses associated with using any strategy presented on the site. It is not recommended to use this strategy on the real account without testing it on demo first.
You can open a trading account with any of the MT4 Forex brokers to freely use the presented here indicator for MetaTrader 4. If you want to use an MT5 version of the indicator presented here, you would need to open an account with a broker that offers MetaTrader 5. If you are with a cTrader broker, then you would need to download the cTrader version of the indicator above.