Trade History Date
- Indicatori
- Versione: 1.0
- Attivazioni: 5
ShowTradeHistory_V2 is a Custom Indicator for MetaTrader 4 (MT4). Its main purpose is to serve as a Trade History Visualizer, automatically mapping your past and current trades directly onto the price chart along with a performance summary panel.
Key Features & Functionalities
-
Trade Entry & Exit Mapping:
-
Entry Marker: Places a text label ( BUY / SELL ) at the exact opening price, showing lot size, entry price, and execution time.
-
Exit Connection Line: Draws a dashed trendline connecting the entry point to the exit point.
-
Green Line: Profitable trades.
-
Red Line: Loss-making trades.
-
-
Pointer Lines: Draws connecting lines from the candlestick to the label to keep the chart clean and legible.
-
-
Flexible Profit/Loss Display:
-
Displays trade results in Points (pips), Currency (monetary value), or Both.
-
-
Open Positions Tracker:
-
Displays ongoing trades directly on the chart, dynamically calculating floating unrealized P&L in real time.
-
-
Summary Performance Panel:
-
Displays an dark-mode analytical box in the top-left corner of the chart featuring key stats:
-
Total Trades: Total count of executed trades.
-
Buy / Sell Breakdown: Number of buy vs. sell positions.
-
Win / Loss Ratio: Count of winning vs. losing trades along with overall Win Rate (%).
-
Total Points/Pips: Aggregate gain or loss in points.
-
-
-
Advanced Filtering & Customization:
-
Date Filter: Specify a start date ( InpStartDate ) to analyze performance over a custom timeframe.
-
Symbol & EA Filtering: Option to isolate the current symbol or filter by a specific Magic Number (useful for Expert Advisor backtesting and monitoring).
-
Visual Customization: Fully adjustable font sizes, colors, line widths, and vertical offset distances ( InpOffsetPoints ).
-
-
Auto-Sync & Broker History Retry System:
-
Includes a built-in timer mechanism during initialization ( g_maxRetries = 15 ) that actively monitors order history sync status from the broker server and redraws objects as data finishes loading.
-
