LineSniper EA
- Utilities
- Cong Nghia Truong
- Version: 1.0
- Activations: 5
LineSniper EA
Draw the line. Let it trade.
What It Does
LineSniper EA automatically executes trades when price touches a trend line you draw on the chart. No complex settings — just draw a line, name it B for Buy or S for Sell, and the EA handles the rest. It supports multiple lines at once and works on any symbol and timeframe.
How to Use
• Draw a trend line on your chart using MT5's built-in tool.
• Name it B (or B1, B2…) for Buy, or S (S1, S2…) for Sell. Lines without B/S are ignored.
• Price enters the touch zone → order fires automatically → line is deleted from the chart.
Two Trading Modes
Single Mode
One trade at a time with fixed TP and SL in points. Clean and simple — ideal for breakout and momentum setups.
DCA Chain Mode
Opens a chain of orders as price moves against the position. Each new order uses Lot(N) = Initial Lot × Multiplier^N. The chain closes when floating profit reaches the configured TP level measured in points from the weighted average entry (break-even price). A dollar-based Max SL protects the entire chain.
On-Chart Panel
All parameters are editable live from the panel — no EA restart needed. The panel shows:
• Mode, Initial Lot, Touch Zone — always visible.
• Single: TP and SL in points.
• DCA: Step, Multiplier, TP (pts from avg entry), Max SL ($).
• Breakeven: auto-moves SL to avg entry after N points of profit (0 = off).
• Status bar: live avg entry, TP target price, and floating PnL during a DCA chain.
• PAUSE / CLOSE ALL buttons for fast manual control.
Parameters
| Parameter | Description |
| Initial Lot | Base lot size for the first entry. |
| Touch Zone (pts) | Distance from line that activates the trigger. Editable on panel. |
| TP / SL (pts) | Take Profit and Stop Loss for Single mode. |
| DCA Step (pts) | Price distance against position to open the next DCA order. |
| DCA Multiplier | Lot growth factor. Lot(N) = InitLot × Mult^N. |
| DCA TP (pts) | Points from weighted avg entry to close the entire chain. |
| Max SL ($) | Total floating loss limit before chain closes. |
| BE Trigger (pts) | Profit needed to move all SLs to break-even. 0 = disabled. |
| Magic Number | Unique order identifier. Change when running multiple instances. |
Notes
• Requires a Hedging account for DCA mode. Single mode works on any account type.
• Attach to each chart separately — the EA only trades the symbol it is placed on.
• Always test on a demo account before going live. Risk management is your responsibility.
LineSniper EA — "Draw the line. Let it trade."
