Script to Draw Middle Line of a Channel

Enivid

Administrator
Staff member
Nov 30, 2008
18,535
1,355
144
Odesa
www.earnforex.com
A while ago, a user on Reddit asked about a MetaTrader script to automatically draw a middle line for a channel chart object. Now, after wishing to have such a script myself a few times, I decided to finally code it both for MT4 and MT5.

The script's source code and the compiled files are attached to this post and are available for free download.

You can simply run the script on a chart with a channel object named Channel (or anything else, but make sure to change the respective input parameter), and it will calculate the exact points and will create a middle line that bisects the channel.

Bug reports and suggestions are welcome!
 

Attachments

  • ChannelMiddleLine.ex4
    11.6 KB · Views: 8
  • ChannelMiddleLine.mq4
    4.7 KB · Views: 23
  • ChannelMiddleLine.ex5
    18.2 KB · Views: 8
  • ChannelMiddleLine.mq5
    3.7 KB · Views: 15

Saesint2

Newbie
Feb 5, 2023
1
0
1
34
A while ago, a user on Reddit asked about a MetaTrader script to automatically draw a middle line for a channel chart object. Now, after wishing to have such a script myself a few times, I decided to finally code it both for MT4 and MT5.

The script's source code and the compiled files are attached to this post and are available for free download.

You can simply run the script on a chart with a channel object named Channel (or anything else, but make sure to change the respective input parameter), and it will calculate the exact points and will create a middle line that bisects the channel.

Bug reports and suggestions are welcome!
Pls how do I see trend state script results