Exp_Skyscraper_Fix_ColorAML_MMRec - MetaTrader 5 Expert


Added input EA variable block for managing the trading volume of opened positions. For example, for a system with the Skyscraper_Fix indicator applied:
Input unit A_BuyLossMMTriger= 2 ; //Some losing Buy transactions reduce MM Input unit A_SellLossMMTriger= 2 ; //Some losing Sell transactions to reduce MM Enter double A_small MM= 0.01 ; //Margin share in a transaction to prevent loss Enter double A_MM= 0.1 ; //The share of margin in a transaction during normal trading
In the case of such inputs, if the last two trades in one direction were losing, the EA will open the next trade in the same direction with a trading volume of 0.01 lots. If at least one of the last two trades was not a loss, the position is 0.1.
Trading systems using ColorAML can also use similar inputs:
Input unit B_BuyLossMMTriger= 2 ; //B loss buying transaction quantity to reduce MM Input unit B_SellLossMMTriger= 2 ; //B loss selling transaction quantity to reduce MM Enter double B_SmallMM= 0.01 ; // B-share margin in a transaction to prevent loss Enter double B_MM= 0.1 ; //B shares deposited in one transaction
In order for the generated EA to run correctly, the compiled file Skyscraper_Fix.ex5 and the ColorAML.ex5 indicator should appear in <Terminal Data Directory>\MQL5\Indicators .
The input parameters of the default Expert Advisor have been used during testing, as shown below. Stop Loss and Take Profit were not used during testing.

Figure 1. Example of trade on chart
2016 GBPJPY H4 test results:

Figure 2. Test result graph
Attachment download
📎 tradealgorithms.mqh (237.01 KB)
📎 skyscraper_fix.mq5 (23.77 KB)
📎 coloraml.mq5 (15.22 KB)
📎 exp_skyscraper_fix_coloraml_mmrec.mq5 (28.46 KB)
Source: MQL5 #22372
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •