Manual Trendline and channel auto buy sell
- Indicatori
- Versione: 1.40
- Attivazioni: 5
Product name
Manual trendline and trendline Channel auto buy sell signal
Trendline & Channel Signals · Trendline Break & Channel Alerts
Short description
Turns the trend lines and channels you draw into Buy/Sell arrows, exit marks and alerts. Closed-candle entries, any symbol, any timeframe.
Shorter version, if the field is tight: Turns your hand-drawn trend lines and channels into Buy/Sell arrows, exit marks and alerts.
Full description
Overview
Channel Trendline Signals reads the trend lines and channels you draw on the chart and turns them into clear trading signals. You stay in charge of the analysis, because you decide where the lines go. The indicator watches them on every new candle, marks entries and exits on the chart and sends alerts, so you don’t have to sit in front of the screen waiting for price to reach your levels.
Nothing new to learn on the drawing side: use MetaTrader 5’s standard Trend Line and Equidistant Channel tools. Attach the indicator, draw, and the signals start to appear.
What you get
- Channel signals. Draw a channel and get an entry when price rejects the near line and an exit mark when it reaches the far line.
- Single trend line signals. Draw one line and get a signal when price breaks it. Enter on the break itself, on the retest, or on both.
- Automatic channel recognition. Two ordinary trend lines that look like a channel are paired automatically. Hand-drawn lines with different angles are fine.
- Alerts. Popup, push notification and email, once per bar per signal type.
- On-chart readout. The top-left corner shows how every line was interpreted, so you see at once whether the indicator read your drawing the way you intended.
- Any market, any timeframe, any number of lines. No DLLs, no external files.
Who it is for
- Traders who draw trend lines and channels by hand and want rule-based arrows and alerts on them.
- Channel, price-action and trend-line-breakout traders.
- Anyone who watches several charts and wants to be told when price reacts to a line.
Signals at a glance
- Buy arrow (green, up). Rising channel: a candle touches the lower line and closes back above it. Falling single line: a candle closes above the line.
- Sell arrow (red, down). Falling channel: a candle touches the upper line and closes back below it. Rising single line: a candle closes below the line.
- Close Buy (blue X). Rising channel: price reaches the upper line, or the channel breaks down against the trade.
- Close Sell (orange X). Falling channel: price reaches the lower line, or the channel breaks up against the trade.
How channel signals work
A channel is either an Equidistant Channel object or two trend lines that look like one: they run in the same direction, overlap in time, do not cross and are at least about 0.8 ATR apart. The angles do not have to match.
Signals follow the direction of the channel:
- Rising channel: buy the dips. BUY when a candle touches the lower line and closes back above it (by default as a bullish candle). CLOSE BUY when price reaches the upper line or, optionally, when a candle closes below the lower line by the break distance.
- Falling channel: sell the rallies. SELL when a candle touches the upper line and closes back below it (by default as a bearish candle). CLOSE SELL when price reaches the lower line or, optionally, when a candle closes above the upper line by the break distance.
- Horizontal Equidistant Channel. Treated as a range: buys at the lower line, sells at the upper line.
Each channel keeps its own virtual position, so you get one entry and one matching exit mark instead of a new arrow on every touch. If the two lines cross or the channel becomes too narrow, it is no longer read.
How single trend line signals work
Any trend line that is not part of a channel is treated as a single line.
- Falling line (a downtrend line above price): BUY when a candle closes above it.
- Rising line (an uptrend line below price): SELL when a candle closes below it.
- Flat line: works in both directions.
A break means a candle closes beyond the line by a small ATR-based distance (0.10 ATR by default), after price has previously closed on the other side of the line. Candles that only touch the line are ignored.
Choose when the arrow is printed with Single line: entry on:
- Break (default): the arrow appears on the candle that closes beyond the line.
- Retest: the arrow appears only after price has moved away from the line, come back to it and failed to close back through it within a set number of bars. Fewer signals, with an extra confirmation step.
- Break + Retest: arrows on both the break and the retest.
By default a falling line gives only BUY signals and a rising line only SELL signals. Set Single line: which breaks count to Any break if you want a BUY for any close above a line and a SELL for any close below it, whatever its slope.
Quick start
- Attach Channel Trendline Signals to a chart.
- Draw with the standard tools: one Trend Line for single-line signals, or two Trend Lines (or one Equidistant Channel) for channel signals.
- Signals appear as candles close, and alerts fire at the same time.
- Check the readout in the top-left corner to confirm how each line was read, for example Channel (rising): Line A + Line B or Trend line (falling): Line C -> BUY on break up [break] .
Drawing tips:
- Anchor your lines on swing highs and lows as you normally would. Lines are extended to the right automatically.
- For a channel, draw the two lines in the same direction so that they overlap in time without crossing.
- To keep other drawings out of the signals, set a name prefix and give your signal lines names that start with it.
- To treat every trend line as a single line, with no channel pairing, turn off Channels.
Input parameters
Default values are shown in brackets.
Which drawn objects to use
- Channels (true): read channels, meaning two trend lines that form a channel or Equidistant Channel objects. Turn off to treat every trend line as a single line (Equidistant Channels are then ignored).
- Single trend lines (true): read trend lines that are not part of a channel.
- Only objects whose name starts with (empty = all): read only objects whose names start with this text.
- Extend lines to the right (true): project lines to the right even if “Ray right” is off. When off, a line without “Ray right” is read only along its drawn segment.
- Max bars scanned back (5000): how much history is scanned.
- Show on the chart how each line was read (true): the top-left readout.
Signal rules
- ATR period (14): ATR used for every tolerance, so the settings adapt to any symbol and timeframe.
- Touch tolerance (x ATR) (0.15): how close to a line counts as a touch.
- Touch tolerance in points (0): fixed tolerance in points. 0 = use ATR.
- Rejection candle must close in signal direction (true): channel entries and single-line retest entries need a candle that closes bullish for Buy or bearish for Sell.
- Channel CLOSE: fire as soon as price touches the far line (true): close marks appear in real time. Turn off for closed-candle exits only.
- Channel CLOSE: also if the channel breaks against the trade (true): also close when a candle closes beyond the near line by the break distance.
- Break = candle closes beyond a line by (x ATR) (0.10): the break distance. Raise it to filter out weak breaks.
- Single line: entry on (Break): Break, Retest or Break + Retest.
- Single line: which breaks count (By slope): By slope or Any break.
- Single line, retest only: price must move away from the line by (x ATR) first (0.30).
- Single line, retest only: max bars from break to retest (20).
Alerts
- Popup alert (true).
- Push notification (false): requires your MetaQuotes ID in Tools → Options → Notifications.
- Email (false): requires email settings in Tools → Options → Email.
Important notes
- Repainting. Entry signals are calculated on closed candles only, so an entry arrow is not created or removed in the middle of a candle. The indicator always reads the current position of your lines, so if you move or edit a line, the history is re-evaluated against the new position and signals change accordingly. Close marks can appear in real time when price touches the far line (this can be switched off).
- Refresh. After you draw or change a line, signals update on the next incoming tick.
- Supported objects. Trend Line and Equidistant Channel in the main chart window. Other tools such as Andrews’ Pitchfork, regression channels or Fibonacci channels are not read.
- Your lines decide the signals. The indicator does not draw lines for you and does not predict price. It applies fixed rules to the lines you draw.
- No trading. This is an indicator. It does not open or close orders.
- Buffers. 0 = Buy, 1 = Sell, 2 = Close Buy, 3 = Close Sell. Empty where there is no signal.
FAQ
Does it repaint? See “Repainting” above: entries use closed candles, and nothing changes on its own unless you move a line.
Which symbols and timeframes? All of them.
Can I use several lines and channels on one chart? Yes. Lines that look like a channel are paired automatically and the rest are read as single lines.
A line gave no signal. Why? Check the top-left readout first to see how the line was read. For single lines, the candle must close beyond the line by the break distance after price was on the other side, and with the default setting a falling line can only give BUY and a rising line only SELL. For channels, the lines must not cross and must be at least about 0.8 ATR apart.
Can I get alerts on my phone? Yes. Enable Push notification and set up your MetaQuotes ID in the terminal.
Risk warning
Trading leveraged products involves a high risk of loss and is not suitable for everyone. The indicator applies fixed rules to lines you draw; it cannot know whether your analysis is right, and its signals do not guarantee profit. Test on a demo account first and always use risk management.
