Breakout/Retest Indicator + EA based on Indicator

MQL4 Experts

Job finished

Execution time 21 days
Feedback from customer
Very happy with the result. Perfect delivery, great communication and flexible on modifications. Hope to work together soon on other projects.

Specification

Indicator + EA based on Indicator

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

STEP 1: INDICATOR

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

// 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.

 

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: 

- 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" :


What I like about this indicator:

-          How the support zones and resistance zones are visualized on the chart

-          How the size of the zones are identified and visualized, especially at low “lookback range” settings -> minor support and resistance zones are identified

What I don’t like on this indicator and where I would like improvement

-          The support/resistance zones are not dragged long enough into the future. As mentioned, I would like to be able to adjust the time (number of candles) of how long such a level is valid and should be considered for retests.

-          The step “potential retest” step, which the tradingview indicator has, is not needed!

-          The identification of the retest signal is not great on this tradingview indicator. Please use the rules described above.

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

 

 

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

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
(162)
Projects
180
10%
Arbitration
35
37% / 34%
Overdue
5
3%
Working
2
Developer 2
Rating
(37)
Projects
56
46%
Arbitration
2
0% / 100%
Overdue
0
Working
3
Developer 3
Rating
(6)
Projects
10
10%
Arbitration
5
40% / 60%
Overdue
4
40%
Working
4
Developer 4
Rating
(315)
Projects
396
42%
Arbitration
72
36% / 38%
Overdue
12
3%
Busy
5
Developer 5
Rating
(142)
Projects
255
35%
Arbitration
12
25% / 58%
Overdue
45
18%
Free
6
Developer 6
Rating
(3)
Projects
7
14%
Arbitration
0
Overdue
0
Loaded
7
Developer 7
Rating
(258)
Projects
274
67%
Arbitration
4
50% / 0%
Overdue
0
Busy
8
Developer 8
Rating
(11)
Projects
14
0%
Arbitration
3
0% / 100%
Overdue
2
14%
Loaded
Similar orders
I need an ea which should work with 3 custom indicators 1st indicator will select direction of trades (buffer 0 is for buy orders only and buffer 1 is for sell orders only) then combination of 2nd and 3rd indicators will enter trades with option of closing trades with opposite buffers all other EA features should be included without any errors the 3 custom indicators will be anything with arrow/ histogram buffers
// Define input parameters input int EMA_Period = 25; // EMA period input double LotSize = 0.1; // Trading lot size input int StopLossDistance = 10; // Initial stop loss distance in pips input int TrailingStopDistance = 10; // Trailing stop distance in pips // Define variables for trailing stop double trailingStopLevel = 0; // Define the main function int start() { // Calculate the EMA 25 value for the
Hello, I'm looking ot create a simple indicator using simple entry conditions. The system uses 2 MA and another indicator that will be shared in private (this indicator needs to be added as ressource, but that I can do it). The conditions of this last indicator is only crossing levels. The indicator should also sends alerts and most imporantly works correctly, no lag, no loops in code. This is an easy project but I
Backtest MT4 EA 30 - 40 USD
Greetings, I am interested in obtaining a Backrest report for an MT4 EA covering the past year, specifically from September 25, 2022, to September 25, 2023. The desired time frame for this report is 1 minute, and the pairs to be included are EURUSD, USDCHF, GBPUSD, AUDUSD, USDCAD, and USDJPY. Kindly Bid for this project if it what you can do for me
I want to make 2 bot with one mql4 expert advisor , I want to make one bot only for long trade and another so for short trade , now the bot make both side but not in the same time
****SERIOUS DEVELOPERS ONLY**** I am in need of creating a Expert Advisor based off my Mt5 indicator. All of the requirements will be sent. Developer must have advanced trading knowledge to understand the logic needed. Please send sample of the most sophisticated work completed. Must have great efficiency and fast work. Budget is negotiable. Need expert completed within 3 days max if possible
There is an input called PAS set at let's say 28, it needs to scan for previous alerts but it cannot pickup an old alert.. ... here is the code........... Tell me if you can tackle it... input PreviousAlertScreening = 8; def PrevBuyAlert = if PreviousAlertScreening == 0 then 0 else Highest(blabel, PreviousAlertScreening) ; Alert(blabel or PrevBuyAlert, "B Signal", Alert.BAR, Sound.Ring); def PrevSellAlert = if
Martingle EA 30+ USD
Hello I would need an EA that starts trading on zones of Supply & Demand / Support & Resistance, and have an option of modification of order step, order profit according to total pips , and profit
I draw a square on the chart manually in blue -When the candle exceeds the blue box by closing higher than it = open a buy deal -When the candle breaks the blue box below by closing = sell The length of the green and pink squares is determined from the inputs, and the expert draws them on the chart as in the picture. -When the candle reaches the end of the green and pink square, close the contract immediately
I am looking to develop a trading bot that primarily focuses on analyzing candlestick formations and price action dynamics, particularly at key support and resistance levels. I'll share detailed specifications later. The objective is to enable a straightforward user experience where, upon placing the bot on the chart, the user can opt for a "buy" or "sell" position and specify the number of trades to initiate. The

Project information

Budget
100+ USD
For the developer
90 USD