Loading…

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

SettingDefaultWhat it does
Dot count20How many recent closed trades to show
Magic filter-1Only count trades with this magic number, -1 = all
Breakeven epsilon0.01Net P/L (account currency) within this of zero counts as breakeven
Offset x10Pixel offset of the leftmost dot from the chosen corner
Offset y20Pixel offset of the dot row from the chosen corner
Spacing pixels14Horizontal spacing between dot centres
Sample seconds5How often trade history is rescanned
Colour winclrLimeGreenDot colour for a winning trade
Colour lossclrCrimsonDot colour for a losing trade
Colour breakevenclrSilverDot colour for a breakeven trade

How to install

  1. Download the ZIP from your PolyMaria library and unzip it.
  2. In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Indicators.
  3. Copy the .mq4 file(s) there. Put any .mqh files in MQL4 → Include.
  4. Open the .mq4 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
  5. Drag the indicator from the Navigator onto a chart and adjust the settings.

Download the PDF guide

Tags: Trading Sessions · Trailing Stop & Break-even · MT4 Indicator · MQL4 Source Code

MetaTrader 4 & 5 indicators · PolyMaria