Zone recovery EA for MT5
#Only for programmer who have done over 100 jobs with at least 4 stars review.
#Only for programmer who are familiar with zone recovery feature (opening a series of trades in different directions with larger size(Hedged martingale)).
#Perfectly working EA with the full code.
Same Algo as below →
https://www.youtube.com/watch?v=JzN1fEZmc40
### EA descriptions ###
Hi, bros. I need a zone recovery EA that open hedging orders if price goes against a initial order. EA has 3 modes to open initial order : “Manual Mode”, “Instant Mode” and “Indicator Mode” which orders by a indicator (RSI, MFI, CCI or STOCHASTIC).
In manual mode, I can open first order by clicking BUY/SELL button on the chart.
In instant mode, Long oder is placed instantly if there is No position on both side.
In Indicator mode, a indicator is used for initial order.
Actually I am already using some Zone Recovery EAs but the problem is that they have errors and seem zone recovery and stop loss are not working properly.
I’ve tried to explain options and how it works but you are the expert so you can know it better. :) Please detail it. Thank you for your interest.
Sum up
A: open first order { Set Tp , dont Set Sl}
B: if first order loss, enter Zone Recorvery. → Zone and TP prices are all set up for trade.
C: if any Hit Tp line : close all order
Zone Recorvery (Hedged positon)
if Buy hit opposite Line : Sell (sell lot= buy Lot * Multiply) , keep the buy order
if Sell hit opposite Line : Buy (buy lot= sell Lot * Multiply) , keep the sell order
This EA comes with zone recovery feature that will activate once price move against the initial entry after x pips or percent of the initial order price (zone).
INITIAL TRADE SETTING ----------------------------------------------------
Initial order size : Lot( 0.01) or a percent of total balance (ex 0.1%)
Oder Type Setting : Pending order (limit order) or Instant order (market order)
-Manual Mode -> press the button on chart
-Instant Mode -> if there is No position, instant order ‘Long side’
-Indicator Mode ->
RSI (break up or break down or blow or above) = > long or short
or
MFI (break up or break down or blow or above) = > long or short
or
CCI (break up or break down or blow or above) = > long or short
or
STOCHASTIC (break up or break down or blow or above) = > long or short
TP Setting for Initial order : pip(300) or percent of the initial price (1%)
ZONE RECOVERY SETTING ----------------------------------------------------
If market trend goes against Initial order and meet zone recovery line
-> Buy and Sell hedge mode
Once Zone recovery triggered, All prices for trade will be fixed until all position is zero (until the cycle is completed)
-Oder Type Setting : Pending order (limit order) or Instant order (market order)
-Recovery gap : a pip(ex.100) or percent of the initial order price (ex.1%) ( this set a zone for this trade cycle)
-Upper price : a pip(ex.300) or percent of the initial price (ex.3%) (TP and Stop lose line)
-Lower price : a pip(ex.300) or percent of the initial price (ex.3%) (TP and Stop lose line)
-Recovery order size
Multiple of order size (lot or position) : Initial order size * (ex. 1.6)
Or
Custom of order size (lot or position) : Initial order size * (ex. 1.6, 2, 2.6, 3, 4, 5.8, 7, 9, 11, 14…)
Max Recovery Trade : (ex 9)
STOP LOSS SETTING ----------------------------------------------------
On / Off
When Max Recovery trade reached or Recovery order cannot be done because of shortage of balance or too much order Lot
And Max loss value(%) >= 10(%) → changerble
→ close all position (both sell and buy) -> the cycle is complete in loss.
If there is any thing must add on, please let me know.
Thank you.
Commandes similaires
I would like to develop a bot that allows me to manually input trades based on the Masaniello money management system, which I will configure at the outset. Within this setup, I will be able to define all the key parameters of the Masaniello strategy, including the total number of events, expected winning events, stake ratio (i.e. the TP/SL ratio), and the initial capital. Once the Masaniello parameters are set, the
ZigZag based on oscillators is needed The idea of the indicator Create a ZigZag indicator, which is constructed based on extreme values determined using oscillators. It can use any classical normalized oscillator, which has overbought and oversold zones. The algorithm should first be executed with the WPR indicator, then similarly add the possibility to draw a zigzag using the following indicators: CCI Chaikin RSI
Essential Components for Indicator Specification Objective & Overview: Briefly describe what the indicator calculates (e.g., trend, momentum, volatility) and its main purpose. Input Parameters (Variables): List all user-definable inputs (e.g., Moving Average periods, ATR multiplier) to avoid hardcoding values. Detailed Logic/Calculation Rules: Explain the formula or logic to calculate indicator values. Define
Hi, I hope you’re doing great. I’d like to share the project details. The original EA is already working, but I need you to first review and verify that all existing features are functioning correctly. After confirming everything works properly, the next task is to add a simple user dashboard that shows the number of detected zones, buy/sell/none status, and includes an ON/OFF button. Also, please make sure that
looking for Expert to create or ready made solution for bonus hedge auto set cross trading of opposite trading strategy. the expert may guide what max and best he can do to make the EA perfect
Set specific time to run this function(order). The time can be hard-coded or inputted by user. Time format: HH:MM:SS:ss Example: 17:58:48:59 -> This means an order will be triggered at 5 pm 58min 48sec 59 today. Set “Stop loss” and order a Sell stop. “At price” triggered automatically: current(specific time set above 1) Gold price - 2$ Stop loss: current Gold price + 2$ Volume: 0.1 (It can be hard-coded or inputted
#include <Trade/Trade.mqh> CTrade trade; input double LotSize = 0.1; input int FastMA = 10; input int SlowMA = 20; int fastHandle, slowHandle; // Initialize indicators int OnInit() { fastHandle = iMA(_Symbol, PERIOD_CURRENT, FastMA, 0, MODE_SMA, PRICE_CLOSE); slowHandle = iMA(_Symbol, PERIOD_CURRENT, SlowMA, 0, MODE_SMA, PRICE_CLOSE); return(INIT_SUCCEEDED); } void OnTick() { double fastMA[2]; double
I need an Expert Advisor (EA) for MetaTrader (MT4 or MT5) based on the following scalping strategy. Platform: MT4 or MT5 Symbol: EURUSD (should work on other pairs as well) Timeframe: M1 or M5 Indicators: - EMA 9 - EMA 21 - RSI (14) Buy Conditions: - EMA 9 crosses above EMA 21 - RSI > 55 - Spread < 1.5 pips - Only one trade at a time Sell Conditions: - EMA 9 crosses below EMA 21 - RSI < 45 - Spread < 1.5 pips -
In need of an automated bot that strongly detect support and resistance zones where price has a high probability of reacting ,rejecting or reversing. The zones should be built on combibation of of : (a)swing high and swing low.(b)repeated price reaction c)rejection strength (d)break and retest behaviour (e) consolidation origin before implusive move (f) strong displacement candles
I need a mt5 Expert advisor ea to manage intraday trades with strict risk management. The EA must -Handle between 5 to 8 clean trades a day max altogether throughout all 3 sessions. no big news trading times and no overnight trades -Use 1% on forex pairs and upto 2% on XAUUSD risk per trade - Automatically calculate lot size based on stop loss -use fixed RR ratio [1:2] For forex pairs, the stop loss should be