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

Peter Mueller's MQL5 Easy-to-use Hedging Class - MetaTrader 5 Library

author EAcpu | 6 reads | 0 comments |

Easy to use Hedging Class for MQL5 by Peter Mueller - library for MetaTrader 5

Easy to use Hedging Class for MQL5 by Peter Mueller - library for MetaTrader 5

Input parameters :

The code is full of comments, I recommend checking it out if you want to understand everything.

The following features are important:

1 Set parameters :

2 Target profit :

4 Extrusion distance :

8 volumes to be determined :

9 Short Pending Volume :

13 Built from within :

16 Last long price :

17 Last short sale price :

Easy to use Hedging Class for MQL5 by Peter Mueller - library for MetaTrader 5

Easy to use Hedging Class for MQL5 by Peter Mueller - library for MetaTrader 5


Attachment download

📎 hedgeclass.mqh (65.95 KB)

📎 hedgingea.mq5 (6.84 KB)

Source: MQL5 #50358

Peter Mueller's MQL5 easy-to-use hedging class - MetaTrader 5 library usage and screening recommendations

Peter Mueller's MQL5 easy-to-use hedging class - MetaTrader 5 library belongs to MT5 EA related resources. Before downloading or referencing, it is recommended to confirm the platform version, transaction type, time period, whether DLL is required, whether source code is included, parameter description and historical update records.

Both automated trading tools and foreign exchange indicators should first undergo backtesting, simulated account observation, and small capital verification. Pay special attention to spreads, slippages, maximum drawdowns, position opening frequency, stop loss methods, trading periods and broker rules, and avoid direct real-time execution based on titles or short-term profit descriptions.

Verification code Refresh