Outcome Streak Lights
Scrolling through the terminal's own history tab to see whether a recent losing streak is actually a streak, or just one bad trade surrounded by wins, is slower than it should be during a live session. This indicator scans closed-trade history, classifies each of the most recent trades as a win, loss, or breakeven by net profit (profit plus swap plus commission), and draws them as a fixed row of small coloured dots in the corner of the chart, oldest on the left and most recent on the right, alongside a short win-rate summary. Each dot is a single-character Wingdings label rather than a drawn shape, since label objects are pixel-anchored to a chart corner and need no coordinate conversion to stay fixed on screen through scrolling and zooming. Notes and limitations Only market orders (OP_BUY/OP_SELL) are counted; balance/credit adjustments and pending-order cancellations are excluded. The win rate denominator is wins plus losses only - breakeven trades are shown but do not affect the percentage, since including them would understate the trader's actual hit rate on decided trades. History is rescanned from scratch every InpSampleSeconds - fine at the default interval for a typical account's trade volume, but a very large history combined with an aggressively short interval could add unnecessary CPU load; there is no practical reason to set InpSampleSeconds below a few seconds.
Indicator · MT4 · v1.0 · Free
About Outcome Streak Lights
Outcome Streak Lights is an indicator for MetaTrader 4. It has 10 settings, such as Dot count, Magic filter and Breakeven epsilon. MQL source code included.
Files in the download: OutcomeStreakLights.mq4, OutcomeStreakLights.txt.
Settings
| Setting | Default | What it does |
|---|---|---|
| Dot count | 20 | How many recent closed trades to show |
| Magic filter | -1 | Only count trades with this magic number, -1 = all |
| Breakeven epsilon | 0.01 | Net P/L (account currency) within this of zero counts as breakeven |
| Offset x | 10 | Pixel offset of the leftmost dot from the chosen corner |
| Offset y | 20 | Pixel offset of the dot row from the chosen corner |
| Spacing pixels | 14 | Horizontal spacing between dot centres |
| Sample seconds | 5 | How often trade history is rescanned |
| Colour win | clrLimeGreen | Dot colour for a winning trade |
| Colour loss | clrCrimson | Dot colour for a losing trade |
| Colour breakeven | clrSilver | Dot colour for a breakeven trade |
How to install
- Download the ZIP from your PolyMaria library and unzip it.
- In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Indicators.
- Copy the .mq4 file(s) there. Put any .mqh files in MQL4 → Include.
- Open the .mq4 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
- Drag the indicator from the Navigator onto a chart and adjust the settings.
Tags: Trading Sessions · Trailing Stop & Break-even · MT4 Indicator · MQL4 Source Code