Popular results
Position Sizer
Calculate risk-based position size directly in your MetaTrader platform and execute a trade in one click or a press of a button.What Is Forex
Learn what Forex is and how it works from this simple explanation.Supertrend
Download the Supertrend indicator for MT4 and MT5 to detect trend changes based on the price action.Position Size Calculator
Calculate your position size based on risk, stop-loss, account size, and the currencies involved. A simple online calculator for quick results.Stop-Out Line Indicator for MetaTrader/cTrader
Stop-Out Line is a Forex indicator that calculates the stop-out price based on all open positions in the current symbol and displays it on your chart as a horizontal line. The indicator is available for MT4, MT5, and cTrader.
You can press
You can choose its refresh frequency and also the line's style and color. It is also possible to turn off the price label's display, leaving only the stop-out line on the chart.
Why use Stop-Out Line indicator?
It is useful to know the price where your existing position will cause the broker to forcefully close all your trades. Some examples of the situations where you might need to see the current stop-out price are the presented below:
- Opening high-risk trades.
- Managing a large portfolio of positions on the same symbol.
- Assessing how deposits and withdrawals affect your account's ability to withstand price movements.
- Preparing martingale setups.
This indicator will calculate the average price of all your positions, it will determine what your net position is, it will calculate how many points the price has to move to reach the stop-out for all your trades, and it will display that price as a line directly in the main chart window.
You can then use this information to assess the danger of holding your current positions or adding more volume to them.
Warning!
Even though the Stop-Out Line indicator takes into account the current profit/loss on trades in other symbols, it cannot predict potential movements in their prices. The calculated stop-out price may shift significantly if there are large positions in other symbols.
Example
The example USD/CAD chart below shows the Stop-Out Line indicator running in MetaTrader 4 with two long trades (1 lot each) and one short trade (0.25 lot). The indicator calculated the stop-out price at 1.3565 based on the available equity, used margin, and the broker's stop-out level. When the USD/CAD rate reaches the calculated price, all else being equal, the broker will initiate the automatic closure of positions, the process known as stop-out.
Download (ver. ver. 1.01, 2025-09-16)
Stop-Out Line indicator for MetaTrader 4 in .mq4
Stop-Out Line indicator for MetaTrader 4 in .zip
Stop-Out Line indicator for MetaTrader 5 in .mq5
Stop-Out Line indicator for MetaTrader 5 in .zip
Stop-Out Line indicator for cTrader in .cs
Stop-Out Line indicator for cTrader in .zip
Discussion
Warning!
You can read our MetaTrader Indicators Tutorial to learn how to install this indicator in your MT4 or MT5 platform.
Do you have any suggestions or questions regarding this indicator? You can always discuss Stop-Out Line Indicator with the other traders and coders in the forum.
Changelog
1.01 - 2025-09-16
- Fixed the point value calculation formula, which could earlier return incorrect values for some trading instruments.