SUNRISE ADVANCED + DAILY BOX 50% RULE

MQL5 Asesores Expertos

Trabajo finalizado

Plazo de ejecución 11 días

Tarea técnica

e are upgrading the existing SUNRISE EA into SUNRISE ADVANCED.

The existing core logic should remain:

  • Define Asian session high/low.
  • Wait for trade window.
  • Enter when candle closes outside the Asian range.
  • Use ATR-based stop-loss.
  • Use risk % position sizing.
  • Use optional MA filter.
  • Use TP by Risk/Reward.

The new job is to add advanced quality filters and entry modes.


1. Asian Range Quality Filter

Add optional filters to control whether the Asian range is suitable for trading.

Inputs

  • Use_Min_Asian_Range_Filter = true/false
  • Min_Asian_Range_Points = number
  • Use_Max_Asian_Range_Filter = true/false
  • Max_Asian_Range_Points = number
  • Use_ATR_Relative_Range_Filter = true/false
  • ATR_Range_Period = number
  • Min_Range_ATR_Multiple = number
  • Max_Range_ATR_Multiple = number

Logic

At the end of the Asian session / start of trade window, calculate:

  • Asian high
  • Asian low
  • Asian range size = Asian high - Asian low
  • ATR value at that moment

Only allow trading for that session if the Asian range passes the selected filters.

ATR-relative example:

Asian range must be between X × ATR and Y × ATR.

Important:

This condition should be checked once only at the start of the trade window, not every signal.


2. Breakout Candle Strength Filter

Add an optional breakout candle quality filter.

Inputs

  • Use_Breakout_Candle_Filter = true/false
  • Min_Body_Percent = number
  • Close_Position_Percent = number
  • Breakout_Buffer_Points = number

Logic

For the candle that closes outside the Asian range:

  • Candle range = High - Low
  • Candle body = absolute value of Close - Open
  • Body % = Candle body / Candle range × 100

Trade is valid only if:

Long

  • Candle closes above Asian high.
  • Close is at least Breakout_Buffer_Points above Asian high.
  • Candle body % is at least Min_Body_Percent .
  • Close is in the top Close_Position_Percent of the candle range.

Short

  • Candle closes below Asian low.
  • Close is at least Breakout_Buffer_Points below Asian low.
  • Candle body % is at least Min_Body_Percent .
  • Close is in the bottom Close_Position_Percent of the candle range.

Example:

If Close_Position_Percent = 25 , then:

  • Long close must be in the top 25% of candle range.
  • Short close must be in the bottom 25% of candle range.

3. Entry Mode Options

Add selectable entry modes.

Input

Entry_Mode options:

  1. Breakout_Close
  2. Retest
  3. Split_Entry

Mode 1 — Breakout Close

This is the current default logic.

Long

Enter after candle closes above Asian high and passes all filters.

Short

Enter after candle closes below Asian low and passes all filters.


Mode 2 — Retest Entry

Do not enter immediately on breakout close.

First, wait for a valid breakout candle close outside the Asian range.

Then wait for price to retest the broken Asian level.

Long Retest

  • Breakout candle closes above Asian high.
  • Price then pulls back to/near Asian high.
  • Enter long after confirmation.

Short Retest

  • Breakout candle closes below Asian low.
  • Price then pulls back to/near Asian low.
  • Enter short after confirmation.

The retest level is:

  • Asian high for longs.
  • Asian low for shorts.

Not the Asian midline.

Retest Inputs

  • Retest_Tolerance_Points = number
  • Max_Candles_To_Wait_For_Retest = number
  • Require_Retest_Confirmation_Candle = true/false

Retest Confirmation Logic

If confirmation candle is required:

Long

After price retests Asian high, enter only if a candle closes bullish / back above the retest level.

Short

After price retests Asian low, enter only if a candle closes bearish / back below the retest level.

If no retest occurs within Max_Candles_To_Wait_For_Retest , cancel the setup for that session.


Mode 3 — Split Entry

Split the trade into two parts:

  • First entry on breakout close.
  • Second entry on retest confirmation.

Inputs

  • Split_First_Entry_Percent = number
  • Split_Second_Entry_Percent = number

Example:

  • First entry = 50%
  • Second entry = 50%

Total combined risk should still equal the selected risk %, e.g. 0.5%.

If the retest does not happen, only the first breakout entry remains active.


4. Pending Order Mode

Do not use pending orders as default.

For this version, entries should remain based on candle-close confirmation.

Optional future mode can be added if simple:

  • Use_Pending_Order_Entry = true/false

But default should be:

Candle close outside Asian range, not wick-based pending order trigger.

