Hey fellow traders! If you're looking to boost your trading strategy, let me introduce you to an exciting system based on the MA Rounding Candle indicator. This system is designed to adapt your trade volume based on the performance of your previous trades, giving you a smart way to manage risk while maximizing profit potential.
The beauty of this trading system is how it generates signals. It waits for a bar to close and checks if there's been a trend change, which is indicated by a shift in candle color. Simple, yet effective!
Managing Trade Volumes
To help you fine-tune your trading approach, the Expert Advisor (EA) comes with a customizable block of input variables for managing the volume of your open positions:
input uint BuyTotalMMTriger=5; // Last 5 Buy trades to calculate stop loss input uint BuyLossMMTriger=3; // Losing Buy trades to reduce volume input uint SellTotalMMTriger=5;// Last 5 Sell trades to calculate stop loss input uint SellLossMMTriger=3; // Losing Sell trades to reduce volume input double SmallMM_=0.01; // Position size in case of loss input double MM=0.1; // Normal trading position size input MarginMode MMMode=LOT; // Method for lot value determination
With these settings, if you have three losing trades in the last five, the EA will open the next trade in the same direction with a volume of 0.01 lots. If you have fewer than three losses, the volume will be 0.1 lots. This way, you can stay in the game without risking too much!
Getting Started
For the EA to run smoothly, make sure you have the compiled files for the indicators MA_Rounding.ex5 and MA_Rounding_Candle.ex5 in your <terminal_data_directory>\MQL5\Indicators folder.
During testing, default input parameters with stops were used, and the results were promising. Check out the examples of trades generated by the system:

Fig. 1. Examples of trades on the chart
Testing Results on GBPJPY
Here’s a snapshot of the testing results for GBPJPY on the H1 timeframe throughout 2017:

Fig. 2. Test results chart
Related Posts
- Creating an Expert Advisor for Dark Cloud Cover and Piercing Line Patterns with CCI Confirmation
- Mastering the Moving Average EA for MetaTrader 5: A Trader's Guide
- Harnessing MQL5 Wizard for Trading Signals: 3 Black Crows & 3 White Soldiers with MFI
- Mastering Trading Signals with MQL5 Wizard: Bullish and Bearish Engulfing Strategies
- Harnessing MQL5 Wizard for Bullish and Bearish Harami Signals with CCI Confirmation