=============
Hedge EA Version 4.0
=============
1) Readjust Horizontal Lines = Yes/No
* When this parameter is set on Yes, then the EA will need to readjust the Entry Pending Order, Hedge Entry Order, TP or SL whenever i move any of the Horizontal Lines.
* When this parameter is set to No, then any readjustments made to the Horizontal Lines shouldn't be done, like how the EA is at the moment.
* When this parameter is set from Yes to No, and there was a readjustment done to the Levels then the EA will need to readjust back to the EA settings.
* Now let's say that I've made readjustments by dragging the Horizontal Lines, and now I decide to make changes to the EA setting in real time then the EA will need to readjust the levels again according to the new settings. Now again I decide to make changes to the Horizontal Lines than the EA should continue to make the required changes. so basically I require the EA to be very customisable.
* If the Hedge Entry Order is changed manually then the new Hedge Distance should be applied to all new hedge orders opened for that basket. Unless I change the EA Hedge Distance input settings manually then the EA will need to readjust accordingly.
* Please Note that if the Horizontal Lines of the "Initial / Hedge Order" , "Take Profit" or " Stoploss" are removed the EA should then remove the required function.
======================================================================================================
2) Readjusted Hedge TP and SL Default = Yes/No
When this parameter is set on Yes, and If the Hedge Take Profit or Stoploss Horizontal Lines were readjusted than these changes should apply for all future Hedge Orders in the basket, so for example if i made changes to Hedge Order 1 Take Profit and Stoploss the same pip distance should be used for the remaining Hedge Orders in the basket.
When this parameter is set on No, then the EA should only apply these changes to Hedge Order 1. So therefore Hedge Order 2 will continue to use the Imputed EA settings, unless changed manually again.
When this parameter is set from Yes to No, then the next Hedge Order in the basket should revert back to the EA Input settings. So for example if the next Hedge Order is 4 then the EA must use the Take Profit or Stoploss of Hedge Order 6
* Please Note that this parameter should only work if the "Readjust Horizontal Lines" parameter is set on Yes.
======================================================================================================
3) Initial Stoploss Type =
(i) Pips Amount
(ii) Distance Amount
(iii) Disable Stoploss
4) Initial Take Profit Type =
(i) Pips Amount
(ii) Distance Amount
(iii) Disable Take Profit
5) Initial Stoploss Amount
6) Initial Take Profit Amount
--------------------------------------
7) Hedge Stoploss Type =
(i) Pips Amount
(ii) Distance Amount
(iii) Disable Stoploss
8) Hedge Take Profit Type =
(i) Pips Amount
(ii) Distance Amount
(iii) Disable Take Profit
9) Hedge Stoploss List Amounts
10) Hedge Take Profit List Amounts
--------------------------------------
* I should be able to choose between having the Initial / Hedge Order Take Profit or Stoploss at a specific Pip Amount or at a specific Distance Amount.
* The Distance Amount should be based on the distance between the Initial Orders entry price and the next Hedge Orders entry price, so for example if the distance between the entries is 100 pips and I set the Take Profit distance as 1 than the EA will place the Take Profit as 100 pips.
======================================================================================================
11) Initial Buy Market Order
* When a Horizontal Line is set with a specific text it will remove the previous Buy Initial Pending Orders and make this Horizontal Line as the new and only Initial Buy Pending Order open at the current time.
12) Initial Sell Market Order
* When a Horizontal Line is set with a specific text it will remove the previous Sell Initial Pending Orders and make this Horizontal Line as the new and only Initial Sell Pending Order open at the current time.
======================================================================================================
13) Initial Candle Close Buy Order
* When a Horizontal Line is set with a specific text it will it should replace it with a Initial Pending Order Horizontal Line and than place a Buy Market Order only once the first candle that closes above or below the horizontal line, this should only happen once.
14) Initial Candle Close Sell Order
* When a Horizontal Line is set with a specific text it will it should replace it with a Initial Pending Order Horizontal Line and than place a Sell Market Order only once the first candle that closes above or below the horizontal line, this should only happen once.
======================================================================================================
15) Only 1 Initial Buy Pending Order
* When a horizontal line is set with a specific text it will remove the previous Buy Initial Pending Orders and make this as the only Initial Buy Pending Order.
16) Only 1 Initial Sell Pending Order
* When a horizontal line is set with a specific text it will remove the previous Sell Initial Pending Orders and make this as the only Initial Sell Pending Order.
======================================================================================================
17) Reactivate Initial Stoploss
18) Reactivate Hedge Stoploss
19) Reactivate Initial Take Profit
20) Reactivate Hedge Take Profit
* When a horizontal line is set with a specific text for the above parameters it will reactivate either the Initial / Hedge Take Profit or Stoploss which was previously removed manually by the user.
======================================================================================================
21) Initial Breakeven Plus
This is the amount of pips to move the SL to once the Initial Breakeven Function has been activated.
======================================================================================================
22) Place Horizontal Pending Lines = Yes/No
This will place the Hedge Order, Take Profit and Stoploss Horizontal Lines once the Initial Pending Order is placed onto the account,
so that the User can readjust them before the activation of the Initial Pending Order.
======================================================================================================
23) OCO for Initial Pending Orders = Yes/No
So when enabled, the EA will delete all other Initial Pending Orders once the first Initial Pending Order gets activated.
So for example lets say that we have an Initial Buy Stop and a Initial Sell Stop before NFP, and the Buy Stop gets activated the EA should then remove the Initial Sell Stop.
======================================================================================================
Commandes similaires
//+------------------------------------------------------------------+ //| HighPerformanceEA.mq5 | //| Copyright 2026, AI Developer | //| https://www.mql5.com | //+------------------------------------------------------------------+ #property copyright "Copyright 2026" #property link " https://www.mql5.com " #property version "1.00" #property strict //
I need an experienced MQL5 developer to build a professional XAUUSD scalping Expert Advisor. The trading logic is already fully defined and will be shared privately with selected developers. Requirements Fast execution suitable for scalping Dynamic lot sizing Strict risk management Clean and optimized MQL5 code Compatible with MetaTrader 5 Additional Rules No repainting logic No delayed execution Avoid duplicate
It seems we need to convert this mql5 file into another platform like MULTICHARTS, NINJATRADER, SIERRACHART or other platform, I am open forr your sugestion, propositions, integrations etc. Anybody will help me with this project here? Source of code required
Prepare expert for xauusd live chart [ expert is not executing xauusd trades , just printing the logic on the chart ] . Deletion and cleaning code ( subject to if required ) . Integration of candles with present logic, Since expert is coming out from an arbitration subject : Before project start , review the code if it is clean and ready for the developer to continue with previous developer's technical debt -thereby
I need good teacher to teach me orderflow. Thank you in advance :) only persons who have real experience with this. Please present me strategy with clear rules that I can repeat
Hello, I am looking for a developer capable of developing a dynamic Hedging EA. I would like an EA designed for hedging trades. It main goal is to ensure help manage other EA from extraneous drawdowns
Hello, I am looking for an experienced developer who can build a professional EA suitable for long-term prop firm account passing and account management. I am NOT interested in risky strategies such as martingale, grid, or aggressive recovery systems. My main priorities are: very low and stable drawdown, strong and consistent risk management, strict news filter, long-term sustainability, realistic and stable monthly
I have Source Code.. the Drawdown section is not working as it should. For example, "Maximum Drawdown of 5% is giving me 50% equity drawdowns. There's either a problem with the code, or its looking for drawdown of balance instead of Equity. I'd like a programmer to add drawdown and show it works for Equity before it's sent back. Nothing crazy
Dear developers. We seek experienced developer in PHP, MySQL, JavaScript. we want to publish custom chart and CSV to our website Homepage. Our MQL5 Script contains custom layout we seek to publish on the website. we are looking for experienced developer in the field of website engineer. we want to broadcast our custom pairs in our website, as outlined in our MQL5 Script. we need React developers
Need a Profitable with a good trading system or strategy. would test the product first Looking for a professional MT5 Expert Advisor based on smart strategies. The EA should include session filters, risk management, trailing stop, multi-pair support, and low drawdown protection. I need a consistent, high-probability automated trading system optimized for long-term profitability and funded account compliance