Create an indicator that finds breakouts and retests (Breakout/Retest Indicator + EA)

Specification

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

STEP 1 : BREAKOUT AND RETEST INDICATOR (MQ4)

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

// GENERAL: Breakout and retest indicator.

I’m looking for an indicator that identifies mostly MINOR swing highs and lows and marks them as support and resistance zones. The indicator should give out a signal when price breaks through those zones.

In the second step, the indicator should also be able to identify when price comes back to those zones, after the breakout, to retest the specific support or resistance zone, and gives a signal when price accepts the zone through price moving away from the zone.

 

// THE IDEA:

Picture 1

The idea is that minor support and resistance zones are identified and “remembered” for the future. As soon as price revisits these zones and accepts them, a signal is given. The time (number of candles) between the breakout and retest should be adjustable in terms of minimum and maximum. As soon as a retest has been validated or violated, the zone is irrelevant for the future, as well as when the maximum time (number of candles) has been reached.

 

// VALIDATION OF SIGNALS

ð  Breakout signal is pretty clear. Signal is given as soon as price breaks through the MINOR support or resistance zone and closes below/above.

 

ð  Retest signal:

For both signals, support and resistance, it is the same, but for simplicity reasons, I will only explain the rules for a break through the resistance zone (BUY TRADE).

When a resistance zone is broken, price needs to come back down by printing at least 1 red candle. Price then needs to reverse at the broken resistance zone, now potential support zone. When a green candle is printed from the new support zone, a signal is given (+ different variations of a valid signal, more on that later). Once the retest zone is violated, the level becomes irrelevant and a new retest zone needs to be established.

 

// EXAMPLES OF SIGNALS

 

Example signal:

Picture 2

Since support and resistance can be drawn either with open/close of swing high OR at the ultimate high (wick), it would be great if the indicator draws a zone from open/close to the wick of the swing high to identify the zone for the retest. When a retest after the breakout happens in the zone buy coming back down through a red candle or red candles and the confirming the retest by printing a green candle, a signal is generated (Signal 2). The retest can also happen through the wick of the green retest candle. The distance between the open price level of the retest candle and the retest zone needs to be adjustable in amount of pips, in order to filter out long wick retest signals.

Picture 2.0

 

Example Minor Level Retest by One Reversal Candle:

Picture 2.1

The indicator really needs to be able to identify minor swing lows and highs which are retested by price.

 

Example signal candle type 50%:

Picture 3

   

// INPUT PARAMETERS

* Signal provided :

- Breakout

- Retest

- Both

* Parameter for identifying swing highs/lows (support and resistance zones) -> how small / large are the swings

* Number of candles between support/resistance development and breakout allowed (minimum AND maximum)

* Number of candles between breakout and retest (minimum AND maximum) allowed

* Extra Buffer Signal Candle (Open of retest candle: Distance to the Support/Resistance zone in pips allowed)

* Retest: Signal candle (quality of signal candle) 

- All candles

- Closing at above/below (for example) 50% mark of full range, percentage      needs to be adjustable   (Picture 3)

 

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

Example for such an indicator on tradingview "Support & Resistance With Breakout & Retest by TheHippieTrader" :

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

 

It’s important that every signal has a different buffer value so it will be possible to create an EA based on the indicator

 

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

STEP 2: EXPORT ADVISOR

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

The EA should be based on the indicator and triggers trades based on the indicator signals. Parameters for the signal, same as in the indicator settings, should be adjustable in the EA as well.

Additionally, the EA should have a trend filter in terms of a MA. I would like to adjust the length of the MA which should be used as a filter. Example: 200 MA. If price is above the 200 MA, only buy signals should be executed. If price is below the 200MA, only sell signals should be executed.

The EA should have different trade management options:

 

Lot Size

Fix lot sizes

dynamic lot size based on x balance

 

Entry Signal (based on indicator above)

Breakout

Retest

Both

 

All settings for tweaking the entry signal. Same options as the indicator.

 

Trend filter

On / Off

MA period adjustable

 

Take profit and stop loss options (want to be able to pick one option from all the offers below for SL as well as TP):

Take Profit

-Fix pip amount

-Risk reward ratio based on SL

-Based on ATR multiple (ATR period and multiple should be adjustable)

Stop Loss

- above/below retest with fix pip amount between OR with multiple of ATR between (Picture 5)

- above swing high/ below swing low of price movement before breakout (Picutre 5)

- Based on ATR multiple (ATR period and multiple should be adjustable)

 

Trade Management Options:

Simple trailing option (Start, Step)

Trailing option based on ATR

Stop loss to break even option

Partial Close (profit) of x% at x% distance to TP

Partial Close (loss) of x% at x% distance to SL

 

Classic Grid Loss Side

Size of Grid

- Fix amount for all grids sizes

- Individual grid size for each grid

Grid Trades Lot Sizes

- Multiplier option for lot size of grid trades

- Individual Lot Sizes for each additional grid trade

Max numbers of additional grid trades

 

-> All additional trades need to accept the stop loss from initial trade