Reason: pending orders may trigger on false wick breakouts.


5. Higher Timeframe Trend Filter

Add optional higher timeframe MA filter.

Inputs

  • Use_HTF_MA_Filter = true/false
  • HTF_MA_Timeframe = M15/M30/H1/H4/D1
  • HTF_MA_Length = number
  • HTF_MA_Method = SMA/EMA
  • HTF_MA_Applied_Price = Close/Open/High/Low/etc.
  • HTF_MA_Condition = Above/Below/Both Directional

Logic

Directional example:

  • Longs only allowed if price is above HTF MA.
  • Shorts only allowed if price is below HTF MA.

This should work separately from the existing MA filter.


6. Volatility Regime Filter

Add optional ATR / ADX volatility filters.

ATR Rising Filter Inputs

  • Use_ATR_Rising_Filter = true/false
  • ATR_Rising_Period = number
  • ATR_Rising_Lookback = number

Logic

Only allow trades if:

Current ATR > ATR value X candles ago.


ATR vs ATR Average Filter Inputs

  • Use_ATR_Average_Filter = true/false
  • ATR_Average_Period = number
  • ATR_Average_MA_Period = number

Logic

Only allow trades if:

Current ATR > ATR moving average.


ADX Filter Inputs

  • Use_ADX_Filter = true/false
  • ADX_Period = number
  • Min_ADX_Value = number

Logic

Only allow trades if:

ADX is above minimum value.


7. Direction Controls

Add direction options.

Input

Trade_Direction options:

  • Both
  • Long Only
  • Short Only
  • HTF Bias Only

Logic

  • Long Only = only take Asian high breakouts.
  • Short Only = only take Asian low breakouts.
  • Both = take either side.
  • HTF Bias Only = direction controlled by HTF MA filter.

8. One Trade Per Day / Session

Add strict trade limit options.

Inputs

  • One_Trade_Per_Day = true/false
  • Stop_After_First_Loss = true/false
  • Stop_After_First_Win = true/false

Logic

If One_Trade_Per_Day = true , only one completed trade is allowed per session/day.

If first trade loses and Stop_After_First_Loss = true , stop trading until next session.

If first trade wins and Stop_After_First_Win = true , stop trading until next session.


9. Time-Based Exit Rules

Add optional exit controls.

Inputs

  • Use_Close_By_Time = true/false
  • Close_By_Time = time
  • Use_Min_Progress_Exit = true/false
  • Min_Progress_R = number
  • Min_Progress_Candles = number
  • Use_Return_Inside_Range_Exit = true/false

Logic

Close By Time

Close any open trade at the selected time.

Minimum Progress Exit

Example:

If Min_Progress_R = 1 and Min_Progress_Candles = 4 :

If trade has not reached +1R within 4 candles, close the trade.

Return Inside Range Exit

If trade breaks out but then closes back inside the Asian range, close the trade.


10. Baseline Settings To Preserve

Please preserve all current SUNRISE settings and add the new options without removing existing functionality.

Current working baseline to test from:

  • Symbol: GBPUSD
  • Timeframe: M30
  • Asian session: 01:00–09:00 broker time
  • Trade window: 09:00–11:00 broker time
  • MA length: 200
  • MA method: EMA
  • ATR period: 20
  • ATR multiplier: 2.5
  • TP mode: Risk/Reward
  • TP: 3R
  • Risk: 0.5%

11. Important Notes
  • All new filters should be optional and default to false .
  • The EA should still work exactly like the current SUNRISE EA if all advanced filters are disabled.
  • Broker server time should remain supported.
  • Filters should be visible and easy to optimise in MT5 Strategy Tester.
  • Please keep input names clear and grouped logically.


also NYBOX additional 50% rule input:

Please add a new stop-loss management input to the NYBOX EA.

Feature name:
Reduce Risk at % to TP

Purpose:
After a trade is opened, once price reaches a set percentage of the way to the take profit, the EA should move the stop loss closer to entry to reduce the remaining risk.

Inputs:

  • Enable Reduce Risk at % to TP: true/false

  • Trigger % to TP: default 50%

  • Remaining Risk %: default 50%

Logic:
When a trade is opened, the EA should calculate the original risk distance between entry price and stop loss.

Then, when price reaches 50% of the distance from entry to take profit, the EA should move the stop loss so that only 50% of the original risk remains.

Example for BUY:

  • Entry: 100

  • Original SL: 90

  • TP: 120

  • Original risk = 10 points

  • 50% to TP = price reaches 110

  • Move SL from 90 to 95

  • Remaining risk is now 5 points

