Specification
//+------------------------------------------------------------------+
//| 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"));
}
}
Responded
1
Rating
Projects
2833
62%
Arbitration
118
46%
/
25%
Overdue
428
15%
Working
2
Rating
Projects
9
22%
Arbitration
0
Overdue
0
Loaded
3
Rating
Projects
588
38%
Arbitration
2
100%
/
0%
Overdue
1
0%
Working
Published: 9 codes
4
Rating
Projects
4
25%
Arbitration
1
0%
/
100%
Overdue
0
Free
5
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
6
Rating
Projects
0
0%
Arbitration
1
0%
/
0%
Overdue
0
Free
7
Rating
Projects
375
25%
Arbitration
22
59%
/
23%
Overdue
1
0%
Busy
8
Rating
Projects
1
100%
Arbitration
1
0%
/
0%
Overdue
0
Working
9
Rating
Projects
1
0%
Arbitration
1
0%
/
0%
Overdue
0
Working
10
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
11
Rating
Projects
73
21%
Arbitration
11
18%
/
27%
Overdue
6
8%
Working
12
Rating
Projects
212
20%
Arbitration
17
47%
/
18%
Overdue
0
Working
13
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
14
Rating
Projects
242
31%
Arbitration
0
Overdue
3
1%
Free
Published: 2 codes
15
Rating
Projects
906
76%
Arbitration
25
16%
/
68%
Overdue
99
11%
Working
Published: 1 article, 6 codes
16
Rating
Projects
655
33%
Arbitration
31
74%
/
6%
Overdue
20
3%
Free
17
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
18
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
19
Rating
Projects
11
18%
Arbitration
1
0%
/
0%
Overdue
1
9%
Free
20
Rating
Projects
6
17%
Arbitration
2
0%
/
0%
Overdue
1
17%
Loaded
21
Rating
Projects
2
0%
Arbitration
1
0%
/
0%
Overdue
1
50%
Working
22
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
23
Rating
Projects
268
77%
Arbitration
10
80%
/
0%
Overdue
4
1%
Loaded
24
Rating
Projects
8
13%
Arbitration
5
40%
/
20%
Overdue
0
Free
25
Rating
Projects
736
56%
Arbitration
47
32%
/
30%
Overdue
116
16%
Working
Published: 1 code
26
Rating
Projects
290
70%
Arbitration
2
100%
/
0%
Overdue
0
Working
Published: 1 code
27
Rating
Projects
945
47%
Arbitration
303
59%
/
25%
Overdue
125
13%
Free
28
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
29
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Similar orders
hello I have a strategy based on 4 zigzag indicators and 1 parabolic sar that i want to implement in a robot with adjustable settings please contact me for more info and if you are able to this job
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
Project information
Budget
50+ USD
Customer
Placed orders1
Arbitrage count0