Need simple EA for XAU/USD

MQL5 Experts Forex

Termos de Referência

//+------------------------------------------------------------------+
//| Simple XAUUSD EA                                                 |
//+------------------------------------------------------------------+
input double LotSize = 0.01;
input int StopLoss = 500;    // in points
input int TakeProfit = 1000; // in points
input int MAPeriod = 20;

int maHandle;

int OnInit() {
   maHandle = iMA(_Symbol, PERIOD_H1, MAPeriod, 0, MODE_SMA, PRICE_CLOSE);
   return(INIT_SUCCEEDED);
}

void OnTick() {
   double maBuffer[];
   ArraySetAsSeries(maBuffer, true);
   CopyBuffer(maHandle, 0, 0, 2, maBuffer);

   double currentMA = maBuffer[0];
   double price = SymbolInfoDouble(_Symbol, SYMBOL_BID);

   // Buy if price is above MA
   if (price > currentMA && PositionsTotal() == 0) {
      trade.Buy(LotSize, _Symbol, price, price - StopLoss * _Point,
                price + TakeProfit * _Point, "XAUUSD Buy");
   }
   // Sell if price is below MA
   else if (price < currentMA && PositionsTotal() == 0) {
      trade.Sell(LotSize, _Symbol, price, price + StopLoss * _Point,
                 price - TakeProfit * _Point, "XAUUSD Sell");
   }
}

Respondido

1
Desenvolvedor 1
Classificação
(169)
Projetos
202
48%
Arbitragem
5
20% / 60%
Expirado
2
1%
Livre
2
Desenvolvedor 2
Classificação
(35)
Projetos
61
23%
Arbitragem
4
50% / 25%
Expirado
15
25%
Livre
3
Desenvolvedor 3
Classificação
(16)
Projetos
35
23%
Arbitragem
4
0% / 50%
Expirado
2
6%
Trabalhando
4
Desenvolvedor 4
Classificação
(25)
Projetos
31
32%
Arbitragem
0
Expirado
2
6%
Trabalhando
5
Desenvolvedor 5
Classificação
(85)
Projetos
174
44%
Arbitragem
3
100% / 0%
Expirado
5
3%
Livre
Publicou: 1 código
6
Desenvolvedor 6
Classificação
(3)
Projetos
2
50%
Arbitragem
1
0% / 100%
Expirado
0
Livre
7
Desenvolvedor 7
Classificação
(50)
Projetos
64
20%
Arbitragem
11
27% / 55%
Expirado
5
8%
Livre
8
Desenvolvedor 8
Classificação
(27)
Projetos
30
37%
Arbitragem
0
Expirado
3
10%
Livre
9
Desenvolvedor 9
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
10
Desenvolvedor 10
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
11
Desenvolvedor 11
Classificação
(206)
Projetos
333
35%
Arbitragem
66
12% / 58%
Expirado
87
26%
Livre
12
Desenvolvedor 12
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
13
Desenvolvedor 13
Classificação
(4)
Projetos
8
0%
Arbitragem
3
33% / 67%
Expirado
4
50%
Livre
14
Desenvolvedor 14
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
15
Desenvolvedor 15
Classificação
(2)
Projetos
2
100%
Arbitragem
0
Expirado
0
Trabalhando
Pedidos semelhantes
We have a professionally built MT5 security and monitoring module with pre-written code. We need an experienced MQL5 developer to REVIEW, FIX, and CERTIFY the SENTINEL MODULE. YOU ARE NOT BUILDING FROM SCRATCH. You are reviewing 6 existing .mqh files. WHAT YOU WILL DO: 1. Review 6 pre-written Sentinel module files 2. Verify drawdown calculations (3% daily / 7% total) 3. Fix DD warning spam bug (fires every tick —
We have a professionally built MT5 Expert Advisor with pre-written code ready. We need an experienced MQL5 developer to REVIEW, FIX, and CERTIFY the ENGINE MODULE. YOU ARE NOT BUILDING FROM SCRATCH. You are reviewing 8 existing .mqh files. WHAT YOU WILL DO: 1. Review 8 pre-written .mqh engine files 2. Fix known shutdown bug: "invalid pointer access in AlmudoEngine.mqh (60,10)" 3. Achieve ZERO warnings in MT5 Build
### ** Main EA File** - `InstitutionalTrendPullbackScalper.mq5` **Core Features Implemented:** **Multi-Timeframe Analysis** - M15 trend filter (EMA20 > EMA50 for uptrends) - M5 entry signals with 5-condition confirmation - Independent indicator sets for both symbols **Advanced Entry Logic** - RSI reversal detection (crosses thresholds) - Price pullback zone validation - Bullish/bearish candle close confirmation -
Automate my trading 100 - 300 USD
i want a trading bot that take trade auto and make 5% profit daily and stop with in 24 hours not more then that at least the bot give me more then 2% not less then that like a ai agent if it make any loss that agent have to take care of it i need only 5 % profit
I need an Ai trading bot for Binance and BTC on MT5 that also uses order flow data. It should also make use of TSI- Temporal indicator sampling and also it should make use of fundamental analysis in the process of signal generation
Hi,I am looking for an experienced developer specializing in the creation of Expert Advisors (EAs) for trading platforms. I would like to commission the development of an EA based on the open-source LuxAlgo code. The entry strategy will be based, among other things, on Martingale and Grid trading concepts. A detailed specification covering trade management, position sizing, and risk management rules will be provided
Hi! I’m looking for someone to make TPO Market profile, volume profile, footprint, delta for Sierra charts I need it to be set up to give me these for Nasdaq, ES/NQ and also the minii’s. Is this something you can help me with
I have a EA for XAUUSD which works awesome in sideways and trending market as well, capital requirement is only 2000USd and weekly profit is around 1500-2000 USD. I am using this bot from 3 months and getting continuous good result
I’m looking for an experienced MT4 developer to create a custom indicator (or EA) with mobile push notifications based on the following strategy. Trend Filter (Daily Timeframe) Daily Close above 50 EMA = Bullish Bias Daily Close below 50 EMA = Bearish Bias Entry Timeframe (H1) RSI Settings RSI Period: 14 (default) Upper Level: 65 Lower Level: 35 Buy Signal Generate a BUY signal when: Daily bias is Bullish (Daily
Dear All i am working on strategy in forex market specifically in xausud and i just want someone to make it automatic execution mode as per my requirements with propee risk management my broker is exness and i have an account in MT5

Informações sobre o projeto

Orçamento
30+ USD

Cliente

Pedidos postados1
Número de arbitragens0