Lions share ATR Line L
- Experts
- Evgeny Levchenko
- Version: 1.4
- Updated: 29 October 2025
Lions share AtrLine is a trend-following Expert Advisor (EA) for MetaTrader 5. Its strategy is based on the ATR Line indicator, which is constructed using the Average True Range (ATR) indicator and a Moving Average (MA). The EA determines the trend direction when the price breaks the indicator line and uses an additional filter to confirm signals, which helps to eliminate false entries.
Thanks to flexible money management settings, a built-in volatility filter, and a trailing stop, Lions share AtrLine can be adapted to various trading instruments and timeframes.
Key Features
-
Signal Filter: A second, faster Moving Average is used to confirm the entry. A trade is only opened if the signal MA crosses the ATR Line in the required direction, confirming the strength of the trend.
-
Volatility Filter: An additional ATR-based filter is built into the EA. Trading is permitted only if the current market volatility exceeds a set threshold, which helps to avoid periods of low activity. (Absent in the L version)
-
Flexible Money Management:
-
The ability to use a fixed lot size ( Lot_Size ).
-
The option to use a dynamic lot size as a percentage of free margin. (Absent in the L version)
-
-
Built-in Trailing Stop: Automatic movement of the stop-loss to protect profit. The activation and step levels for the trailing stop are set as a percentage of the opening price, making it adaptive.
-
Percentage-Based Stop Loss and Take Profit: The SL and TP levels are set as a percentage of the current price, allowing them to automatically adjust to the instrument's volatility.
-
Trade Configuration: The ability to allow or prohibit sell trades ( Use_Sell_Trade ), which allows the EA to be used only for long positions. (Absent in the L version)
Input Parameters
Parameter | Description |
| MAGIC | A unique number for the Expert Advisor's orders. |
| Use_Sell_Trade | Allow ( true ) or prohibit ( false ) the opening of short positions. |
| FillingMode | Order filling mode (Standard MT5 parameter). |
| Lot_Size | The size of the lot to use (fixed lot). |
| Use_Percentage_Risk | Enable lot calculation as a percentage of free margin. (Absent in the L version) |
| Risk_Percent_Buy/Risk_Percent_Sell | Risk percentage for buy and sell trades. (Absent in the L version) |
| ATR_Period | The period of the ATR indicator for calculating the AtrLine. |
| MA_Period | The period of the main Moving Average. |
| ATR_ratio | The multiplier/coefficient for calculating the AtrLine. |
| Signal_MA_period | The period of the signal Moving Average for signal confirmation. |
| UseAtrFilter | Enable/disable the volatility filter. (Absent in the L version) |
| AtrFilterPeriod | The ATR period for the volatility filter. (Absent in the L version) |
| AtrFilterThreshold | The volatility threshold value for allowing trading. (Absent in the L version) |
| TPB_Percent/SLB_Percent | Take Profit and Stop Loss in percentages for buy trades. |
| TPS_Percent/SLS_Percent | Take Profit and Stop Loss in percentages for sell trades. |
| UseTrailingStop | Enable/disable the trailing stop. |
| BuyTrailingActivationPercent/BuyTrailingStepPercent | Trailing activation and step percentage for buy trades. |
| SellTrailingActivationPercent/SellTrailingStepPercent | Trailing activation and step percentage for sell trades. |
