FX TrendLine Plug-in for MT4 Expert Advisor Builder
FX TrendLine Plug-in for Expert Advisor Builder: Monitor any TrendLine from any Expert Advisor
The FX TrendLine Plug-in allows any Expert Advisor to detect if one or more manual or automatically drawn trend lines have been broken.The MetaTrader platform has drawing functions that allow you to draw great trendlines, AND a set of MQL functions for managing the lines. But sadly, these MQL Object functions can be very difficult to work with. The FX TrendLine Plug-in allows you to easily create and monitor any trendline on any MetaTrader price chart. As you may know, my Expert Advisor Builder (Visual Traders Studio) is a free-range, drag and drop EA builder. VTS generates MQL code from the drawings that you create. |
![]() VTS MT4 Expert Advisor Builder Plug-in: TrendLine |
Draw your own trendlines or Programatically draw trend lines on demand
I know many traders that meticulously draw trendlines on their charts every Sunday night. Now these guys can build Expert Advisors to watch those lines and open or close trades based on the price action related to their lines.
I also know a number of traders that build trendlines based on price high’s and low’s across different size channels. Sometimes they go 20 bars back, sometimes 50 bars. Depends on the time period, the currency pair and some other “secret sauce”. Now, for the first time, these traders can use an Expert Advisor to build and watch their trendlines.
There are just 2 primary functions that I created that need to be used:
fnDrawTrendLine programatically draws your trendline on any price chart
fnIsTrendLineBroken detects if the price has broken your trendline
There are also a number of helper functions to help you manage your trendlines and other MQL objects.
Need horizontal lines? No problem. These are the same as trendlines and can be managed the same way using the FX TrendLine plug-in. You can create channels, straight channels, even narrowing channels. And all of these lines can be used to open, close or modify a trade in your Expert Advisor.
White Box Code
The MQL code I’ve written to allow you to create and manage trendlines is not that complicated. (Any good programmer could write this code). But working with the MQL object functions can be a little tricky – you need to code and test over and over – it’s not good enough to just read the MQL docs. Also, the math used is kind of interesting. If you remember solving straight line equations on a graph from junior high school (slope, offsets, etc) you may enjoy the code. Anyway, this is all clear-text, white-box. You are welcome to read and/or edit the MQL code at your leisure..
Want more details? Click here to see to the full documentation
Like All of my products, the FX TrendLine Plug-in comes with Two Promises
Free Lifetime Updates: I’m always on the look-out for trend line methods. When I add new options to the FX TrendLine Plug-in, you’ll receive them free of charge. |
![]() |
I personally create all of my own software products and I stand behind them. I offer a 30-day, no-questions-asked money back guarantee on every product. |
Only $79.00 USD