FX Line Assistant
- ユーティリティ
- Lee Teik Hong
- バージョン: 1.15
- アップデート済み: 20 4月 2026
- アクティベーション: 20
FX Line Assistant - Professional EA Description
Overview
FX Line Assistant is a semi-automated Expert Advisor that bridges the gap between manual analysis and automated execution. The trader draws key levels directly on the chart — Entry, Stop Loss, TP1, and TP2 — using colored horizontal lines. The EA reads these levels, monitors price action in real time, confirms entries with multi-pattern candlestick recognition, and executes trades automatically with full trade management (break-even, trailing stop, and split take-profit). A polished draggable on-chart panel provides live status and one-click manual controls.
It is designed to work as a companion to the "FX Analysis" indicator suite, detecting TradeSetup_ objects drawn by companion indicators and automatically displaying a Trade Setup popup with hit rates, Fibonacci zones, and risk/reward visualization.
Core Functionality
How It Works
- Draw your levels — Place horizontal lines (or near-flat trend lines) on the chart using four designated colors:
- DeepSkyBlue → Entry zone
- LimeGreen → TP2 (final target)
- DarkOrange → TP1 (partial target)
- Red → Stop Loss
- EA scans automatically — The EA detects lines by color every bar and on every drag event, deriving trade direction (BUY/SELL) from the relative position of SL and TP vs. Entry.
- Zone check — Price must enter the corridor between Entry and TP1 (strictly inside).
- Candlestick confirmation — With RequirePattern=true , the EA only fires on confirmed 3-candle reversal patterns aligned with the trade direction.
- Execution — The EA places a market order (single or split lot) with SL and TP set. Trade management then runs automatically.
Key Features
Entry & Execution
- Color-coded horizontal line scanning
- Intelligent direction detection from level geometry
- Entry zone tolerance (configurable in pips)
- Session filter (hour-of-day trading window)
Candlestick Pattern Recognition (10 patterns)
- Bullish/Bearish Engulfing
- Hammer / Shooting Star
- Morning Star / Evening Star
- Tweezer Bottom / Top
- Three White Soldiers / Three Black Crows
- Three Inside Up / Three Inside Down
- Harami (optional)
- Dragonfly / Gravestone Doji (optional)
- 3-Bar Reversal (1 bull + 2 descending bear candles)
- Optional: also checks forming (open) bar
Money Management
- Fixed lot size (default) OR risk-based position sizing
- Risk% calculated on Balance or Equity
- Min/Max lot size clamps
Split Take-Profit
- Configurable TP1 ratio (default 50% of position at TP1, 50% at TP2)
- UseTP1Only mode: close entire position at TP1
- Disable split: entire position runs to TP2
Trade Management
- Break-even: moves SL to entry + buffer after partial profit
- Trailing stop: activates after configurable distance, steps at configurable interval
On-Chart Panel (draggable)
- Live: Zone status, detected pattern, detected 3-candle signal
- Current levels: Entry, TP1, TP2, SL (pip distances)
- Open P&L and trade count
- Buttons: BUY, SELL, Close (symbol), Close (all), Draw Levels, Minimize
- Panel can be dragged to any position by clicking the header
Auto Level Drawing
- "Draw Levels" button auto-places SL/Entry/TP1/TP2 lines from recent swing pivots
- Lines can be hidden/shown without deleting (positions are preserved)
- Dragging any line on chart immediately syncs levels back to the EA
Trade Setup Popup (companion integration)
- Detects TradeSetup_ objects from "FX Analysis" indicator
- Displays: TP2/TP1/SL hit rates (90-day), average TP2 pips, Fibonacci zone (38.2%, 50%, 61.8%), proportional Risk/Reward bar with pip labels
- Reads VolAnalyzer_Label_ objects for additional hit-rate data
- Popup auto-positions next to main panel and rebuilds on every change
Pattern Info Panel
- Inline educational popup showing detected 3-candle pattern name and direction
