SUNRISE ADVANCED + DAILY BOX 50% RULE

MQL5 Esperti

Specifiche

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%




Con risposta

1
Sviluppatore 1
Valutazioni
(258)
Progetti
321
30%
Arbitraggio
34
26% / 65%
In ritardo
10
3%
Gratuito
2
Sviluppatore 2
Valutazioni
(25)
Progetti
33
24%
Arbitraggio
4
25% / 25%
In ritardo
4
12%
In elaborazione
3
Sviluppatore 3
Valutazioni
(107)
Progetti
174
25%
Arbitraggio
23
9% / 78%
In ritardo
16
9%
In elaborazione
4
Sviluppatore 4
Valutazioni
(394)
Progetti
552
41%
Arbitraggio
30
57% / 3%
In ritardo
57
10%
Gratuito
Pubblicati: 11 codici
5
Sviluppatore 5
Valutazioni
(62)
Progetti
90
29%
Arbitraggio
24
13% / 58%
In ritardo
7
8%
In elaborazione
6
Sviluppatore 6
Valutazioni
(434)
Progetti
635
54%
Arbitraggio
32
56% / 22%
In ritardo
6
1%
In elaborazione
7
Sviluppatore 7
Valutazioni
(104)
Progetti
125
24%
Arbitraggio
23
26% / 52%
In ritardo
8
6%
In elaborazione
8
Sviluppatore 8
Valutazioni
(274)
Progetti
403
28%
Arbitraggio
40
40% / 50%
In ritardo
1
0%
Gratuito
9
Sviluppatore 9
Valutazioni
(572)
Progetti
665
32%
Arbitraggio
42
45% / 45%
In ritardo
12
2%
In elaborazione
10
Sviluppatore 10
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
11
Sviluppatore 11
Valutazioni
(313)
Progetti
559
35%
Arbitraggio
80
31% / 44%
In ritardo
203
36%
In elaborazione
12
Sviluppatore 12
Valutazioni
(2664)
Progetti
3391
68%
Arbitraggio
77
48% / 14%
In ritardo
342
10%
Gratuito
Pubblicati: 1 codice
13
Sviluppatore 13
Valutazioni
(2)
Progetti
2
0%
Arbitraggio
1
0% / 0%
In ritardo
1
50%
In elaborazione
14
Sviluppatore 14
Valutazioni
(37)
Progetti
42
55%
Arbitraggio
4
50% / 25%
In ritardo
0
In elaborazione
15
Sviluppatore 15
Valutazioni
(158)
Progetti
168
43%
Arbitraggio
3
33% / 33%
In ritardo
1
1%
In elaborazione
16
Sviluppatore 16
Valutazioni
(12)
Progetti
24
50%
Arbitraggio
1
100% / 0%
In ritardo
6
25%
Gratuito
17
Sviluppatore 17
Valutazioni
(20)
Progetti
25
40%
Arbitraggio
3
67% / 33%
In ritardo
1
4%
In elaborazione
18
Sviluppatore 18
Valutazioni
(23)
Progetti
29
31%
Arbitraggio
0
In ritardo
2
7%
Gratuito
19
Sviluppatore 19
Valutazioni
(851)
Progetti
1459
72%
Arbitraggio
122
29% / 48%
In ritardo
356
24%
In elaborazione
Pubblicati: 3 articoli
20
Sviluppatore 20
Valutazioni
(242)
Progetti
285
77%
Arbitraggio
13
69% / 0%
In ritardo
4
1%
In elaborazione
21
Sviluppatore 21
Valutazioni
(267)
Progetti
599
35%
Arbitraggio
64
20% / 58%
In ritardo
147
25%
In elaborazione
Pubblicati: 1 articolo, 22 codici
22
Sviluppatore 22
Valutazioni
(26)
Progetti
28
36%
Arbitraggio
0
In ritardo
3
11%
Gratuito
23
Sviluppatore 23
Valutazioni
(279)
Progetti
375
72%
Arbitraggio
19
32% / 47%
In ritardo
14
4%
Gratuito
Pubblicati: 14 codici
24
Sviluppatore 24
Valutazioni
(640)
Progetti
864
48%
Arbitraggio
29
38% / 17%
In ritardo
63
7%
In elaborazione
25
Sviluppatore 25
Valutazioni
(74)
Progetti
84
27%
Arbitraggio
8
13% / 63%
In ritardo
4
5%
In elaborazione
26
Sviluppatore 26
Valutazioni
(8)
Progetti
8
0%
Arbitraggio
2
50% / 0%
In ritardo
1
13%
In elaborazione
27
Sviluppatore 27
Valutazioni
(6)
Progetti
5
0%
Arbitraggio
3
33% / 67%
In ritardo
2
40%
In elaborazione
28
Sviluppatore 28
Valutazioni
(14)
Progetti
15
20%
Arbitraggio
1
100% / 0%
In ritardo
0
Gratuito
29
Sviluppatore 29
Valutazioni
(10)
Progetti
11
0%
Arbitraggio
3
0% / 33%
In ritardo
1
9%
In elaborazione
30
Sviluppatore 30
Valutazioni
(198)
Progetti
254
20%
Arbitraggio
22
50% / 18%
In ritardo
0
Caricato
31
Sviluppatore 31
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
32
Sviluppatore 32
Valutazioni
(4)
Progetti
4
0%
Arbitraggio
0
In ritardo
0
Gratuito
33
Sviluppatore 33
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
Ordini simili
I'm looking for develop a predictive program that trades in forex currencies .The program will identify patterns and triggers and use this data to make high probability trades. If you're a professional developer that's capable to take on this project. Kindly send me a message and let's discuss further
Sira 30+ USD
I want 90% accuracy fast and reliable indicate signals able to read risk and profit to keep a good trade notify when trade is going down or when it will be a loss
Hello! I am searching skilled CTRADE programmer to fix my Expert Advisor. Details will be showed for selected programmer. I want to find a Developer to perform this work and settle payments in this Application. I undertake not to communicate with Applicants anywhere else except this Application, including third-party messengers, personal correspondence or emails. I understand that violators will be banned from
preciso de um programa paracido com o CAP channel com botao de refresh e opcaos de alterar o periodo. utilizava um muito bom, mas o vendedor acredito ter sido excluido da comunidade, sumiu. e o que tinha parou de funcionar
Hello I need a Person who write for me a EA on MT5 on renko charts, refreshed time 10s (optionally other timeframes 5s, 15s, 30s, 1min etc). EA will base on The bollinger band modified indicator, the source code is from Tradingwiev. I will share it. Rules: EA will open positions when price close above/under some band from indicator, always on closed brick (EA must wait to close timeframe, SL or Trailing stop will
Krushan 30+ USD
#property copyright "Krishh yadav" #property link "https://krishhautomationfx.in" #property version "1.07" #property strict #include <Trade\Trade.mqh> #include <Trade\AccountInfo.mqh> #include <Trade/PositionInfo.mqh> CTrade trade; CPositionInfo posinfo; CPositionInfo pos; enum LotMode { FixedLot = 0, RiskLot = 1, EquityLot = 2, }; enum ENUM_HOUR { h00=0, h01=1, h02=2, h03=3, h04=4, h05=5, h06=6, h07=7
I want to convert an MT4 Fractal Breakout EA to MT5. This EA places pending stop order to capture the fractal breakout and trail it. No complex indicator or rules. Enable only Buy or Only Sell or Both Buy Sell option in any indices. MT4 backtest should match Mt5 to some extent
Hello! Is there any person who can teach me Forex. I prefer high time frame strategies Like H4, D1, but I am open for your propositions. Have a nice day
SNIPER X AI 30 - 200 USD
I really need a developer Who can help me to create my SNIPER X AI - Elite AI Trading System Overview SNIPER X AI BOT is an AI-assisted trading system for Forex, Crypto, Stocks, Indices, and Gold. Currency: USD,RAND,KWD, POUND,EURO Core Features AI Scalping, Sniper Entries, Auto Buy/Sell, Smart Risk Management, Telegram Alerts, Mobile Monitoring, VPS Deployment. Supported Platforms MetaTrader 4, MetaTrader 5, Exness
I am looking for a professional developer to create an automated trading bot for Synthetic Derivative Indices. The bot should be designed for efficiency, precision, and stability, with the ability to execute trades automatically based on predefined strategies and market conditions. and synthetic indices trading is essential for this project

Informazioni sul progetto

Budget
170+ USD