Hedging strategy with Moving Average along with other parameters and Conditions

MQL5 Experts

Spécifications

ram Reddy Hedging strategy 

Expert Adviser (EA) – MQL 5

 

Please note this EA .. it is a combination of new orders along with hedging orders, averaging the order and double averaging the order to cover the loss

Please understand the concept clearly, then only please accept the project

Symbols: XAUUSD, GBPUSD, and other main symbols

Demo: need demo mql5 file on XAUUSD please note: (in my brokerage 10 pips = 1 dollar and 100 pips = 10 dollars, 1500 pips = 50 dollars, 1000pips = 100 dollars)

time Frame: Keep on the current time frame by default … (or should work on 1 Min, 5 min and 15 min time frame also)

Indicator - moving averages

Magic number: 7685346 or keep any unique number

-          Should be compatible with another mql5 files… while running many files at a time

 

New Orders

Please Note: Switch off / switch on the buy/sell order  … with  active / deactivate buttons to the new orders separately


Buy new order: LWA 100 crossing 200 SMMA towards up (on current time frame) … here both LWA 100 and 200 SMMA or below 15 mins 200 SMMA (or 3000 SMMA)  .. please see image

Shift = 1

 (order quantity – 5% of equity)

Total/ maximum open buy orders- 10

 

Sell new order: LWA 100 crossing 200 SMMA towards down (on current time frame) … here both LWA 100 and 200 SMMA or below 15 mins 200 SMMA (or 3000 SMMA).. .. please see image

Shift = 1

(order quantity – 5% of equity)

Total/ maximum open sell order- 10

Please note: there is a possibility of more buy orders or sell orders if the conditions criteria is met .. irrespective of loss or profit

Note: these moving average periods should be editable, (it might be 200 SMA or EMA, LWA or 500 smma) and also 3000 or 15 min 200 smma should be editable … should be comfort to change 15 min 200 smma to 1 hr 200 smma or 3000 smma to 5000 smma

 

 

Hedging orders

Indicators :… no indicator .. buy or sell should be placed on ask or bid price

Please Note: Switch off / switch on the buy/sell order  … with  active / deactivate buttons to the hedging orders separately

Here order was placed irrespective of indicators, just order placed based on the price gap

***** Please Strong note: this hedging order should happen only once/ 1 time to the respective order*****


Hedging buy order: sell order is in loss more than or equal to  10 dollars  (Loss>=10 dollars) then initiate the new hedging buy order.

Here we are placing the buy order to counter the sell order loss

Condition to fulfill the  buy order:  In case the sell order is in loss of 100 pips and another buy order existed during that period, then don’t initiate the buy order, in this case, after some time another buy order was closed, and existing sell order is in loss of more than or equal to 10 (example 145 pips) … … then initiate new hedging buy order to hedge it to counter existed buy order

2 conditions: 1. More than 100 pips gap on open previous order 2. No existing buy order  … should be place after it close

Please note: hedging to happen to a respective sell order

(For example – sell order ID is 2345987 – – only a buy order should be placed against that order by following the above condition)

******** Please note: hedging should happen only once

 (example - sell order ID  2345987, it is in loss of 100 pips with the above condition buy order was placed order id is 3456278 and this was executed with profit, …  after some time there is no buy order and this previous sell order ID 2345987 is in loss of 300 pips… in this case,  don’t place any buy order)

Order quantity-  here the sell order quantity is the same buy order quantity which is in loss (for example, the existing loss sell order quantity is 0.16 lots, in this case - initiate the 0.16 buy order)

 

Hedging Sell order: buy order is in loss more than or equal to 10 dollars (Loss>=10 dollars) then initiate the new hedging sell order.

Here we are placing the sell order to counter the buy order loss

Condition to fulfill the sell order:  In case the buy order is in loss of 100 pips and another sell order existed during that period, then don’t initiate the sell order, in this case, after some time another sell order was closed, and existing buy order is in loss of more than or equal to 10 (example 125 pips) … then initiate new hedging sell order to hedge it to counter existed buy order

2 conditions: 1. More than 100 pips gap on open previous order 2. No existing sell order  … should be place after it close

Please note: hedging to happen to a respective sell order

