Loss Streak Card Losing Streak Probability
- Indicatori
-
Keiki Ishii
Independent MQL5 developer from Japan.
I build tools for MetaTrader 5 traders: risk managers, indicators and Expert Advisors.
How I work:
- Every product is tested in the Strategy Tester and on demo accounts (hedging and netting) before release. - Versione: 1.1
- Attivazioni: 5
Loss Streak Card shows how long a losing streak is normal at your win rate, and whether your current streak is inside that range. It has no trade signals and never trades.
Losing streaks come from the win rate itself. At a 35% win rate, a run of 10 losses in a row happens in about 3 out of 4 sequences of 300 trades. At a 70% win rate, 5 losses in a row still happen in more than half of the sequences of 500 trades. Traders who do not expect this often increase the lot after losses. Loss Streak Card puts the numbers on the chart before that happens.
Two ways to get your numbers
-
Account history: your own closed trades, read from the deal history of the terminal. Filter by close date, symbol (one or several, or the chart symbol) and magic number (all, manual trades, or one EA). Profit includes swap, commission and fees.
-
Manual input: win rate, average win, average loss and number of trades. Use it for a system you are about to run, or for the numbers an EA seller publishes.
-
If the history filter finds no closed trades, the panel uses the manual numbers and says so in yellow.
What the panel shows (on the main chart)
-
Win rate (wins / losses / break-even trades), average win and loss, profit factor, expectancy per trade in R (1R = average loss) and in the account currency.
-
Chance of k losses in a row within N trades, for up to 6 streak lengths you choose (default 5, 8, 10, 12, 16, 20). N is your number of trades, or a number you set.
-
Longest streak within N trades: the median and the 95% point.
-
Current losing streak, the chance of a streak at least that long within N trades, and a plain answer: normal (green), long but within the 95% point (yellow), or above the 95% point (red).
-
Longest past streak in your history, colored the same way.
-
FEW TRADES (gray) instead of a verdict when your history has fewer closed trades than the minimum you set (default 30), or no wins or no losses at all. The streak odds are then shown faded for reference, or not at all.
-
Next trade: the loss chance is the same after a streak (in this model).
-
A note on the chart. Default: "Losing streaks are normal at this win rate. Do not increase the lot after losses." You can change it or turn it off.
How it is calculated
Trades are treated as independent, with your loss rate on every trade. The chance of at least one run of k losses within N trades is calculated exactly with a recurrence (no random simulation), so the same inputs always give the same numbers. The median and 95% point of the longest streak come from the same calculation. The method is written out in the user guide.
Alerts (optional)
When a newly closed loss takes your current streak above the red percentile (default 95%), a popup and/or push notification, once per streak.
What it does not do
-
No buy or sell arrows, no signals, no orders. It does not open, close or modify positions.
-
It is not a forecast. It does not make any strategy profitable. It shows what your own win rate implies, so that a normal losing streak is not mistaken for a broken system — and a rare one is noticed.
-
A streak above the 95% point does not prove that something changed; it says that it would be rare if nothing changed.
Main inputs
-
Source: Account history or Manual input
-
Manual input: Win rate (%) / Average win / Average loss / Number of trades / Current losing streak / Longest past losing streak
-
History filter: Closed from / Closed until / Symbols (comma separated, CURRENT = chart symbol) / Magic number (-1 = all, 0 = manual trades)
-
Streak math: Trades N for the probabilities (0 = number of trades) / Streak lengths k / Minimum closed trades to judge the streak (default 30)
-
Colors: Yellow above this percentile (default 50 = median) / Red above this percentile (default 95) / colors
-
Note: text on the panel
-
Alerts: Alert when a new loss takes the streak into red / Popup / Push
-
Panel: corner / X and Y offset / font size / colors
Notes
-
A trade is one closed position. Partly closed positions are counted when they are fully closed. Break-even trades are not losses and end a losing streak.
-
On netting accounts, a reversal keeps the same position, so the trades before and after a reversal are counted as one.
-
The panel shows WAITING until the account data and the history are loaded.
-
In the strategy tester the account has no closed trades, so the panel uses the manual numbers.
Support
Questions and bug reports: send a private message to the seller (Equity Guard Tools) on MQL5.