Files:

PNG
Picture_1.png
48.2 Kb
PNG
Picture_2.png
74.6 Kb
PNG
Picture_3.png
45.0 Kb
PNG
Picture_5.png
75.8 Kb

Responded

1
Developer 1
Rating
(45)
Projects
76
20%
Arbitration
7
0% / 86%
Overdue
14
18%
Free
2
Developer 2
Rating
(174)
Projects
199
12%
Arbitration
38
37% / 34%
Overdue
5
3%
Working
Published: 2 codes
3
Developer 3
Rating
(12)
Projects
25
4%
Arbitration
1
0% / 0%
Overdue
7
28%
Free
4
Developer 4
Rating
(45)
Projects
91
13%
Arbitration
34
26% / 59%
Overdue
37
41%
Free
5
Developer 5
Rating
(225)
Projects
285
41%
Arbitration
15
13% / 47%
Overdue
67
24%
Free
6
Developer 6
Rating
(4)
Projects
3
0%
Arbitration
3
33% / 67%
Overdue
1
33%
Free
Similar orders
I want robot that can help me trade and make some money so that I can be able to learn from it while I'm still in depot account now.Is how it gonna help me with some money
Articles How to create Requirements Specification for ordering an indicator 76 MetaQuotes 51 380 Table of Contents How can algo trading make a trader's live easier? Supplement text with images and videos Useful programs for creating Requirements Specification Formulating the Requirements Specification as an algorithm Requirements Specification Examples What can I specify in the Requirements Specification? Indicator
Hello, I have two requests: First: Feature Modification Request Currently, the EA places only one pending order at a time. I want to modify this to place two opposite pending orders (Buy Stop and Sell Stop) simultaneously, with the distance between them aligned with the existing Breakeven and Trailing Stop settings in the bot. How it should work: The EA places a Buy Stop above current price and a Sell Stop
I need a custom MT5 expert advisor (EA) designed to mirror trades between two different broker accounts (Master and Slave) running on the same local PC. My primary objective is Synchronous Execution to avoid being exposed to the market due to price mismatches. Core Requirements: Symbol-Agnostic: The EA must automatically copy trades for any symbol I trade (Forex, Gold, Indices, etc.) without needing to hardcode
Hello, I need a professional MT5 Expert Advisor for currency trading. PAIRS: EURUSD, GBPUSD, USDJPY, USDCHF TIMEFRAME: M15 STRATEGY: - EMA 8 cross EMA 21 (entry signal) - EMA 50 for trend filter - RSI 14 confirmation (Buy > 52, Sell < 48) - No trade if RSI > 75 or < 25 SESSION: London + New York only 07:00 to 17:00 GMT No weekend trading TRADE MANAGEMENT: - Lot size: 0.06 - Take Profit: $15 per trade - Stop Loss: $8
I need a MetaTrader 5 Expert Advisor (EA) for Forex trading. Account size: $1000 Requirements: 1. The EA should work only on Forex pairs. 2. Automatic Buy and Sell trades. 3. Lot size starting from 0.04. 4. Stop Loss and Take Profit settings. 5. Only one trade at a time. 6. Works on pairs like EURUSD, GBPUSD, USDJPY etc. 7. Risk management suitable for a $1000 account. 8. Easy settings for lot size, SL, TP and risk
I want to design an EA that can identify key Supports and Resistances. This should be able to work on any timeframe from 1 minute to 1 hour (i.e 1 minute, 5 minutes, 15 minutes and 1 hour time frames.) The EA should be able to determine a Fibonacci retracement from a support and the next resistance point in an uptrend and vice versa (i.e the EA should be able to determine a Fibonacci retracement from a resistance and
Product Requirements Document (PRD) Project Title: Liquidity Sniper Semi-EA (Fibonacci & SMC Based) Platform: MetaTrader 5 (MQL5) Target Asset: XAUUSD (High Volatility) / M5 Timeframe 1. EA Operating Concept (Semi-Automated) Human-Machine Collaboration: The trader manually draws a standard Fibonacci Retracement object on the M15 chart to define the market structure (setting the 1.0 and 0.0 anchor points). EA's Role
Short Description: I am seeking an experienced MQL4 developer to build a high-frequency Asymmetric Salami Grid EA . This is a sophisticated volatility harvester, not a basic martingale. Key Features to Implement: Virtual Grid Execution: No pending orders; all logic handled in-memory via OnTick . Asymmetric Lot Sizing: Trend-side degression vs. Counter-trend progression . Salami Partial Liquidation: XX% of profits
I am seeking an experienced MQL5 developer to build a high-precision Gold (XAUUSD) scalping Expert Advisor. The objective is to achieve a Profit Factor (PF) of 2.0 or higher with a focus on institutional logic rather than retail lagging indicators.The EA must be designed to pass a "100% Real Ticks" backtest (Exness/Dukascopy data) over a 30-day period with a $500 initial deposit.Core Requirements & Strategy

Project information

Budget
100 - 125 USD
Deadline
from 15 to 30 day(s)