(For example – buy order ID is 4567389 – only a sell order should be placed against that order by following the above condition)

******** Please note: hedging should happen only once

 (example - sell order ID  4567389, it is in loss of 110 pips, on the above condition criteria met ..  buy order was placed order id is 765456 and this was executed with profit, … after some time there is no buy order and this previous buy order ID 2345987 is in loss of 270 pips… in this case,  don’t place any sell order)

Order type: opposite order (buy on Sell/ sell on buy)

Order quantity-  here the sell order quantity is the same buy order quantity which is in loss (for example, the existing loss buy order quantity is 0.26 lots, in this case - initiate the 0.26 sell order)

 

Averaging loss orders

Indicators :… no indicator .. buy or sell should be placed on ask or bid price

Please Note: Switch off / switch on the buy/sell order  … with  active / deactivate buttons to the average loss orders separately

This is averaging the loss trade … should apply to both new orders and hedging orders

***** Please Strong note: this averaging loss order should happen only once/ 1 time to the respective order*****

Averaging the loss buy order: if any buy order is in loss more than or equal = to 500 pips  …… then initiate a new buy order with the same quantity of loss trade … while placing the average buy order there is no other buy order

Cases to understand condition: In case the buy order is in loss of 500 pips and another buy order existed during that period .. then don’t initiate the buy order to average it, … in this case, after some time another buy order was closed, and an existing buy order is in loss of more than or equal 500 pips … then initiate new buy order to make an average of with same quantity of loss of trade.

(Example: loss order size is 0.5 lots, then average the loss with another 0.5 lots with above following conditions …not on equity %)

2 conditions: 1. More than>= 500 pips gap on open previous order 2. No existing buy order  … should be place after it close

 

Averaging the loss sell order: if any sell order is in loss more than or equal = to 500 pips  …… then initiate a new sell order with the same quantity of loss trade … while placing the average sell order there is no other sell order

Cases to understand condition: In case the sell order is in loss of 500 pips and another sell order existed during that period .. then don’t initiate the sell order to average it, … in this case, after some time another sell order was closed, and an existing sell order is in loss of more than or equal to 500 pips  … then initiate new sell order to make an average of with same quantity of loss of trade.

(Example: loss order size is 0.6 lots, then average the loss with another 0.6 lots with above following conditions …not on equity %)

2 conditions: 1. More than>= 500 pips gap on open previous order 2. No existing sell order  … should be place after it close

Order type: same type order (buy on Buy/ sell on sell)

 

 

Double - Averaging loss orders

Indicators :… no indicator .. buy or sell should be placed on ask or bid price

Please Note: Switch off / switch on the buy/sell order  … with  active / deactivate buttons to the Double -average loss orders separately

This is averaging the loss trade … should apply to both new orders and hedging orders

***** Please Strong note: this double averaging loss order should happen only once/ 1 time to the respective order*****

Difference: the key difference b/w the above entry and this entry strategy is … pip gap and order lot size

Averaging the loss buy order: if any buy order is in loss more than or equal = to 1000 pips  …… then initiate a new buy order with the double quantity of loss trade … while placing the average buy order there is no other buy order

Cases to understand condition: In case the buy order is in loss of 1000 pips and another buy order existed during that period .. then don’t initiate the buy order to average it, … in this case, after some time another buy order was closed, and an existing buy order is in loss of more than or equal 1000 pips … then initiate new buy order to make an average of with same quantity of loss of trade.

(Example: loss order size is 0.5 lots, then average the loss with another 1 lots with above following conditions …not on equity %)

2 conditions: 1. More than 1000 pips gap on open previous order 2. No existing buy order  … should be place after it close

 

Averaging the loss sell order: if any sell order is in loss more than or equal = to 1000 pips  …… then initiate a new sell order with the same quantity of loss trade … while placing the average sell order there is no other sell order

Cases to understand condition: In case the sell order is in loss of 1000 pips and another sell order existed during that period .. then don’t initiate the sell order to average it, … in this case, after some time another sell order was closed, and an existing sell order is in loss of more than or equal to 500 pips  … then initiate new sell order to make an average of with same quantity of loss of trade.

(Example: loss order size is 0.6 lots, then average the loss with another 1.2 lots with above following conditions …not on equity %)

