MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal

Source code library - Expert Advisors, Indicators and Scripts

Forget Outdated Indicators and Buy Latest Ones in MetaTrader Market
To post a new code, please log in or register

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2010.01.26 11:20
Price Channel

Price Channel - indicator for MetaTrader 5

| English Russian Chinese Spanish Portuguese

Views:
2775
Rating:
votes: 11

Description:

The market is often accelerates and decelerates its movements, so it's not easy to draw the straight lines of support and resistance levels.

The Price Channel Indicator draws the price channel, its upper and lower boundaries are determined by maximal and minimal prices for a certain period.

Image:

Price Channel indicator

Price Channel indicator

Translated from Russian by MetaQuotes Software Corp.
Original code: http://www.mql5.com/ru/code/44

Last comments | Go to discussion (2)
Sergey Golubev
newdigital | 19 Jan 2014 at 06:30

Forum on trading, automated trading systems and testing trading strategies

Indicators: Donchian Channel

newdigital, 2014.01.18 07:34

How to use Donchian Channels (adapted from dailyfx article)

  • First find the trend to determine the trend
  • Learn to enter Forex breakouts using Donchian Channels.
  • Channels can be used to trail your stop and lock in profit.

The Forex market is known for its strong trends, which can make trading breakouts of support and resistance levels an effective approach to the markets. To plan for such market conditions, today we will review a three step breakout strategy using the Donchian Channels.

Find the Trend

The first step to trend trading is to find the trend! There are many ways to identify the trends depicted below, but one of easiest is through the use of the 200 period MVA (Moving Average). To begin add this indicator to your chart, and then see if price is above or below the average. This is how we will determine the trend and our trading bias.

Given the information above, traders should look for opportunities to buy the EURJPY in its current uptrend as price is above the average. As well, the AUDNZD pictured below offers selling opportunities since the pair is priced under the 200 period MVA. Once we have this information, then we can plan entry placements for a potential breakout.


Trading Donchian Channels

Donchian Channels are a technical tool that can be applied to any chart. They are used to pinpoint current levels of support and resistance by identifying the high and low price on a graph, over the selected number of periods. For today’s strategy we will be using 20 periods meaning that the channels will be used to identify the 20 day high and low in price.

Since the price of the EURJPY is trading above the 200 MVA, traders will want to identify new entries to buy the pair on a breakout towards higher highs. With our current 20 Day high identified by the Donchian Channels at 145.68 traders can set an entry to buy the EURJPY one pip above this value.


The process of initiating sell positions in a downtrend is exactly the opposite. Again, we will revisit the AUD/NZD Daily graph pictured below. As price is below the 200 MVA, traders will look to sell the pair in the event of price creating a new 20 Day low. Currently that low resides at .8775 and traders can look to initiate new sell positions under that value.


Setting Risk & Trailing Stops

When trading any strategy, setting stops and managing risk should be considered. When using Donchian Channels, this process can be simplified. Remember how our pricing channels (representing the 20 Day high or low), act as an area of support or resistance? In an uptrend, price is expected to move to higher highs and stay above this value. If price moves through the bottom channel, representing a new 20 Day low, traders will want to exit any long positions. Conversely in a downtrend, traders will want to place stops orders at the current 20 period high. This way, traders will exit any short positions upon the creation of a new high.

Traders may also use the Donchian Channels as a mechanism to trail their stop. As the trend continues, traders may move their stop along with the designated channel. Trailing a stop in this manner will allow you to update the stop with the position, and lock in profit as the trend continues.


Sergey Golubev
newdigital | 19 Jan 2014 at 06:31

Forum on trading, automated trading systems and testing trading strategies

Indicators: Donchian Channel

newdigital, 2014.01.18 07:39

After reading this article (above) - you/we can open D1 chart, attached Donchian Channel indicator (see first post of this thread), attach MA with the period 200/method simple.apply to close (this indicator is default one in Metatrader 5) - and we can make some practics (when market will be open). You should have the similar charts after attaching those 2 indicators:



After that - re-read this above article using your Metatrader charts.

That's all news