Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Exp_wajdyss_Ichimoku_Candle_MMRec - MetaTrader 5 Expert

author EAcpu | 2 reads | 0 comments |

Exp_wajdyss_Ichimoku_Candle_MMRec - expert for MetaTrader 5

Exp_wajdyss_Ichimoku_Candle_MMRec - expert for MetaTrader 5

Add input EA variable block for managing the trading volume of the opened position:

 Input unit buying loss MMTriger= 2 ; // Reduce the number of loss buying transactions of MM
Input unit selling loss MMTriger= 2 ; // The number of loss selling transactions is reduced by MM
Enter double the small MM_= 0.01 ; // The share of financial resources that is the margin used in the transaction when a loss occurs
Enter double MM= 0.1 ; // Under normal trading conditions, the share of financial resources used in the transaction is the margin
Enter the margin mode MMMode=LOT; // Lot calculation method

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.

In order for the generated EA to run correctly, the compiled wajdyss_Ichimoku_Candle.ex5 indicator file should be located in the <terminal data directory>\MQL5\indicator folder.

The default Expert Advisor input parameters with stop loss were used during the test as shown below.

Exp_wajdyss_Ichimoku_Candle_MMRec - expert for MetaTrader 5

Figure 1. Example of trade on chart

2017 AUDUSD H2 test results:

Exp_wajdyss_Ichimoku_Candle_MMRec - expert for MetaTrader 5

Figure 2. Test result graph


Attachment download

📎 tradealgorithms.mqh (229.96 KB)

📎 wajdyss_ichimoku_candle.mq5 (12.17 KB)

📎 exp_wajdyss_ichimoku_candle_mmrec.mq5 (13.43 KB)

Source: MQL5 #21612

Verification code Refresh