2 conditions: 1. More than 1000 pips gap on open previous order 2. No existing sell order  … should be place after it close

Order type: same type order (buy on Buy/ sell on sell)

 

 

Pip order gap between orders

gap >= 100 pips

-          This gap should apply to open orders only (not on closing orders) … (open orders either new  order or hedging  order or averaging order or double averaging order )

-           

-          Please Note- need to calculate the distance buy order - to buy order ….. sell order - to sell order

    (don’t … don’t calculate the distance between the buy order to sell order)

For example: if a buy order was opened, it is either in loss or profit, here if we want to open a new buy order or new hedging order the GAP should be more than or = equal to 100 pips

The buy order is either a new  order or maybe a hedging order or an averaging order or double averaging order

 

Profit: 150 Pips gap (should be editable... like 100, 150, 200 pips)

 

Stop loss trailing:  profit threshold – 100 pips and trail start value – 90 pips, trail step size – 1, trail minimum distance – 1  … please find in image

 


Exit Strategy:

 

Close Buy:

If any open buy order is in loss, close the 2nd order ….. 50 LWA crossing 200 smma towards Down (should be editable)  …..

 (Please note…. Please apply this case only if any open buy order is in loss ... if no open buy order is not in loss, don’t apply this close buy)

For Example:  One open buy order is in loss of 120 Pipps (or more than 1 Pips), in this case, another buy order was placed due to the above conditions, …. After some time.. the first order is still in loss, then close the 2nd order if the criteria met the … 50 LWA crossing 200 smma towards Down.

 

Close Sell:

If any open Sell order is in loss, close the 2nd order ….. 50 LWA crossing 200 smma towards Up (should be editable)  …..

 (Please note…. Please apply this case only if any open Sell order is in loss ...  if no open Sell order is not in loss, don’t apply this close sell)

For Example:  One open Sell order is in loss of 50 Pipps (or more than 1 Pips), in this case, another Sell order was placed due to the above conditions, …. After some time.. the first order is still in loss, then close the 2nd order if the criteria met the … 50 LWA crossing 200 smma towards Up.

 

 

 

Stop Loss:

1.       Here need stop-loss on either of the conditions with active and deactivate buttons  … separately for both Buy and Sell

Stop loss: for Buy orders –

Order Scope - Single

1.       based on 99% equity loss (should be editable)  .. active and deactivate button

or

2.       Loss of 50 Pips (should be editable)  .. active and deactivate button

Stop loss: for Sell orders –

Order Scope - Single

1.       based on 95% equity loss (should be editable)  .. active and deactivate button

or

2.       Loss of 40 Pips (should be editable)  .. active and deactivate button

Please note: here we have different stop-loss for buy and sell


 

Money Management / lot size:

 

Linear lot size – 5% on equity

Please note linear lot size should apply to new orders only

Please note – it should be editable

 

Total Open Orders:

- total/ maximum open buy orders are 10

- total/ maximum open sell orders are 10

Hedging and averaging orders should happen accordingly

Please note- it should be editable

 

Please Note-  here 4 types of orders  new orders and  hedging orders and averaging orders and  double averaging orders

 

Please provide the testing file on xauusd pair (xauusd in my brokerage 100 pips = 10 dollars ... please adjust accordingly)

-          and should work on others pairs/symbols like gbpusd , eurusd etc.

-          and all conditions like pips, profit, stoploss, current time ... all are should be editable

 

Note: need to provide/send to me the editable mql5 file (original file)

 

**** Please note- Copyrights or other IP rights to this project are owned by ME, you should not sell this to others as it is owned by me,  as a developer please accept it******

 


Dossiers :

Répondu

