• Overview
  • Reviews
  • Comments (3)
  • What's new

KL TrendLines Buy Sell Close EA

This tool uses three lines - Buy, Sell and Close All Opened Orders (CAOO). With these lines, you can open a new order or close all opened orders exactly on tops or bottoms and in this way increase profits and minimize losses. The CAOO trendline can be used as TP or SL, also it is a perfect line for scalpers that can secure profits disallowing price pullback. KL TLine Buy Sell Close EA does not create pending orders, it sends orders when thr BID price hits Buy or Sell line (in pips range), so "orders" are invisible for broker. You can set a pip range for lines in settings, it is 1 pip by default (for 4 and 5 digit). The CAOO line has protection against accidental activation - changing colors with a calmly sound alert when the price is near the line. This is a perfect tool for Scalpers and Day Traders.

This product exist also as KL TLine Buy Sell Close KLVOM indicator, which works with KL Visual Order Manager EA in order to be on one chart simultaneously. KL TrendLines Buy Sell Close EA is a standalone program with its own order execution and risk calculation. All parameters can be found in settings.

Additional settings in KL TrendLines Buy Sell Close EA

  • Risk - value of the deposit (from 0.1% of Account Balance) needed for calculating the lot size - according to a broker lot step.
  • SL distance in pips - according to it Risk of deposit will be calculated.
  • Default SL distance in pips for a new opened order.
  • Default TP distance in pips for a new opened order.
  • OCO - if set as true, the One-Cancels-the-Other order line.


This EA creates three trend lines in vertical position with description “Sell”, “Buy” and “CAOO sure?”. CAOO means Close All Opened Orders, “sure?” will be explain later with CAOO. Important, when lines are set in vertical position they are inactive and you can move lines safely. In order to act with price they have to be slope or in horizontal position. Visibility of lines is set from M1 to H1 period.

"Buy" or "Sell" line. Using this line is very easy. What you need is to set this line as a trend line and wait when the price (BID, that you see) hits the trendline. After that a new order is opened and trend line is deleted, which means the line is back to default “start” position. Deleting the line is needed to open only one market order. The EA does not create pending orders, it sends orders when the BID price hits Buy or Sell line (in pips range). You can set pip range for lines in settings, it is 1 pip by default (4/5 digit).

"CAOO sure?" line. This line is closing all opened orders on a current chart - buy and sell. The line is acting as lines above and also has protection against accidental activation. The color of the line is red but when the price is approaching its color is changing, first from red to gold, between 10 to 5pips the color is khaki with calm sound alerts, the next is light goldenrod with shorter sound, and finally the price hits the line closing all orders from the current chart. Because of the market execution, for sure this line is not deleted as default for 10 seconds. CAOO sure? is a perfect line for scalpers that can secure profits disallowing pullbacks, it can also be used as SL, TP or tight TS.

"sure?" suffix. This is protection against a price gap. First you need to set the CAOO line above or below the price in this way > relative to price (not <). If everything is set correctly, you can delete the question mark from the description. Now it is a very dangerous tool because it's closing all orders when the price is above that slope \ or below / that slope lines. The distance of the price to the line has no meaning, but only proper side of the line relative to the price level.

Since the description can not be posted in its entirety because of characters limitation, you will find full detailed description on my website http://Klore-FX.eu

For managing lines of EA I am using KL Delete Lines Buy Sell Close script with e.g. Alt+D hotkey that you need to set manually. If you want to hide the lines of KL TLine Buy Sell Close when they are not needed, skip to MN timeframe and press Alt+D. To restore these lines to “start” position on your current timeframe (M1 to H1), use Alt+D again. The EA sends push notifications about orders.

To find out news and updates of all my products visit my profile https://login.mql5.com/en/users/Klore or my website. If you like my products please leave feedback. If you have questions or suggestions, feel free to let me know.

No reviews
Version 1.23 - 2015.04.01
For OCO function. Added function that will replace deleted OCO Order line by CAOO line as TP - see in settings. Very useful in price patterns, channels or with Andrew's pitchfork. For instance, if in price channel Buy trend line will be hit by price, then opposite Sell trend line will be replace by Close line as TP.