Closing all open trades if all one symbol and one trade direction – script MetaTrader 4

Closing all open trades if all one symbol and one trade direction - script for MetaTrader 4
All open trades must be of same symbol and type, e.g. all GBPUSD and all BUY. This script will close out your position using one large trade to hedge your position then using CloseBy() function to close all trades against the one large trade until all trades are closed. There can be a maximum of … Read more

No Loss EA – No Indicator, No Price Action strategy for MetaTrader 4 – EA MetaTrader 4

No Loss EA - No Indicator, No Price Action strategy for MetaTrader 4 - expert for MetaTrader 4
As most of the indicators available in the market are lagging indicators that provide information after some time. This strategy eliminates the need to rely on indicators, candlestick patterns, chart patterns, or any price action. The EA employs a progressive system that I have been using for the past six months and have backtested for … Read more

pivots calculation based on pine script v4 – indicator MetaTrader 4

pivots calculation based on pine script v4 - indicator for MetaTrader 4
For MQL5 version please click here. pine script v4 function I/O : pivothigh(source, leftbars, rightbars) → series[float] pivotlow(source, leftbars, rightbars) → series[float] This indicator includes two simple functions to calculate the pivotshigh and pivotslow functions based on pine script. The functions can be used as copy and paste snippet in conversion projects from tradingview platform. Note: The … Read more

Bounce Number for Grid/Martingale strategies Lot Sizing/Order Count set – EA MetaTrader 4

Image No. 1
Lot sizing and/or Number of trades for strategies like Grid and Martingale are very important. We always ask about what happened in history of a symbol during range zones and How Many Times price bounced between two price of a Range Zone?! This is what I define as Bounce Number. It can be calculated by … Read more

Relative Price Channel – indicator MetaTrader 4

Relative Price Channel - indicator for MetaTrader 4
MT4 version of original indicator: https://www.mql5.com/en/code/22576Since the MT4 functionality is limited in the methods of drawing indicators, there are no color zones, but their boundaries are in place. Basics: RSI indicator is frequently used in trading decisions coupled with levels checking. Levels are supposed to show if there is overbought or oversold condition. But frequently we … Read more

Candle Gain Candle Loss – indicator MetaTrader 4

Candle Gain Candle Loss - indicator for MetaTrader 4
The indicator can calculate gain/loss in two modes: plain candlestick Close and Open difference, and as difference between current Close and previous Close. You can set minimum change limits (for pips and percentage), change modes, and you can also control font color of the output numbers. The indicator is available for MT4. Displays the gains … Read more

Titik Impas Breakeven MT4 – script MetaTrader 4

Titik Impas Breakeven MT4 - script for MetaTrader 4
The Titik Impas Breakeven MetaTrader script serves as a straightforward tool designed to adjust the stop-loss to the Breakeven Point for one or more positions, based on specified parameters. This script is compatible with both MT4 and MT5 platforms. The Breakeven Point, or Titik Impas, denotes the price level at which a trade’s profit becomes … Read more

Adaptive Volatility Analysis – indicator MetaTrader 4

Adaptive Volatility Analysis - indicator for MetaTrader 4
The AVA (Adaptive Volatility Analysis) Indicator is a tool I’ve developed, primarily for enhancing my own indicators and Expert Advisors (EAs). It’s designed to gauge market price movements with greater precision. Unlike standard indicators that offer a static view of the market, the AVA adapts its analysis based on current market dynamics. This adaptability makes … Read more