Tarea técnica
//+------------------------------------------------------------------+
//| Expert Advisor: Gold AI Scalping Bot (M1/M5 MA Crossover) |
//+------------------------------------------------------------------+
#property copyright "OpenAI"
#property version "1.01"
#property strict
input string symbol = "XAUUSD";
input ENUM_TIMEFRAMES timeframe = PERIOD_M1; // Change to PERIOD_M5 if needed
input int fastMA = 5;
input int slowMA = 20;
input double lotSize = 0.1;
input int stopLoss = 100; // in points (e.g., 10 pips)
input int takeProfit = 150; // in points (e.g., 15 pips)
input int magicNumber = 777777;
double maFastPrev, maFastCurr;
double maSlowPrev, maSlowCurr;
//+------------------------------------------------------------------+
//| Expert initialization |
//+------------------------------------------------------------------+
int OnInit()
{
Print("Gold AI Scalping Bot initialized on ", EnumToString(timeframe));
return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
//| Expert tick function |
//+------------------------------------------------------------------+
void OnTick()
{
if (Symbol() != symbol) return;
if (PositionsTotal() > 0) return; // Avoid multiple trades
// MA values
maFastPrev = iMA(symbol, timeframe, fastMA, 0, MODE_EMA, PRICE_CLOSE, 1);
maFastCurr = iMA(symbol, timeframe, fastMA, 0, MODE_EMA, PRICE_CLOSE, 0);
maSlowPrev = iMA(symbol, timeframe, slowMA, 0, MODE_EMA, PRICE_CLOSE, 1);
maSlowCurr = iMA(symbol, timeframe, slowMA, 0, MODE_EMA, PRICE_CLOSE, 0);
// Crossover detection
if (maFastPrev < maSlowPrev && maFastCurr > maSlowCurr)
{
// BUY signal
OpenTrade(ORDER_TYPE_BUY);
}
else if (maFastPrev > maSlowPrev && maFastCurr < maSlowCurr)
{
// SELL signal
OpenTrade(ORDER_TYPE_SELL);
}
}
//+------------------------------------------------------------------+
//| Trade execution |
//+------------------------------------------------------------------+
void OpenTrade(ENUM_ORDER_TYPE type)
{
double price = (type == ORDER_TYPE_BUY) ? SymbolInfoDouble(symbol, SYMBOL_ASK)
: SymbolInfoDouble(symbol, SYMBOL_BID);
double sl = (type == ORDER_TYPE_BUY) ? price - stopLoss * _Point
: price + stopLoss * _Point;
double tp = (type == ORDER_TYPE_BUY) ? price + takeProfit * _Point
: price - takeProfit * _Point;
MqlTradeRequest request;
MqlTradeResult result;
ZeroMemory(request);
request.action = TRADE_ACTION_DEAL;
request.symbol = symbol;
request.volume = lotSize;
request.type = type;
request.price = NormalizeDouble(price, _Digits);
request.sl = NormalizeDouble(sl, _Digits);
request.tp = NormalizeDouble(tp, _Digits);
request.magic = magicNumber;
request.deviation = 10;
request.type_filling = ORDER_FILLING_IOC;
if (!OrderSend(request, result))
{
Print("Trade failed: ", result.retcode);
}
else
{
Print("Trade opened: ", (type == ORDER_TYPE_BUY ? "BUY" : "SELL"));
}
}
Han respondido
1
Evaluación
Proyectos
2833
62%
Arbitraje
118
46%
/
25%
Caducado
428
15%
Trabaja
2
Evaluación
Proyectos
9
22%
Arbitraje
0
Caducado
0
Trabajando
3
Evaluación
Proyectos
588
38%
Arbitraje
2
100%
/
0%
Caducado
1
0%
Trabaja
Ha publicado: 9 ejemplos
4
Evaluación
Proyectos
4
25%
Arbitraje
1
0%
/
100%
Caducado
0
Libre
5
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
6
Evaluación
Proyectos
0
0%
Arbitraje
1
0%
/
0%
Caducado
0
Libre
7
Evaluación
Proyectos
375
25%
Arbitraje
22
59%
/
23%
Caducado
1
0%
Ocupado
8
Evaluación
Proyectos
1
100%
Arbitraje
1
0%
/
0%
Caducado
0
Trabaja
9
Evaluación
Proyectos
1
0%
Arbitraje
1
0%
/
0%
Caducado
0
Trabaja
10
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
11
Evaluación
Proyectos
73
21%
Arbitraje
11
18%
/
27%
Caducado
6
8%
Trabaja
12
Evaluación
Proyectos
212
20%
Arbitraje
17
47%
/
18%
Caducado
0
Trabaja
13
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
14
Evaluación
Proyectos
242
31%
Arbitraje
0
Caducado
3
1%
Libre
Ha publicado: 2 ejemplos
15
Evaluación
Proyectos
906
76%
Arbitraje
25
16%
/
68%
Caducado
99
11%
Trabaja
Ha publicado: 1 artículo, 6 ejemplos
16
Evaluación
Proyectos
655
33%
Arbitraje
31
74%
/
6%
Caducado
20
3%
Libre
17
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
18
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
19
Evaluación
Proyectos
11
18%
Arbitraje
1
0%
/
0%
Caducado
1
9%
Libre
20
Evaluación
Proyectos
6
17%
Arbitraje
2
0%
/
0%
Caducado
1
17%
Trabajando
21
Evaluación
Proyectos
2
0%
Arbitraje
1
0%
/
0%
Caducado
1
50%
Trabaja
22
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
23
Evaluación
Proyectos
268
77%
Arbitraje
10
80%
/
0%
Caducado
4
1%
Trabajando
24
Evaluación
Proyectos
8
13%
Arbitraje
5
40%
/
20%
Caducado
0
Libre
25
Evaluación
Proyectos
736
56%
Arbitraje
47
32%
/
30%
Caducado
116
16%
Trabaja
Ha publicado: 1 ejemplo
26
Evaluación
Proyectos
290
70%
Arbitraje
2
100%
/
0%
Caducado
0
Trabaja
Ha publicado: 1 ejemplo
27
Evaluación
Proyectos
945
47%
Arbitraje
303
59%
/
25%
Caducado
125
13%
Libre
28
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
29
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
Solicitudes similares
I’m looking for an EA (Expert Advisor) developer or an existing EA that is built on volume and order flow trading strategies . Requirements: EA must trade based on volume / order flow signals . Should have precise entry and exit points with proven high profitability . Must include full source code as part of the purchase. Should work across any major currency pair , with preference for Gold (XAUUSD) . Ability to
Trading bot developer needed
30+ USD
Hello, I’m currently looking to hire a professional and experienced developer to help create a custom trading bot (Expert Advisor) for the MetaTrader platform (MT5). What I Need: I’m looking for someone who can: Develop a fully automated trading bot based on my strategy (which I will provide in detail)
Ea that uses 4 existing mt5indicators
30 - 75 USD
Ea that uses the same 4 indicators with options to turn on or off each indicator. tp and sl in currency with lotsize starting from 0.0001. No further parameters. if it can be done in 3 days would be lovely
EA for Tradingview alerts
100+ USD
I'm looking for an EA that can automate my tradingview alerts (like pineconnector or tradingconnector does) with automatic risk calculation based on SL (pineconnector offers this function but it doesn't always work well). Using webhook would be great or a set up locally over chrome. - I would send a command like: sell,EURUSD,risk=0.5,sl=1.0784479159258427,tp=1.0748320840741577 - based on the risk percentage, current
Tebza&Lee_EA
48+ USD
I need an experienced mql5 developer to build a ** high-performance support and resistance EA** This EA must only trade Nas100, Us30, USDZAR, XAGUSD, XAUUSD, XPTUSD, USDJPY, USDCHF, USDCAD, EURUSD, GBPUSD and More details are attached
MosesRobot
30+ USD
1. Timeframe & Pairs Timeframe: 5-minute chart (M5) Pairs: EURUSD, GBPUSD, USDJPY,XAUUSD (low spreads, high liquidity) Trading Hours: London & New York session overlap (13:00–17:00 UTC) for volatility. --- 2. Indicators & Filters Main Signals: 1. EMA Crossover: EMA 9 (fast) & EMA 21 (slow) Buy signal: EMA 9 crosses above EMA 21 Sell signal: EMA 9 crosses below EMA 21 2. RSI Filter (Period 14): Buy only if RSI > 50
GOLDEN WEALTH EA
30 - 40 USD
I need developer that will help me to convert indication with signal to EA. that will be able to trade on any pair and brokers with the features of take profit, stop loss, risk management and trade in the adjustable % of equity or account balance
I am working with several EAs (that i created). Inside MT5, they are fine. However, I’m also using a local MT5 runner on port 8787 to allow triggering backtests via commands. This requires exposing the runner via Cloudflare tunnels. I already: Installed cloudflared Created a tunnel and token Can generate temporary trycloudflare.com URLs But I am stuck on the final step: configuring the tunnel and updating the runner
An Expert Advisor with two time frames
200 - 400 USD
An Expert Advisor with two time frames. Time frame 1 Buy when price closes below Moving average indicator, or sell when price closes above Moving average indicator. Time frame 2 If a buy position is open, close when price crosses below Moving Average indicator. If a sell position is open, close when price crosses above Moving Average indicator. Repeat forever. Adjustable parameters like the free Experts in the Mql5
X
30+ USD
I NEED AN EA THAT WORKS ON DERIV VOLATILITY BREAKE OUT AT EVERY 50 LEVEL BUY OR SELL 1/1 RAHIO 9 WILL EXPLAIN LETTER ON NOT THAT MUCH THE STRATEGY IS MORE OF PYCHOLOGYCAL LEVEL WILL WORK AS THE ZONE WHILE THE WE WAIT FOR A BREAK OF A HIGH OR ALOW AT THAT AREA
Información sobre el proyecto
Presupuesto
50+ USD
Cliente
Encargos realizados1
Número de arbitrajes0