Exp_AbsolutelyNoLagLwma_Digit_NN3_MMRec - MetaTrader 5 Expert


Added input EA variable block for managing the trading volume of opened positions. For example, for the first system:
Input unit A_BuyLossMMTriger= 2 ; //Buy transactions with large losses to reduce MM Input unit A_SellLossMMTriger= 2 ; //Some losing sell transactions to reduce MM Enter double A_small MM= 0.01 ; //The share of financial resources used as margin in the event of a loss on the transaction Enter double A_MM= 0.1 ; //Under normal trading conditions, the capital share of the margin used in the transaction
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.
Similar inputs can be used for the second trading system:
Input unit B_BuyLossMMTriger= 2 ; //The number of B loss buying transactions is reduced by MM Input unit B_SellLossMMTriger= 2 ; //The number of B loss selling transactions is reduced by MM Enter double B_SmallMM= 0.01 ; //B's share of financial resources used in margin trading in the event of a loss Enter double B_MM= 0.1 ; //B share of financial resources of the deposit used in the transaction
The C_ prefix is used for input to the third system.
The best option for setting up such an EA is to configure it individually on each trading system and apply appropriate switches to disable the other two systems in the form of the following parameters:
Input Boolean B_BuyPosOpen= True ; //B allows entry into long positions Enter a Boolean value B_SellPosOpen= true ; //B allows short positions to be opened
By setting them to false.
In order for the generated EA to run correctly, the compiled absolute NoLagLwma_Digit.ex5 indicator file should be located in the <terminal data directory>\MQL5\indicators folder.
The default Expert Advisor input parameters with stop loss were used during the test as shown below.

Figure 1. Example of trade on chart
2017 EURJPY H2, H4 and H12 test results.

Figure 2. Test result graph
Attachment download
📎 tradealgorithms.mqh (229.96 KB)
📎 absolutelynolaglwma_digit.mq5 (26.94 KB)
📎 exp_absolutelynolaglwma_digit_nn3_mmrec.mq5 (42.63 KB)
Source: MQL5 #21420
Exp_AbsolutelyNoLagLwma_Digit_NN3_MMRec - MetaTrader 5 Expert Pre-Use Tips
This page has been supplemented with structured instructions, focusing on the purpose of EA source code, MQL4/MQL5 platform compatibility, testing process and risk control. Before downloading or deploying, it is recommended to first determine whether it is consistent with your own variety, cycle and account environment.
Suitable for who to use
- Users who want to quickly screen EA source code and are willing to do simulation disk verification first.
- People who need to compare MT4/MT5 EAs, indicators, scripts or source code projects.
- Traders who wish to record backtests, parameters and risk boundaries before placing a trade.
Testing and risk control suggestions
- First verify the default parameters in the strategy tester or demo account, and then adjust the symbol, period, spread and trading period one by one.
- Scalping, grid, martin, and high-frequency strategies should focus on observing maximum drawdowns, consecutive losses, slippage, and trading frequency.
- It is not recommended to run any document directly on the real disk. At least observe the simulated disk performance for 2-4 weeks first.
FAQ
Can MT4 and MT5 be used interchangeably?
Usually cannot be used directly. EX4/MQ4 corresponds to MT4, EX5/MQ5 corresponds to MT5, and the source code needs to be compiled in the corresponding MetaEditor.
Is this resource guaranteed to be profitable?
cannot. EAs, indicators and scripts can only be used as trading tools, and the results depend on parameters, market environment, spreads, slippage and risk control.
What else can I continue to watch?
Forex EA download , foreign exchange indicator download , EA evaluation , MQL5 CodeBase .
English Search Notes
This page is also optimized for English search intent around Exp_AbsolutelyNoLagLwma_Digit_NN3_MMRec - MetaTrader 5 Expert . Related search terms include: MQL4 source code, MQL5 source code. Test any Forex EA, Expert Advisor, MT4/MT5 indicator, script or MQL source code with historical data and a demo account before live trading.
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •