Gold Scalping EA (grid hedging)

Specification

This Technical Requirement Specification (TRS) is the overall detailed description of the EA required. It incorporates the modular entry system, multi-loop basket management, and the dynamic Take Profit scaling requirement where the profit target increases proportionally with the risk (lot size) of the basket. 

Some of the below comments are improvement from template of EA already developed.
 


Technical Requirement Specification: Global Basket Scalper (V3.0)

1. Phase 1: Modular Entry Logic (Initial Trade) à NEW / replaces ADX feature

Phase 1 governs the first trade of any new cycle. The logic must be modular, allowing the user to enable/disable specific filters.

  • Modular "Gate" System:
    • Trend Bias Gate (EMA): Checks price against an EMA (user-defined period, max 10 min). Settings as per user choice (manual or as per trend)
    • Volatility Gate (BBW): Only allows entry if Bollinger Band Width (20, 2.0) is currently expanding ($BBW > SMA100$). (True or false – as per user choice) Settings as per user choice
    • 55-EMA Channel Gate: Price must be outside the channel formed by the 55-EMA High and 55-EMA Low. (True or false – as per user choice) Settings as per user choice
    • Speed-Cross Signal: Triggers on 9/21 EMA crossover with RSI (14) confirmed above/below the 50 mid-line. (True or false – as per user choice) Settings as per user choice
    • Thrust Filter (ATR Multiplier): To ensure a valid "push" without being too restrictive, the signal candle body must be above ({ATR}(10) * multiplier) (True or false – as per user choice) Settings as per user choice

2. Phase 2: Basket & Recovery Management à existing in EA version shared

Once the first trade is open, the EA manages the "Basket" across multiple loops.

  • Loop 1 (Initial): Adds positions at fixed $X$-pip intervals only as price moves favorably (adding to winners).
  • Hedging Countermeasure: If price moves $X$ pips against any entry, the EA opens an equal-sized counter-position (reversal logic).
  • Recovery Loops (Loops 2–N):

.

    • Constraint 1: Preceding loop reaches a user-defined position count
    • Constraint 2: New Loops need to meet the criteria chosen in phase 1 New feature
    • Lot Multiplier: New loops use a multiplier (e.g., 1.5x or 2.0x) to increase basket weight. Settings as per user choice
    • Max Quantity of loops: in settings

3. Phase 3: Dynamic Profit Closure & Continuity NEW

This section defines how the EA exits and immediately hunts for the next cycle.

  • Dynamic Take Profit Scaling:
    • Logic: The Take Profit (TP) target must increase proportionally as new loops are added and lot sizes increase.
    • Formula: $GTP = TP_{Base} \times (\text{Total Basket Lots} / \text{Initial Lot Size})$.
    • Global Closure: When the combined net profit of all active loops reaches this dynamic target, all positions close.
  • Momentum Continuity:
    • Logic: After a successful TP closure, if SMA 50 and SMA 100 are aligned (both below price for Buys, above for Sells), the EA skips Phase 1 and restarts Loop 1 immediately in the same direction.
  • Safeguards:
    • News Filter: Stops new initial loop initialization before/after high-impact news. The logic reaches completion of ongoing loop.
    • Trading Hours: Restricts initial entries to specific daily windows.
    • Max Drawdown: Hard equity stop that liquidates all trades and resets the cycle.
    • Max Quantity of open positions: Hard equity stop that liquidates all trades and resets the cycle.

4. Developer User Settings Interface

Section

Parameter Name

Type

Description

Logic Toggles

Use_EMA_Trend / Use_BBW / Use_Channel

Bool

Modular Phase 1 toggles.

Loop 1 Setup

Initial_Lot_Size / TP_Base_Pips

double / int

Starting volume and base profit target.

Grid Logic

Dist_Between_Trades / Hedge_Distance

int

Pips for scaling and reversal.

Recovery

Max_Quantity_Loops / Trigger_Pos_Count

int

User-defined loop cap and trigger.

Recovery

Proximity_Offset / Lot_Multiplier

int / double

Distance from entry and weight increase.

Safety

Max_Drawdown_Pips / News_Filter_Toggle

int / bool

Global stop loss and news logic.

Continuity

Use_SMA_Momentum_Restart

bool

Toggles SMA 50/100 instant re-entry logic.


5. Developer Implementation Guidelines

  1. Dashboard: On-chart UI must display active Loop Tier, Current Basket Profit vs. Dynamic TP, and News status.

 


Responded

