Risk of Ruin reads the closed trades in your account history and tells you the probability of blowing up your account before your edge pays off. A positive expectancy on paper does not stop a losing streak at the wrong size from ending the account, and this script tells you how likely that is on your own trades.
It works by normalising each historical trade to an R-multiple (its net result divided by your average absolute loss), then simulating many hypothetical future runs at a risk-per-trade you choose. In each run it draws R-multiples from your history at random with replacement, compounds the equity trade by trade, and marks the run as ruined if the equity ever falls below the floor you set. The method is independent of the dollar size you traded in history; all that carries over is the shape of your win/loss distribution, and the risk % you set now is what sizes every future trade.

The script on a USD/JPY chart, reading a demo account with 55 closed trades at 1% risk per trade: a 0% chance of hitting the 50% drawdown floor over the next 55 trades, median ending balance +26.8% of start.

The same account at 3% risk per trade instead of 1%: the median ending balance goes to +91.8%, but the 95% range widens from -3.0%..+70.7% to -13.5%..+357.3%. The extra range is almost all extra downside.
The result is printed in the Experts tab of the Toolbox and shown in the top left corner of the chart. The chart you run it on does not matter, because the script reads the whole account history rather than the chart's symbol. Run it again with other settings to replace the text, for example to try a different risk per trade or a different drawdown floor.
A trade is every deal of one position, counted once the position is closed. Its net result is profit plus commission, fee and swap, as recorded in your broker's deal history, so it matches what you were charged. Each trade is then converted to an R-multiple by dividing by the average of your absolute losses: a trade that lost one average loss is -1R, a trade that won twice an average loss is +2R. Deposits, withdrawals and charges booked outside trades are left out, and so are positions that are still open. On a netting account, a position that is reversed counts as one trade.
GDS Renko RSI + MACD 4-Mode Demo EA
An educational MetaTrader 5 Expert Advisor with four RSI and MACD signal modes calculated on completed Renko bricks. Fixed-size Renko is built internally from Bid ticks. No external indicators, DLLs, custom symbols or offline charts are required.
Spread Monitor
Spread Monitor — a simple information indicator for MetaTrader 5.
Prop Firm Guard - daily loss and max drawdown protection
Closes all trades and blocks new ones when your prop firm daily loss or maximum drawdown limit is reached.
Failed Breakout Detector
Marks breakouts of the recent trading range and the breakouts that fail (price closes back inside within a few bars). Closed bars only, alerts, buffers for iCustom.