指定



### **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
評価
(103)
プロジェクト
165
24%
仲裁
23
9% / 78%
期限切れ
16
10%
仕事中
2
開発者 2
評価
(22)
プロジェクト
21
10%
仲裁
4
25% / 75%
期限切れ
0
3
開発者 3
評価
(15)
プロジェクト
19
16%
仲裁
5
40% / 40%
期限切れ
0
4
開発者 4
評価
(33)
プロジェクト
35
20%
仲裁
5
40% / 40%
期限切れ
0
パブリッシュした人: 1 code
5
開発者 5
評価
(85)
プロジェクト
166
43%
仲裁
3
67% / 0%
期限切れ
5
3%
仕事中
パブリッシュした人: 1 code
6
開発者 6
評価
プロジェクト
0
0%
仲裁
0
期限切れ
0
7
開発者 7
評価
(302)
プロジェクト
308
69%
仲裁
2
100% / 0%
期限切れ
0
パブリッシュした人: 1 code
8
開発者 8
評価
(206)
プロジェクト
333
35%
仲裁
66
12% / 58%
期限切れ
87
26%
9
開発者 9
評価
(340)
プロジェクト
410
53%
仲裁
20
55% / 15%
期限切れ
29
7%
多忙
10
開発者 10
評価
(2)
プロジェクト
2
0%
仲裁
1
0% / 0%
期限切れ
0
11
開発者 11
評価
(159)
プロジェクト
284
35%
仲裁
18
22% / 61%
期限切れ
42
15%
取り込み中
12
開発者 12
評価
(16)
プロジェクト
35
23%
仲裁
4
0% / 50%
期限切れ
2
6%
仕事中
13
開発者 13
評価
(574)
プロジェクト
945
47%
仲裁
309
58% / 27%
期限切れ
125
13%
14
開発者 14
評価
(5)
プロジェクト
5
60%
仲裁
1
0% / 0%
期限切れ
2
40%
パブリッシュした人: 1 code
15
開発者 15
評価
(511)
プロジェクト
549
53%
仲裁
13
69% / 15%
期限切れ
3
1%
16
開発者 16
評価
(6)
プロジェクト
5
0%
仲裁
2
50% / 50%
期限切れ
2
40%
17
開発者 17
評価
プロジェクト
0
0%
仲裁
0
期限切れ
0
18
開発者 18
評価
(6)
プロジェクト
4
0%
仲裁
5
0% / 100%
期限切れ
0
類似した注文
I would love to see most of my trades going well being in profits! & keep consistent trading without having to blow any accounts be able to identify right trades and have good trading strategy
Gold robot Ga1 30 - 200 USD
mport pandas as pd import numpy as np def detecter_tendance(data): # Code pour détecter la tendance pass def identifier_niveaux(data): # Code pour identifier les niveaux de support et de résistance pass def calculer_stop_loss(tendance, support, resistance): # Code pour calculer les stop loss pass def calculer_profils(tendance, support, resistance): # Code pour calculer les profils mport pandas as pd
Martingale Strategy 50 - 70 USD
I need a gambling bot that implements the Martingale Strategy for betting on roulette. It will be used on platforms like Betcity and Unibet to manage bets effectively. Scope of work - Develop a bot that implements the Martingale Strategy for roulette. - Ensure compatibility with Betcity and Unibet platforms. - Include functionalities for adjusting bet size and managing losses. - Integrate platform-specific features
The EA should be designed to react to very fast price movements on the M1 timeframe on XAUUSD. Logic overview: • When price moves up quickly, the EA should place a sell order. • The initial stop loss must be set exactly at the entry price. • A very tight trailing stop must be activated immediately. Sell trade behavior: • If price moves a few pips in favor after entry, the trade should close with a small profit via
Hello there Hpe you are doing good I am in search of a pine script expert developer who can build strategy in apudFlow in pinescript. Kinldy bid on this project if you can do this
Forex 30 - 200 USD
Develop an Expert Advisor trading trend reversals. Reversal signals will be generated based on Price Action patterns. Trend will be determined based on ADX, Alligator and MACD, while the indicator selection should be available in the EA's input parameters
EA Expert MTA 4 30+ USD
I have my own indicator and needs to create EA expert working smoothly with it to hit the targets as defined in indicator: Technical approach: - The EA will read the indicator signals using Copy Buffer on the selected timeframe - The EA should hit indicator variable targets factor -​Auto-Entry: Instant execution when the signal appears. ​-Alerts: Mobile Push Notifications + Pop-up alerts. -​Money Management Auto-lot
I am in search of a profitable bot for scalping Gold. The bot should be ready as at now to trade in a live market with good consistency. It should have a low drawdown. No martingale or grid system. The developer should be able to send a demo so I can test. If you have any profitable EA, pls
Основной стандартный и единственный индикатор Параболическая SAR. Непосредственно работа робота. 1. Производится 1 сделка при начале нового тренда, тренд определяется индикатором Parabolic SAR. Пример: если точки расположены ниже цены - значит тренд восходящий, открывается покупка (по рынку), при смене тренда на снижение - точки становятся выше цены, происходит закрытие предыдущей сделки (если она была открыта), и
hello great developer I’m hiring a developer to build a local-only trade copier that sends trades from MT4 and MT5 to NinjaTrader 8 (NT8) in real-time. This copier must be reliable, fast, and fully executable without cloud dependence. I require a short test/demo period before full delivery to ensure quality and performance. here is the full project specs in the file check it please

プロジェクト情報

予算
50 - 300 USD
締め切り
最高 3 日