Download MetaTrader 5

Watch how to download trading robots for free

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

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


Close Flat Channel - indicator for MetaTrader 5

| English Русский 中文 Español Deutsch 日本語 Português

votes: 12
2012.12.06 07:54
2016.11.22 07:32

Algorithm for calculation:

  1. Find the highest and the lowest closing price for the stated period and check whether they located within the boundaries of the range specified.
  2. If point 1 is claimed, find the highest and the lowest price value for a period, add / subtract padding and draw the boundaries of the channel.
  3. If "Consider previous boundaries" parameter is true, previous channel boundaries will be considered, if there was such a channel on the previous bar.

CloseFlatChannel (InpTakePrev = true)


  • The indicator was created to determine the levels for placing stop orders on the breakthrough of a flat.
  • It should be considered that if the distance between the closings on large timeframes will be too low, the indicator may not display anything because simply will not find appropriate situations.

Translated from Russian by MetaQuotes Software Corp.
Original code:

High Low Flat Channel High Low Flat Channel

Defines the boundaries of flat channel based on bars extremums

Exp_BuySell Exp_BuySell

The trading system based on the signals taken from the BuySell semaphore, signal, trend indicator


Larry Williams' the Percent Range indicator drawn in the zigzag form. The indicator can be calculated and set in a fixed timeframe.

iAlligator_HTF iAlligator_HTF

The Alligator of Bill Williams drawn in the zigzag form. The indicator can be calculated and set in a fixed timeframe.