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

N Trades per Group Martingale - MetaTrader 4 Expert - MT4/MT5 Resources

author EAcpu | 2 reads | 0 comments |

N trades per set Martingale - expert for MetaTrader 4

N trades per set Martingale - expert for MetaTrader 4

N trades per set Martingale - expert for MetaTrader 4

N trades per set Martingale - expert for MetaTrader 4

N trades per set Martingale - expert for MetaTrader 4

N trades per set Martingale - expert for MetaTrader 4

The EA executes a set of N trades and then:

If all trades continue to lose money, the EA will scale up and reset later

There have been all consecutive winning sets.

Set size is set by parameter (N_trades_per_set)

If any other lower number of consecutive wins or losses occurs for each group, the EA will not change the lot size, but just with the same lot size as the previous group.

The idea is to increase the N_trades_per_set amount to make the EA safer.

Try testing on the strategy tester with N (for example 3) and if the EA fails, increase this number.

It depends on the currency pair and the take profit and stop loss ratio.

A TP and SL of 50 points (4 digit points) would be a good starting point. 100 may work well too.

The scale factor is the martingale scale, for example. 2x

Equity/100 000 is the initial lot size, for example. $1000/100 000= 0.01 and $3000/100 000= 0.03 etc.

N trades per set Martingale - expert for MetaTrader 4

USDJPY backtest does not close equity control points

N trades per set Martingale - expert for MetaTrader 4

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Second EA file: N trades per group of martingale + closing and resetting when equity increases:

Additional parameters added. The EA looks more consistent and stable than the version without closure.

Default setting is equity +10 (if equity is $10 more than previous highest equity, trade is closed and reset)

N trades per set Martingale - expert for MetaTrader 4

Backtesting of USDJPY Standard Setup Nitrogen Per Set Martingale Trading + Closing and Resetting on Equity Increase 2016 to 2019


Attachment download

📎 n_trades_per_set_martingale.mq4 (345.81 KB)

📎 n_trades_per_set_martingale_7_close_and_reset_on_equity_increase.mq4 (358.72 KB)

Source: MQL5 #27085

Verification code Refresh