SUNRISE ADVANCED + DAILY BOX 50% RULE

MQL5 エキスパート

仕事が完了した

実行時間11 日

指定

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%




応答済み

1
開発者 1
評価
(282)
プロジェクト
353
29%
仲裁
37
27% / 65%
期限切れ
10
3%
取り込み中
2
開発者 2
評価
(25)
プロジェクト
34
26%
仲裁
4
50% / 25%
期限切れ
4
12%
3
開発者 3
評価
(111)
プロジェクト
183
25%
仲裁
24
17% / 75%
期限切れ
16
9%
4
開発者 4
評価
(395)
プロジェクト
556
41%
仲裁
30
57% / 3%
期限切れ
57
10%
パブリッシュした人: 11 codes
5
開発者 5
評価
(62)
プロジェクト
90
29%
仲裁
24
13% / 58%
期限切れ
7
8%
仕事中
6
開発者 6
評価
(435)
プロジェクト
642
53%
仲裁
35
63% / 20%
期限切れ
6
1%
仕事中
7
開発者 7
評価
(106)
プロジェクト
129
25%
仲裁
25
28% / 56%
期限切れ
8
6%
8
開発者 8
評価
(274)
プロジェクト
403
28%
仲裁
40
40% / 50%
期限切れ
1
0%
9
開発者 9
評価
(619)
プロジェクト
722
33%
仲裁
46
48% / 41%
期限切れ
14
2%
取り込み中
10
開発者 10
評価
プロジェクト
0
0%
仲裁
0
期限切れ
0
11
開発者 11
評価
(319)
プロジェクト
571
35%
仲裁
83
31% / 45%
期限切れ
206
36%
12
開発者 12
評価
(2676)
プロジェクト
3414
68%
仲裁
77
48% / 14%
期限切れ
342
10%
パブリッシュした人: 1 code
13
開発者 13
評価
(10)
プロジェクト
16
50%
仲裁
1
100% / 0%
期限切れ
4
25%
14
開発者 14
評価
(70)
プロジェクト
88
58%
仲裁
6
67% / 17%
期限切れ
2
2%
取り込み中
15
開発者 15
評価
(179)
プロジェクト
193
46%
仲裁
4
50% / 25%
期限切れ
1
1%
取り込み中
16
開発者 16
評価
(12)
プロジェクト
24
50%
仲裁
1
100% / 0%
期限切れ
6
25%
17
開発者 17
評価
(29)
プロジェクト
36
44%
仲裁
4
50% / 50%
期限切れ
3
8%
18
開発者 18
評価
(28)
プロジェクト
34
35%
仲裁
0
期限切れ
2
6%
仕事中
19
開発者 19
評価
(851)
プロジェクト
1464
72%
仲裁
122
29% / 48%
期限切れ
358
24%
仕事中
パブリッシュした人: 3 articles
20
開発者 20
評価
(260)
プロジェクト
305
76%
仲裁
13
77% / 0%
期限切れ
5
2%
取り込み中
21
開発者 21
評価
(268)
プロジェクト
603
34%
仲裁
65
22% / 57%
期限切れ
147
24%
仕事中
パブリッシュした人: 1 article, 22 codes
22
開発者 22
評価
(34)
プロジェクト
35
40%
仲裁
0
期限切れ
3
9%
23
開発者 23
評価
(279)
プロジェクト
378
72%
仲裁
19
32% / 47%
期限切れ
16
4%
パブリッシュした人: 15 codes
24
開発者 24
評価
(645)
プロジェクト
873
48%
仲裁
29
38% / 17%
期限切れ
63
7%
25
開発者 25
評価
(83)
プロジェクト
95
32%
仲裁
9
22% / 56%
期限切れ
5
5%
仕事中
26
開発者 26
評価
(8)
プロジェクト
8
0%
仲裁
2
50% / 0%
期限切れ
1
13%
仕事中
27
開発者 27
評価
(7)
プロジェクト
6
0%
仲裁
4
25% / 75%
期限切れ
2
33%
28
開発者 28
評価
(14)
プロジェクト
15
20%
仲裁
1
100% / 0%
期限切れ
0
29
開発者 29
評価
(10)
プロジェクト
12
0%
仲裁
3
33% / 33%
期限切れ
0
30
開発者 30
評価
(211)
プロジェクト
274
21%
仲裁
24
54% / 17%
期限切れ
0
31
開発者 31
評価
プロジェクト
0
0%
仲裁
0
期限切れ
0
32
開発者 32
評価
(4)
プロジェクト
5
0%
仲裁
0
期限切れ
0
33
開発者 33
評価
プロジェクト
0
0%
仲裁
0
期限切れ
0
類似した注文
I am looking for an experienced MQL5 Expert Advisor (EA) developer to analyze an existing trading setup and develop a similar automated trading robot. Project Overview I have access to a demo trading account where trades are being executed automatically. The trading results look very promising, but I do not know exactly what strategy, logic, indicators, or trade-management rules are being used. I will provide access
Most of the expert is already coded . Create a panel to show the Ratio for the Range . Trigger is based on ratio . Show Distribution / project starts after we clear Distribution
Modification of existing ea …. Add ema filter, add risk percentage per trade, and modify the pips per day filter. I already have the ea code I just need these things added and modifified
Expert Advisors 300+ USD
double CRiskManager::CalculateLotSize(double slPoints) { double balance = AccountInfoDouble(ACCOUNT_BALANCE); double riskMoney = balance * (m_riskPercent / 100.0); double tickValue = SymbolInfoDouble(_Symbol, SYMBOL_TRADE_TICK_VALUE); double tickSize = SymbolInfoDouble(_Symbol, SYMBOL_TRADE_TICK_SIZE); double pointValue = tickValue / tickSize; double lot = riskMoney / (slPoints * pointValue);
i share my strategy i need a bot trending bot fo mt5 . i attached the photo with this it help to make bot. it basicly 1 hours time frame base. i try but failed to make it
Title: Simple background trading bot for my Oanda account (v20 REST API) Overview Hi, I need a simple, lightweight event based standalone trading bot that connects directly to my Oanda account using broker’s standard REST API (V20 account) via VPS The bot just needs to look at group of 5 currency pairs (manually selectable and adjustable) in different 4 baskets, do some basic percentage math every period, and place
MQL5 Developer 30+ USD
📄 وثيقة المواصفات الفنية لروبوت التداول (MQL5 EA Specification) 📌 1. ملخص المشروع والهدف * اسم المشروع: Gold Cent Grid-Hedge EA * المنصة: MetaTrader 5 (MQL5) * أداة التداول: الذهب (XAUUSD) * نوع الحساب: حساب سنت (Cent Account) * فكرة الاستراتيجية: تداول شبكة هيدج متوازنة (Grid-Hedging) تفتح صفقات تعزيز كل مسافة محددة، وتغلق الطرف الأكثر ربحاً عند تحقيق هدف مالّي مجمع بالدولار/السنت لإعادة هيكلة التوازن. ⚙️ 2
I need a developer who also understands trading. I have a Telegram copy-trading bot that reads signals from a Telegram channel via a Python script and converts them into trading orders. I want to create a program that analyzes Gold (XAUUSD) charts specifically and sends signals in this exact format: #XAUUSD BUY 4324-4321 TP 4327 TP 4330 TP 4334 TP 4339 TP 4344 TP 4354 TP 4364 SL 4311 If the # symbol is missing at the
Hi developer I want to convert my mt4 EA to mt5 EA . I have a mt4 ea with source code. i want developer to copy same mt4 code and create mt5 EA
Gold hunter v5 30+ USD
*TITLE:* 5 Trades EA - EMA20/50 + RSI - Safe for Small Account *SPECIFICATION:* I need MT5 EA - Source Code .mq5 *Logic:* Buy: EMA20 > EMA50 and RSI(14) 45-70 Sell: EMA20 < EMA50 and RSI(14) 30-55 Timeframe M15, Symbol XAUUSD and all Forex *Trade Management:* Max 5 trades at same time. Fixed lot 0.01. No martingale. No lot increase. Distance between trades 150 points. Do not open all 5 at same price. Max 5 total

プロジェクト情報

予算
170+ USD