1
Développeur 1
Évaluation
(246)
Projets
253
30%
Arbitrage
0
En retard
3
1%
Gratuit
Publié : 2 codes
2
Développeur 2
Évaluation
(13)
Projets
17
12%
Arbitrage
4
25% / 50%
En retard
1
6%
Travail
Publié : 1 code
3
Développeur 3
Évaluation
(270)
Projets
552
49%
Arbitrage
58
40% / 36%
En retard
228
41%
Travail
4
Développeur 4
Évaluation
(74)
Projets
79
6%
Arbitrage
46
11% / 54%
En retard
7
9%
Travail
5
Développeur 5
Évaluation
(45)
Projets
91
13%
Arbitrage
34
26% / 59%
En retard
37
41%
Gratuit
6
Développeur 6
Évaluation
(93)
Projets
133
35%
Arbitrage
13
38% / 31%
En retard
32
24%
Gratuit
7
Développeur 7
Évaluation
(7)
Projets
8
13%
Arbitrage
6
33% / 17%
En retard
0
Travail
8
Développeur 8
Évaluation
(449)
Projets
475
69%
Arbitrage
6
67% / 0%
En retard
2
0%
Travail
9
Développeur 9
Évaluation
(70)
Projets
91
25%
Arbitrage
26
19% / 54%
En retard
25
27%
Gratuit
Commandes similaires
I need someone that is able to develop for me a MT5 EA that perform VERY WELL on XAUUSD. Every strategy is accepted. By applying, please send me screenshot of results since 2018
Hello developers, I'm looking for existing, proven EAs (MQL5) that work flawlessly on MT5. Requirements: Demo version available for testing Backtest results + screenshots Verified trade history from 2018-2025 Budget is negotiable If you've got an EA that fits, hit me up
cần người tạo EA y thay đổi hình ảnh gửi đầy đủ tính năng như hình giá cả có thể tăng thêm khối lượng mong muốn viết giống hình không khác ROBOT HƠI NHIỀU TÍNH NĂNG MỌI NGƯỜI CÓ THỂ ĐƯA GIÁ THAM KHẢO
I want to develop and EA first to use for back testing, then to use for trading. This will be done on the 15 min timeframe. The EA must Identify sessions highs and lows with specific timings (Asian, London, NY), Place three EMA and ensure that the 50, 100 and 200 exponential moving averages are in order to give directional bias Sell bias = 50 below the 100, which is below the 200 Buy bias = 50 above the 100, which is
I need an experienced MQL4 developer to build a robust, conservative MT4 EA designed to trade Forex major pairs on IG . This is for long-term use with controlled drawdown — no martingale/grid/hedging . Platform / Broker Platform: MT4 Broker: IG Must work with: 5-digit pricing, variable spreads, slippage, and IG’s execution constraints Symbols (Majors only) EURUSD, GBPUSD, USDJPY, AUDUSD, USDCHF, USDCAD (configurable
Need a HFT scalping EA 30 - 100 USD
Require the development of a high-speed HFT, fully automated trading Expert Advisor (EA) for MetaTrader 5 , optimized for live trading on both Deriv and Exness . The EA must be designed for fast execution, low latency, and reliability on real-money accounts , with full compatibility across broker-specific contract specifications, tick sizes, tick values, pricing formats, and volume rules. It should automatically
This EA uses the inbuilt indicators to execute trades. It follows the simple rules of buy signal and sell signal.It will be independent of each other. The same rule follows for each
Hello Developers, I need a utility that allows to me open multiple positions. First the utility will show me all currency pairs on the watch list, and it will give me the option to either buy, sell, or neutral for each currency pair. Secondly, lot sizes for all currency pairs (that are not neutral) are determined through an input of cost per pip (USD). Lastly, then the execute button, which opens positions according
This is a reversal strategy based on the range of a 15 minute candle. Functions of the EA · Draw a range (high to low) of a specified 15 minute candle e.g. 15:00 (of course this can be 3 x 5 minute candles. The trade is taken in the 5 minute chart so this might be easier) · Compare the range of this candle to the value of the Daily ATR – the range must be a certain percentage of the Daily ATR e.g. 20%
1. Background & MQL5 Journey: ¿Cuéntame un poco sobre tu background en trading algorítmico y qué te emociona de crear EAs de alto rendimiento? 2. Experience: ¿Cuáles son 2-3 EAs destacados que has creado (mercados, Sharpe, PF, señales/backtests)? 3. Institutional Results: ¿Puedes lograr Sharpe ≥3.0, PF >2.5, <10% DD en XAUUSD? ¿Qué te da confianza? 4. Demo EA: ¿Tienes una señal de EA top (MQL5/Myfxbook) con 100+

Informations sur le projet

Budget
70+ USD
Délais
à 1 jour(s)