명시



### **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.



응답함

1
개발자 1
등급
(81)
프로젝트
120
16%
중재
4
25% / 25%
기한 초과
10
8%
로드됨
2
개발자 2
등급
(21)
프로젝트
20
10%
중재
2
50% / 50%
기한 초과
0
무료
3
개발자 3
등급
(6)
프로젝트
8
13%
중재
0
기한 초과
0
무료
4
개발자 4
등급
(29)
프로젝트
32
22%
중재
3
67% / 0%
기한 초과
0
작업중
5
개발자 5
등급
(75)
프로젝트
135
40%
중재
2
100% / 0%
기한 초과
4
3%
무료
6
개발자 6
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
7
개발자 7
등급
(241)
프로젝트
245
71%
중재
2
100% / 0%
기한 초과
0
무료
8
개발자 8
등급
(202)
프로젝트
326
35%
중재
64
13% / 56%
기한 초과
84
26%
무료
9
개발자 9
등급
(200)
프로젝트
236
46%
중재
8
38% / 0%
기한 초과
13
6%
로드됨
10
개발자 10
등급
(1)
프로젝트
1
0%
중재
1
0% / 0%
기한 초과
0
무료
11
개발자 11
등급
(149)
프로젝트
268
35%
중재
12
25% / 58%
기한 초과
42
16%
로드됨
12
개발자 12
등급
(15)
프로젝트
33
24%
중재
3
0% / 33%
기한 초과
1
3%
작업중
13
개발자 13
등급
(564)
프로젝트
933
47%
중재
302
59% / 25%
기한 초과
125
13%
무료
14
개발자 14
등급
프로젝트
0
0%
중재
1
0% / 0%
기한 초과
0
작업중
15
개발자 15
등급
(499)
프로젝트
533
53%
중재
12
67% / 17%
기한 초과
3
1%
무료
16
개발자 16
등급
(2)
프로젝트
0
0%
중재
1
0% / 0%
기한 초과
0
작업중
17
개발자 17
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
비슷한 주문
Resolve issues with the position size calculator in an options trading bot to ensure accuracy in contract allocations. Diagnose the existing issues with the position size calculator set to 20% of equity. Adjust and fix the position size calculator to ensure appropriate contract sizes. Test the system to confirm functionality and accuracy of position sizes
I have a few more projects to delegate, but I need to complete this one first. Once it’s done, I’ll be ready to tackle the next ones and ensure everything is managed efficiently
I have a few more projects to distribute, but I need to finish this one first. Once it's completed, I'll be ready to move on to the next ones and manage everything efficiently
I have a few more projects to distribute, but I need to finish this one first. Once it's completed, I'll be ready to move on to the next ones and manage everything efficiently
Hello MT5 EA development that can detect Cup & Handle on multi timeframe , place trades based on that with SL,TP for both buy/sell for indices/currencies/crypto in general. Just one trade a time would be good enough, not to complicate it My situation is , I've tradelocker challenges I'm planning to clear with the trade copying from MT5 with this EA, I've some code and it's not working , I can share if you like , not
Looking for an EA, that triggers an alert and a trade when price touches Pivot line S2 and S3 and R2 and R3, using daily calculation. Candle should be rejected when it closes, need also to enter the Stop loss amount or risk percentage to be traded which uses a Time Atr selection like SL = 1.25 current ATR or pick which timeframe to use as ATR the risk reward ratio also to be set as multiplier to the risk like 1:2 or
I have a few more projects to delegate, but I need to complete this one first. Once it’s done, I’ll be ready to shift my focus to the next ones and ensure everything runs smoothly
I have a few more projects I want to hand out, but I need to finish this one first. Once this is wrapped up, I’ll be ready to focus on the next ones and make sure everything is handled smoothly
Ea converter 30 - 80 USD
I want an EA that could work on a mobile an laptop at the same time... So i need a programmer who already has one to sell me an i need a demo before pachase
Pivot Points E. A. 30 - 100 USD
I need one small E. A with these few numbers of inputs. 1. Starting Date ( Working days for EA ) 2. Working Till Date 3. Daily Starting Time Of EA 4. Daily End Time Of EA. 5. Pivot Point Auto Detection. True / False ( If we set it true, EA will put current candle opening price automatically, if we set it false, we will put value manually). This pivot point will be only for reference. Not for trade. 6. Pivot Point

프로젝트 정보

예산
50 - 300 USD
기한
 3 일

고객

넣은 주문1
중재 수0