1
Developer 1
Rating
(392)
Projects
544
40%
Arbitration
30
57% / 3%
Overdue
57
10%
Free
Published: 11 codes
2
Developer 2
Rating
(21)
Projects
30
57%
Arbitration
0
Overdue
1
3%
Working
3
Developer 3
Rating
(8)
Projects
8
0%
Arbitration
0
Overdue
0
Free
4
Developer 4
Rating
(2626)
Projects
3336
67%
Arbitration
77
48% / 14%
Overdue
342
10%
Free
Published: 1 code
5
Developer 5
Rating
(305)
Projects
548
35%
Arbitration
79
32% / 42%
Overdue
197
36%
Working
6
Developer 6
Rating
(2)
Projects
2
0%
Arbitration
2
0% / 50%
Overdue
1
50%
Loaded
7
Developer 7
Rating
(24)
Projects
25
68%
Arbitration
0
Overdue
1
4%
Working
Published: 2 codes
8
Developer 8
Rating
(7)
Projects
10
10%
Arbitration
3
33% / 33%
Overdue
4
40%
Busy
9
Developer 9
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
10
Developer 10
Rating
(38)
Projects
51
20%
Arbitration
15
27% / 67%
Overdue
7
14%
Free
Published: 1 code
11
Developer 11
Rating
Projects
1
0%
Arbitration
1
100% / 0%
Overdue
0
Free
12
Developer 12
Rating
(15)
Projects
34
24%
Arbitration
4
0% / 50%
Overdue
2
6%
Working
13
Developer 13
Rating
(8)
Projects
12
33%
Arbitration
0
Overdue
3
25%
Working
14
Developer 14
Rating
(3)
Projects
1
100%
Arbitration
3
0% / 100%
Overdue
0
Free
15
Developer 15
Rating
(144)
Projects
186
41%
Arbitration
24
58% / 21%
Overdue
13
7%
Free
16
Developer 16
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Working
17
Developer 17
Rating
(330)
Projects
396
53%
Arbitration
20
55% / 15%
Overdue
29
7%
Busy
18
Developer 18
Rating
Projects
0
0%
Arbitration
1
0% / 100%
Overdue
0
Free
Similar orders
I am looking for an experienced developer to create an automated trading bot on the Quantower platform based on my trading rules. The bot should execute trades automatically. Kindly bid for it if it is what you can code for me
Hi developers, I would like to create an indicator from tradingview to MT5 forex trading.The indicator it's called (SMRT Algo Pro V3) and it goes along with (SMRT Algo MTF Supply and Demand
MT5 Expert Advisor – XAUUSD Opening Range Breakout I am looking for an experienced MQL5 developer to build a robust MT5 Expert Advisor. STRATEGY DETAILS • Instrument: XAUUSD • Timeframe: M30 • Broker: Pepperstone (Spread Betting) • Trading days: Monday–Friday only OPENING RANGE • Opening range candle: 07:00 – 07:30 UK time • EA must automatically convert UK time to broker server time • Record OR High and OR Low from
EA should trade Gann indicator arrows filtered by Autotrendline indicator. Two orders per trade and when first level of Gann indicator is reached SL of second order should be moved to breakeven
Hello, I have a strategy written in Pine Script (TradingView) that used to send signals to MetaTrader 5 via PineConnector. Now I want a native MT5 Expert Advisor (EA) written in MQL5, so I can do full backtesting and trading inside MetaTrader without any external bridge. I will provide: - Full Pine Script code - Entry and exit rules (based on BOS and OB logic) - SL/TP and dynamic risk management (R:R) - Breakeven
EA for Gold 30+ USD
I am looking for a good EA robot for gold that will be taking trades on 1 min chart and takes profits on 1$ move on gold. that can take as many entries as possible in a day. example: ENTRY ON 3000.00 AND TAKE PROFIT AT 3001.00. The robot will have all the trading knowledge and strategy with a high win rate
Existing indicator compiles but does not want to attach to chart anymore, worked previously Requirements: Debugging of code so indicator attaches to chart Original values required to work as they previously worked, no adjustments Testing of indicator to make sure it attaches to a chart properly
Hi, I am looking for a good Forex programmer that could build a EA robot , It will have to be built base on fibonachi retracement, 0 , 0.236, 0.382 , 0,5 , 0.618 , 0.786, 1, 1.618 , 2.618, and 3.618, the robot should be able to make me input the fibo numbers myself. stop Loss, T.P
PROJECT DESCRIPTION I am using a Telegram → MetaTrader trade copier (currently TWP Copier 1.08) which receives trade signals correctly but does NOT consistently execute trades on MT4, despite: Signals being received and logged AutoTrading enabled Live trading allowed Correct symbol names (no suffix/prefix issues) Manual trades working perfectly No trade conflicts or filters blocking execution CURRENT ISSUE Telegram
Hello, I’m reaching out because I’m interested in hiring you to develop a custom trading bot for me. The bot should trade only XAUUSD (Gold) and be designed for long-term account growth using my own trading account size. Here are the core requirements: - Account size: $300 - Asset: XAUUSD only - Risk management: Strict and properly controlled - Risk-to-reward ratio: Clearly defined and consistently applied -

Project information

Budget
80 - 100 USD
Deadline
to 5 day(s)