Spezifikation



### **No-SL Strategy for XAU/USD (Gold)**

**Objective**: Profit from 1-pip scalps using buy/sell stop orders while hedging risk through opposing trades.  

**Conditions**:  

- Broker allows **hedging** (simultaneous buy/sell orders).  

- Zero spreads/commissions (as per your setup).  


---


### **Rules**

#### **1. Entry Logic**  

- Place **buy stops** 1 pip above the current price and **sell stops** 1 pip below.  

- Deploy a **grid of orders** at every pip (e.g., 1800.00, 1800.01, 1800.02, etc.).  


#### **2. Exit Logic**  

- **Take Profit (TP)**: Close all trades at **1-pip profit** for the entire grid.  

  - Example: If 10 buy orders and 10 sell orders are open, close all when net profit reaches 1 pip.  

- **Time-Based Exit**: Close all trades after 15 minutes to avoid overnight swaps.  


#### **3. Risk Mitigation**  

- **Micro Lots**: Use 0.01 lots per trade to limit exposure.  

- **Max Active Trades**: Cap at 20 orders (prevents margin overload).  

- **Equity Stop**: Halt trading if account equity drops by 5% in a session.  


---


### **MT4 EA Code (No SL)**

```cpp

// Inputs

input double LotSize = 0.01;    // Micro lots

input int GridStep = 1;         // 1 pip between orders

input int MaxOrders = 20;       // Max simultaneous trades

input double EquityStop = 5.0;  // Stop trading if equity drops 5%

input int MagicNumber = 9999;


// Global variables

double InitialEquity = AccountEquity();


void OnTick() {

   // Stop trading if equity drops by 5%

   if (AccountEquity() <= InitialEquity * (1 - EquityStop / 100)) {

      CloseAllTrades();

      return;

   }


   // Place orders if below max active trades

   if (OrdersTotal() < MaxOrders) {

      double currentPrice = Ask;

      double buyStopPrice = NormalizeDouble(currentPrice + GridStep * _Point, Digits);

      double sellStopPrice = NormalizeDouble(currentPrice - GridStep * _Point, Digits);


      // Place Buy Stop with 1-pip TP

      OrderSend(_Symbol, OP_BUYSTOP, LotSize, buyStopPrice, 0, 0, buyStopPrice + _Point, "BuyStop NoSL", MagicNumber);


      // Place Sell Stop with 1-pip TP

      OrderSend(_Symbol, OP_SELLSTOP, LotSize, sellStopPrice, 0, 0, sellStopPrice - _Point, "SellStop NoSL", MagicNumber);

   }


   // Close all trades if total profit >= 1 pip

   double totalProfit = CalculateTotalProfit();

   if (totalProfit >= 1 * _Point) {

      CloseAllTrades();

   }

}


// Calculate total profit of all open trades

double CalculateTotalProfit() {

   double profit = 0;

   for (int i = OrdersTotal() - 1; i >= 0; i--) {

      if (OrderSelect(i, SELECT_BY_POS) && OrderMagicNumber() == MagicNumber) {

         profit += OrderProfit();

      }

   }

   return profit;

}


// Close all open trades

void CloseAllTrades() {

   for (int i = OrdersTotal() - 1; i >= 0; i--) {

      if (OrderSelect(i, SELECT_BY_POS) && OrderMagicNumber() == MagicNumber) {

         OrderClose(OrderTicket(), OrderLots(), OrderClosePrice(), 3);

      }

   }

}

```


---


### **Critical Risks & Mitigations**

1. **Trend Risk**:  

   - If XAU/USD trends strongly in one direction (e.g., +20 pips), all opposing orders will accumulate losses.  

   - **Fix**: Add a trend filter (e.g., disable buy stops if price < 50-period EMA).  


2. **Slippage**:  

   - Rapid price movements (e.g., during Fed announcements) can skip your TP levels.  

   - **Fix**: Use `OrderClose` with `Slippage=3` in the EA.  