Example for SELL:

  • Entry: 100

  • Original SL: 110

  • TP: 80

  • Original risk = 10 points

  • 50% to TP = price reaches 90

  • Move SL from 110 to 105

  • Remaining risk is now 5 points

Important:

  • This should only happen once per trade

  • It should not move SL to breakeven

  • It should reduce the original risk by the selected percentage

  • It should work for both buy and sell trades

  • Existing TP should remain unchanged

  • The feature should be optional and controlled by inputs

Default:

  • Enabled: false

  • Trigger % to TP: 50%

  • Remaining Risk %: 50%




Han respondido

1
Desarrollador 1
Evaluación
(295)
Proyectos
367
30%
Arbitraje
37
27% / 65%
Caducado
10
3%
Trabaja
Ha publicado: 10 ejemplos
2
Desarrollador 2
Evaluación
(25)
Proyectos
34
26%
Arbitraje
4
50% / 25%
Caducado
4
12%
Libre
3
Desarrollador 3
Evaluación
(111)
Proyectos
184
25%
Arbitraje
25
16% / 76%
Caducado
16
9%
Libre
4
Desarrollador 4
Evaluación
(395)
Proyectos
556
41%
Arbitraje
30
57% / 3%
Caducado
57
10%
Libre
Ha publicado: 11 ejemplos
5
Desarrollador 5
Evaluación
(62)
Proyectos
90
29%
Arbitraje
24
13% / 58%
Caducado
7
8%
Trabaja
6
Desarrollador 6
Evaluación
(438)
Proyectos
649
53%
Arbitraje
35
63% / 20%
Caducado
7
1%
Trabaja
7
Desarrollador 7
Evaluación
(106)
Proyectos
129
25%
Arbitraje
25
28% / 56%
Caducado
8
6%
Libre
8
Desarrollador 8
Evaluación
(274)
Proyectos
403
28%
Arbitraje
40
40% / 50%
Caducado
1
0%
Libre
9
Desarrollador 9
Evaluación
(635)
Proyectos
744
34%
Arbitraje
49
53% / 39%
Caducado
14
2%
Trabaja
10
Desarrollador 10
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
11
Desarrollador 11
Evaluación
(319)
Proyectos
574
35%
Arbitraje
83
31% / 45%
Caducado
207
36%
Libre
12
Desarrollador 12
Evaluación
(2678)
Proyectos
3425
68%
Arbitraje
78
49% / 14%
Caducado
343
10%
Libre
Ha publicado: 1 ejemplo
13
Desarrollador 13
Evaluación
(11)
Proyectos
16
50%
Arbitraje
1
100% / 0%
Caducado
4
25%
Libre
14
Desarrollador 14
Evaluación
(79)
Proyectos
108
56%
Arbitraje
5
80% / 20%
Caducado
5
5%
Trabaja
15
Desarrollador 15
Evaluación
(185)
Proyectos
199
47%
Arbitraje
4
50% / 25%
Caducado
1
1%
Trabajando
16
Desarrollador 16
Evaluación
(12)
Proyectos
24
50%
Arbitraje
1
100% / 0%
Caducado
6
25%
Libre
17
Desarrollador 17
Evaluación
(30)
Proyectos
38
45%
Arbitraje
4
50% / 50%
Caducado
3
8%
Trabaja
18
Desarrollador 18
Evaluación
(29)
Proyectos
36
39%
Arbitraje
0
Caducado
2
6%
Libre
19
Desarrollador 19
Evaluación
(852)
Proyectos
1470
72%
Arbitraje
122
29% / 48%
Caducado
361
25%
Libre
Ha publicado: 3 artículos
20
Desarrollador 20
Evaluación
(264)
Proyectos
311
75%
Arbitraje
16
69% / 0%
Caducado
6
2%
Trabaja
21
Desarrollador 21
Evaluación
(268)
Proyectos
603
34%
Arbitraje
65
22% / 57%
Caducado
146
24%
Trabaja
Ha publicado: 1 artículo, 22 ejemplos
22
Desarrollador 22
Evaluación
(34)
Proyectos
35
40%
Arbitraje
0
Caducado
3
9%
Libre
23
Desarrollador 23
Evaluación
(279)
Proyectos
378
72%
Arbitraje
19
32% / 47%
Caducado
16
4%
Libre
Ha publicado: 15 ejemplos
24
Desarrollador 24
Evaluación
(648)
Proyectos
876
48%
Arbitraje
29
38% / 17%
Caducado
63
7%
Libre
25
Desarrollador 25
Evaluación
(84)
Proyectos
99
33%
Arbitraje
9
22% / 56%
Caducado
5
5%
Trabaja
26
Desarrollador 26
Evaluación
(8)
Proyectos
8
0%
Arbitraje
2
50% / 0%
Caducado
1
13%
Trabaja
27
Desarrollador 27
Evaluación
(7)
Proyectos
6
0%
Arbitraje
4
25% / 75%
Caducado
2
33%
Libre
28
Desarrollador 28
Evaluación
(14)
Proyectos
15
20%
Arbitraje
1
100% / 0%
Caducado
0
Libre
29
Desarrollador 29
Evaluación
(10)
Proyectos
12
0%
Arbitraje
3
33% / 33%
Caducado
0
Libre
30
Desarrollador 30
Evaluación
(215)
Proyectos
281
21%
Arbitraje
27
59% / 15%
Caducado
0
Trabaja
31
Desarrollador 31
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
32
Desarrollador 32
Evaluación
(4)
Proyectos
5
0%
Arbitraje
0
Caducado
0
Libre
33
Desarrollador 33
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Trabaja
Solicitudes similares
I am a serious trader looking to acquire an existing, stable, and consistently profitable Expert Advisor (EA) specifically designed primarily for Gold (XAUUSD). This is an outright purchase. I am not interested in developing a new EA from scratch. I am only interested in ready-to-use systems with a genuine, verifiable track record of performance
I am a serious buyer looking to acquire an existing, stable, and consistently profitable Expert Advisor (EA) specifically designed primarily for Gold (XAUUSD). This is an outright purchase. I am not interested in developing a new EA from scratch. I am only interested in ready-to-use systems with a genuine, verifiable track record of performance. ✅ EA Requirements Mandatory Demo Testing on DuraMarket Testing on a
For professional developers only: don’t fluff or be hyped to take the job I have two codes they are the same if I can say they are the same buy/sell arrows clean codes you merge them into one shot sniper system. I already did the job before I want a professional to stamp them into a complete system the other one is late the other one is on time I want clean sniper; check pictures before u take the job
USD54 Applications The bot should open trades when the price breaks out of the band by a specified percentage, for example, 0.10%. If the price breaks above the band, the bot should open a long position. If the price breaks below the band, it should open a short position. The bot should also open trades when the price touches a band: Bullish band cross: When a bullish cross occurs between the bands, the bot should
#property strict #property version "1.00" #property description "EMA Trend + Pullback + Engulfing EA" // Include the standard MT5 trade library. #include <Trade/Trade.mqh> CTrade trade; //============================================================== // INPUT SETTINGS //============================================================== // Trend indicators input int FastEMA = 20; input int SlowEMA = 50; // Pullback
Hi there great developers I need someone who can create an trading ea that can open order per movement but it must cover up the spread first if it going to place an order the ea should read the spread it can use and indicator that can calculate the market point using atr if the spread is 20 points then the ea calculation the next price if it will go more then 20 points it can automatically place orders and close in
Title: Build a Semi-Automated MT5 Execution Assistant (MQL5) with Custom Panel Description: I am looking for an experienced MQL5 developer to build a semi-automated execution assistant for MetaTrader 5. I know this is a standard semi-automated panel with trade management. I am looking for a developer who has an existing GUI/panel library and standard trade management modules that can be adapted quickly. If you are
Trade copier EA 40+ USD
Develop a low-latency trade copier EA supporting MT4 and MT5 in all directions, across different brokers, with one master account copying to multiple follower accounts. Automatically adapt symbol names, price digits, contract sizes, and lot-size limits, with manual symbol mapping available. Support fixed lots, lot multipliers, and equity-proportional sizing. Synchronize market and pending orders, modifications
Hello, I’m looking for an experienced MQL5 developer to build a genuine ultra-fast HFT robot for MetaTrader 5, not a conventional scalping EA. The main instruments are EURUSD, BTCUSD, and XAUUSD. Requirements include fast execution, independent strategies, strict risk management, spread/slippage protection, separate optimization for each instrument, full MQ5 source code without a mandatory license lock, and detailed
Best trader robot 499 - 550 USD
Objective: Develop a robust and highly profitable Expert Advisor (EA) for MetaTrader based on a precise custom trading strategy to achieve a high win rate. ​ Instrument & Timeframe: XAUUSD (Gold), optimized for M5 / M15 timeframes. ​ Entry Strategy: Open Buy/Sell orders based on strict confirmation signals (e.g., Moving Average crossover combined with Price Action or RSI threshold). ​ Lot Size & Risk Management

Información sobre el proyecto

Presupuesto
170+ USD