Şartname
//+------------------------------------------------------------------+
//| ScalperEA.mq5 |
//+------------------------------------------------------------------+
#property copyright "Template"
#property version "1.00"
#property strict
input int FastEMA = 8;
input int SlowEMA = 21;
input int AtrPeriod = 14;
input double StopAtrMult = 1.2;
input double TpAtrMult = 1.0;
input double RiskPercent = 0.5; // percent account risk per trade
input int Magic = 123456;
input double Lots = 0.01;
double EMAFast[], EMASlow[], ATRArr[];
int OnInit()
{
SetIndexBuffer(0, EMAFast);
SetIndexBuffer(1, EMASlow);
// nothing to set for ATR; we'll compute using iATR
return(INIT_SUCCEEDED);
}
void OnTick()
{
// get last two closed candles
int shift = 1; // last closed bar
double fast_prev = iMA(NULL, PERIOD_CURRENT, FastEMA, 0, MODE_EMA, PRICE_CLOSE, shift+1);
double fast_last = iMA(NULL, PERIOD_CURRENT, FastEMA, 0, MODE_EMA, PRICE_CLOSE, shift);
double slow_prev = iMA(NULL, PERIOD_CURRENT, SlowEMA, 0, MODE_EMA, PRICE_CLOSE, shift+1);
double slow_last = iMA(NULL, PERIOD_CURRENT, SlowEMA, 0, MODE_EMA, PRICE_CLOSE, shift);
double atr = iATR(NULL, PERIOD_CURRENT, AtrPeriod, shift);
if (atr <= 0) return;
// simple crossover signals
if (fast_prev <= slow_prev && fast_last > slow_last)
{
// buy signal
double entry = SymbolInfoDouble(_Symbol, SYMBOL_BID); // or use Ask for buy market entry
double stop = entry - StopAtrMult * atr;
double tp = entry + TpAtrMult * atr;
double lots = Lots;
// optionally compute lots from RiskPercent and stop distance
// place market buy
trade_buy(lots, stop, tp);
}
else if (fast_prev >= slow_prev && fast_last < slow_last)
{
// sell signal
double entry = SymbolInfoDouble(_Symbol, SYMBOL_ASK);
double stop = entry + StopAtrMult * atr;
double tp = entry - TpAtrMult * atr;
trade_sell(Lots, stop, tp);
}
}
void trade_buy(double lots, double stop, double tp)
{
MqlTradeRequest req;
MqlTradeResult res;
ZeroMemory(req);
req.action = TRADE_ACTION_DEAL;
req.symbol = _Symbol;
req.volume = lots;
req.type = ORDER_TYPE_BUY;
req.price = SymbolInfoDouble(_Symbol, SYMBOL_ASK);
req.sl = stop;
req.tp = tp;
req.deviation = 5;
req.magic = Magic;
OrderSend(req, res);
}
void trade_sell(double lots, double stop, double tp)
{
MqlTradeRequest req;
MqlTradeResult res;
ZeroMemory(req);
req.action = TRADE_ACTION_DEAL;
req.symbol = _Symbol;
req.volume = lots;
req.type = ORDER_TYPE_SELL;
req.price = SymbolInfoDouble(_Symbol, SYMBOL_BID);
req.sl = stop;
req.tp = tp;
req.deviation = 5;
req.magic = Magic;
OrderSend(req, res);
}
Yanıtlandı
1
Derecelendirme
Projeler
1003
47%
Arabuluculuk
33
36%
/
36%
Süresi dolmuş
98
10%
Çalışıyor
Yayınlandı: 6 kod
2
Derecelendirme
Projeler
175
25%
Arabuluculuk
23
13%
/
78%
Süresi dolmuş
16
9%
Çalışıyor
3
Derecelendirme
Projeler
0
0%
Arabuluculuk
2
0%
/
100%
Süresi dolmuş
0
Serbest
4
Derecelendirme
Projeler
403
28%
Arabuluculuk
40
40%
/
50%
Süresi dolmuş
1
0%
Serbest
5
Derecelendirme
Projeler
1
0%
Arabuluculuk
1
0%
/
100%
Süresi dolmuş
0
Serbest
6
Derecelendirme
Projeler
12
0%
Arabuluculuk
3
33%
/
33%
Süresi dolmuş
1
8%
Serbest
7
Derecelendirme
Projeler
2
0%
Arabuluculuk
4
25%
/
50%
Süresi dolmuş
1
50%
Serbest
8
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
9
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
10
Derecelendirme
Projeler
36
33%
Arabuluculuk
5
0%
/
80%
Süresi dolmuş
0
Çalışıyor
Yayınlandı: 2 kod
11
Derecelendirme
Projeler
265
29%
Arabuluculuk
0
Süresi dolmuş
3
1%
Çalışıyor
Yayınlandı: 2 kod
12
Derecelendirme
Projeler
0
0%
Arabuluculuk
1
0%
/
100%
Süresi dolmuş
0
Serbest
13
Derecelendirme
Projeler
3
33%
Arabuluculuk
2
0%
/
100%
Süresi dolmuş
0
Serbest
14
Derecelendirme
Projeler
27
30%
Arabuluculuk
4
50%
/
25%
Süresi dolmuş
4
15%
Yüklendi
15
Derecelendirme
Projeler
0
0%
Arabuluculuk
5
0%
/
80%
Süresi dolmuş
0
Serbest
16
Derecelendirme
Projeler
171
39%
Arabuluculuk
10
40%
/
10%
Süresi dolmuş
31
18%
Çalışıyor
17
Derecelendirme
Projeler
8
13%
Arabuluculuk
3
0%
/
33%
Süresi dolmuş
2
25%
Serbest
Yayınlandı: 1 kod
18
Derecelendirme
Projeler
8
0%
Arabuluculuk
3
33%
/
67%
Süresi dolmuş
4
50%
Serbest
19
Derecelendirme
Projeler
1
100%
Arabuluculuk
3
0%
/
100%
Süresi dolmuş
0
Serbest
20
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
21
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
22
Derecelendirme
Projeler
45
60%
Arabuluculuk
2
100%
/
0%
Süresi dolmuş
1
2%
Serbest
Yayınlandı: 5 kod
Benzer siparişler
# H4 Zone Retest EA (MQL5) An automated trading Expert Advisor (EA) for MetaTrader 5, developed in MQL5. The EA trades gold (XAUUSD) using a multi-timeframe breakout and retest strategy: it defines the first H4 candle of each day as a trading zone, detects breakouts on the M5 chart, waits for a retest, and executes trades with risk management, trailing stops, and optional news filtering. --- ## Features - H4 → M5
Hello, I have an automated trading EA for BTC and I am looking for an experienced strategy optimizer who can help find the most suitable settings. Current results show that the EA achieved approximately 700% profit over 1.5 years , but with drawdown that is too high for my requirements . My goal is to optimize the strategy parameters to achieve: Lower and more stable drawdown Consistent risk management Target return
🔍 Strategy Logic 📌 Indicators Used 21 EMA RSI (Upper Level: 61, Lower Level: 39 – Customizable) 📈 Buy Side Setup (Long Entry) Step 1 – Trend Confirmation A Green candle must close above 21 EMA. Step 2 – Pattern Formation After the green candle, observe next 4 candles. At least one Red candle must form (opposite candle). That Red candle must also close above EMA. Step 3 – Key Level Marking Mark the High of the Red
# Project Specification — MT5 Expert Advisor "Prince Strategy" ## Project Goal Develop an Expert Advisor (trading robot) for MetaTrader 5 that automates a price-action trading strategy based on candlestick patterns across multiple timeframes. The robot must work on the forex.com broker. --- ## 1. Traded Instruments The robot must trade the following 4 forex pairs: - GBPUSD - EURUSD - NZDUSD - AUDUSD **Important
Expert Advisor (EA) Requirements – MT5 (MQL5) Project Overview Develop an automated Expert Advisor (EA) for MetaTrader 5 based on EMA crossover signals combined with strict risk management and trade management principles. The EA must be optimized for Forex pairs and indices and should operate automatically without manual intervention. Entry Conditions Buy Setup Fast EMA crosses above Slow EMA. Current candle closes
Modify a (Pruning) Grid EA
30+ USD
MT5 Expert Advisor Development Project Overview I am looking for an experienced MQL5 developer to build a custom MetaTrader 5 Expert Advisor based on a grid-cycle trading framework. This is not a standard grid EA . The system combines: Session-based trade initiation Multi-filter signal generation Dynamic grid management Advanced basket management State-machine-driven trade lifecycle management Dynamic take-profit
Need an MT5 EA coded in MQL5. Strategy uses internally calculated MT5 Heikin Ashi candles, EMA 9 and EMA 21 on M1 USDJPY. Fixed lot size 12.20. One trade at a time. 40-point stop loss. Exit after 3 consecutive opposite Heikin Ashi candles. I have a detailed strategy document and video examples of valid and invalid entries. Videos linked show MT5 IOS but custom EA code will be used for windows MT5
Advanced Forex Expert Advisor-fully automated system
200 - 300 USD
I require a custom EA and an accompanying custom indicator built in MQL5 for Meta Trader 4/5. The EA must be fully automated (Algo Trading); Telegram-Signal-Linked and named 'AMK Fx'
MC Trader's
30+ USD
If Buy: it must Buy when a conformation is done Bye the candle that would be a bullish engolfing candle or after liqudity swip or when sellers has stepped down the market and the market regains energy and trand upwards, it's stop loss must be below the Buy position and it's take profit must be at the top of all candles
Sweetposion hedge
30+ USD
Read signal and enter trade and close trade at good profits and open trade again. Either bullish or bearish signals at 0.1 on XAUUSD. Maximum trade a day should be 4-5 times with good opens and close signals. Looking foward to a long cooperation and also a honest and genuine person
Proje bilgisi
Bütçe
30 - 500 USD