3. **Margin Call**:  

   - Without SLs, losing trades can drain margin rapidly.  

   - **Fix**: Use tiny lot sizes (0.01) and strict equity stops.  


4. **Broker Restrictions**:  

   - Some brokers block grid strategies or frequent order placement.  

   - **Fix**: Confirm broker rules and test in a demo account first.  


---


### **Why This Works (In Theory)**  

- **Hedging**: Buy/sell orders cancel each other in sideways markets.  

- **Aggressive Profit-Taking**: Closing all trades at 1-pip net profit locks in gains before a trend develops.  

- **Equity Protection**: The 5% equity stop prevents catastrophic losses.  


---


### **How to Test**  

1. **Backtest**:  

   - Use MT4’s Strategy Tester with **tick data** (select "Every Tick" mode).  

   - Test during high-volatility periods (e.g., NFP days).  


2. **Forward Test**:  

   - Run on a demo account for 1 week.  

   - Monitor slippage and broker order execution quality.  


3. **Metrics to Track**:  

   - Win Rate: Aim for >70% of sessions profitable.  

   - Max Drawdown: Keep <5% per day.  


---


### **Final Warning**  

This strategy is **extremely high-risk** and only viable if:  

- Your broker truly has **no spreads/commissions**.  

- You use a **VPS** for sub-100ms execution.  

- You accept the possibility of a total account wipeout.  


Always prioritize capital preservation over aggressive profit-taking. Consider adding a **hidden SL** (e.g., closing trades if equity drops 2% in a single candle) for added safety.



Bewerbungen

1
Entwickler 1
Bewertung
(102)
Projekte
154
20%
Schlichtung
22
9% / 77%
Frist nicht eingehalten
14
9%
Beschäftigt
2
Entwickler 2
Bewertung
(22)
Projekte
21
10%
Schlichtung
4
25% / 75%
Frist nicht eingehalten
0
Frei
3
Entwickler 3
Bewertung
(14)
Projekte
18
17%
Schlichtung
5
40% / 40%
Frist nicht eingehalten
0
Frei
4
Entwickler 4
Bewertung
(33)
Projekte
35
20%
Schlichtung
5
40% / 40%
Frist nicht eingehalten
0
Frei
Veröffentlicht: 1 Beispiel
5
Entwickler 5
Bewertung
(84)
Projekte
162
43%
Schlichtung
3
67% / 0%
Frist nicht eingehalten
5
3%
Arbeitet
Veröffentlicht: 1 Beispiel
6
Entwickler 6
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
7
Entwickler 7
Bewertung
(300)
Projekte
306
69%
Schlichtung
2
100% / 0%
Frist nicht eingehalten
0
Frei
Veröffentlicht: 1 Beispiel
8
Entwickler 8
Bewertung
(206)
Projekte
333
35%
Schlichtung
66
12% / 58%
Frist nicht eingehalten
87
26%
Frei
9
Entwickler 9
Bewertung
(322)
Projekte
385
52%
Schlichtung
19
53% / 16%
Frist nicht eingehalten
26
7%
Überlastet
10
Entwickler 10
Bewertung
(2)
Projekte
2
0%
Schlichtung
1
0% / 0%
Frist nicht eingehalten
0
Frei
11
Entwickler 11
Bewertung
(159)
Projekte
284
35%
Schlichtung
17
24% / 59%
Frist nicht eingehalten
42
15%
Beschäftigt
12
Entwickler 12
Bewertung
(15)
Projekte
34
24%
Schlichtung
4
0% / 50%
Frist nicht eingehalten
2
6%
Arbeitet
13
Entwickler 13
Bewertung
(574)
Projekte
945
47%
Schlichtung
309
58% / 27%
Frist nicht eingehalten
125
13%
Frei
14
Entwickler 14
Bewertung
(5)
Projekte
5
60%
Schlichtung
1
0% / 0%
Frist nicht eingehalten
2
40%
Frei
Veröffentlicht: 1 Beispiel
15
Entwickler 15
Bewertung
(509)
Projekte
546
53%
Schlichtung
13
69% / 15%
Frist nicht eingehalten
3
1%
Arbeitet
16
Entwickler 16
Bewertung
(5)
Projekte
4
0%
Schlichtung
2
50% / 50%
Frist nicht eingehalten
2
50%
Frei
17
Entwickler 17
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
18
Entwickler 18
Bewertung
(6)
Projekte
4
0%
Schlichtung
5
0% / 100%
Frist nicht eingehalten
0
Frei
Ähnliche Aufträge
I have an issue with my ninja script and i would like you to help me straighten things I wanted to create an indicator and i have the source code already but i am getting compiling errors on my NinjaTrader And i tried fixing the error it still same I sent 3 images here for you to understand the errors and i would like to ask if you can help me fix it so i can go ahead and compile my source code. Thanks
Good day, I would like to build an automated trading system for Ninjatrader using 2 MACD, a Supertrend, and a moving average indicator. I want the option to adjust the indicator settings, the ability to trade at three different times, and the option to receive alerts. I want to get an idea of what that will cost me. It will enter trades on all blue take one contract out at a fixed point, move the stop to break even
Project Overview We are seeking an experienced MetaTrader 5 (MT5) / MQL5 developer to design and build a production-ready Expert Advisor intended for live trading with capital at risk . This is not a hobby, experimental, or retail-grade EA. We are only interested in developers with proven experience delivering robust, well-tested MT5 systems . Project Objective Design and implement a high-quality MT5 Expert Advisor
I have a simple strategy that need coding on tradingview Strategy using high low at seleted time and when breakout to entry buy sell. Everything will be explained on private
The strategy is based on years of manual testing. Detailed requirements including custom indicator settings (VWAP, Kalman RSI, BrkVol etc.) will be provided. I am looking for a high-level MQL5 developer to build a robust Expert Advisor (EA) based on a proven strategy using 11 specific indicators. The system is designed for high-precision entries by filtering market noise and spikes. Key Requirements: •
Stormbreaker 30 - 100 USD
✅ *Step-by-Step Strategy to Code – CRT + CISD (MT5 EA)* 🔧 *System Setup* *Timeframes Used:* - *D1* – Bias & CRT zones (High & Low) - *H1* – Confirm candle closes back inside CRT levels - *M5* – CISD pattern (entry trigger) --- 🟢 *Buy Setup – Logic* 1. *Detect D1 CRT Zone:* - Identify current day’s *High and Low* → define CRT levels. 2. *Wait for Sweep:* - Price must *break below D1 CRT Low* (wick). 3. *H1
Hey bro, can you help with NT8. On a vps, multiple algos and prop account but the strategies keep getting out of sync, going from true to false for no reason….. mid trade it pops errors.The algo codes are locked… other than that it’s open VPs, NT8 and strategy is open You will notice in the strategies xml that there are standard, then 100k and 50k versions…… Also I did version that are in strategy labeled "Apex"
So the things we need in algorithm of mql5 language EA in mt5 1. Depending on timeframe it can recognise the previous swing high and low 2. Timeframe is 5m,15m,1h,4h 3. It can recognise the basic Market bias that is market is bullish or bearish we can identify using (ema,rsi,basic smc bias,ict bias structure mapping) or use anything to find bias structure 4. EA should have option to change timeframe and change risk
I asked ChatGPT to come up with a strategy to trade the downside of gold. I'm looking for someone who can tell me whether the suggestion is feasible and, if not, how the scope and purpose of the paper can be achieved differently. At the end, a corresponding code should be created. Thank you for your feedback
I have a perfectly working EA that always gets altered, I need special security features implemented, and I already have a great idea of what I need. Super easy, codes already work, just need tweaking here and there. Cybersecurity proficiency would be a positive

Projektdetails

Budget
50 - 300 USD
Ausführungsfristen
bis 3 Tag(e)