Termos de Referência
// === INPUT PARAMETERS ===
input int FastMA = 9; // Fast moving average for trend
input int SlowMA = 21; // Slow moving average for trend
input double Risk = 1.0; // Risk percentage per trade
input int ATRPeriod = 14; // ATR period for dynamic SL/TP
input double ATRMultiplier = 1.5; // Multiplier for ATR-based SL/TP
input int RSI_Period = 14; // RSI period
input int RSI_Overbought = 70;
input int RSI_Oversold = 30;
input int MACD_Fast = 12, MACD_Slow = 26, MACD_Signal = 9; // MACD settings
// === STRUCTURE DETECTION ===
double HighPrev, LowPrev, HighCurrent, LowCurrent;
bool BreakOfStructure;
// === FAIR VALUE GAP DETECTION ===
bool FairValueGapFound(double high1, double low1, double high2, double low2) {
return (low2 > high1); // FVG occurs when the second candle's low is above the first candle's high
}
// === ORDER BLOCK DETECTION ===
bool IsOrderBlock(double open1, double close1, double open2, double close2) {
return (close1 < open1 && close2 > open2); // Bullish order block: Strong rejection from a bearish candle
}
// === MAIN FUNCTION ===
void OnTick() {
// Get latest candle data
HighPrev = iHigh(Symbol(), PERIOD_M15, 1);
LowPrev = iLow(Symbol(), PERIOD_M15, 1);
HighCurrent = iHigh(Symbol(), PERIOD_M15, 0);
LowCurrent = iLow(Symbol(), PERIOD_M15, 0);
// === CHECK FOR BREAK OF STRUCTURE (BOS) ===
BreakOfStructure = (HighCurrent > HighPrev || LowCurrent < LowPrev);
// === CHECK FOR FAIR VALUE GAP (FVG) ===
bool FVG = FairValueGapFound(HighPrev, LowPrev, HighCurrent, LowCurrent);
// === CHECK FOR ORDER BLOCKS ===
bool OrderBlock = IsOrderBlock(iOpen(Symbol(), PERIOD_M15, 1), iClose(Symbol(), PERIOD_M15, 1),
iOpen(Symbol(), PERIOD_M15, 0), iClose(Symbol(), PERIOD_M15, 0));
// === TREND FILTER USING MOVING AVERAGES ===
double maFast = iMA(Symbol(), PERIOD_M15, FastMA, 0, MODE_SMA, PRICE_CLOSE, 0);
double maSlow = iMA(Symbol(), PERIOD_M15, SlowMA, 0, MODE_SMA, PRICE_CLOSE, 0);
bool Uptrend = (maFast > maSlow);
bool Downtrend = (maFast < maSlow);
// === RSI FILTER ===
double RSI_Value = iRSI(Symbol(), PERIOD_M15, RSI_Period, PRICE_CLOSE, 0);
bool RSI_Buy = (RSI_Value < RSI_Oversold);
bool RSI_Sell = (RSI_Value > RSI_Overbought);
// === MACD FILTER ===
double macdMain, macdSignal, macdHist;
iMACD(Symbol(), PERIOD_M15, MACD_Fast, MACD_Slow, MACD_Signal, PRICE_CLOSE, macdMain, macdSignal, macdHist);
bool MACD_Buy = (macdMain > macdSignal);
bool MACD_Sell = (macdMain < macdSignal);
// === ATR for DYNAMIC SL/TP ===
double ATR_Value = iATR(Symbol(), PERIOD_M15, ATRPeriod, 0);
double DynamicSL = ATRMultiplier * ATR_Value;
double DynamicTP = 4 * DynamicSL; // 1:4 Risk-Reward
// === TRADE CONDITIONS ===
if (BreakOfStructure && FVG && OrderBlock && Uptrend && RSI_Buy && MACD_Buy && OrdersTotal() == 0) {
// Buy Setup
double lotSize = 0.1;
double entryPrice = Ask;
double stopLoss = entryPrice - DynamicSL;
double takeProfit1 = entryPrice + (DynamicTP * 0.5); // 50% TP
double takeProfit2 = entryPrice + (DynamicTP); // 100% TP
// Place Buy Order
int orderTicket = OrderSend(Symbol(), OP_BUY, lotSize, entryPrice, 10, stopLoss, takeProfit2, "BUY Order", 0, 0, clrBlue);
// Set Partial TP
if (orderTicket > 0) {
Sleep(5000); // Wait before modifying order
OrderModify(orderTicket, entryPrice, stopLoss, takeProfit1, 0, clrBlue);
}
}
if (BreakOfStructure && FVG && OrderBlock && Downtrend && RSI_Sell && MACD_Sell && OrdersTotal() == 0) {
// Sell Setup
double lotSize = 0.1;
double entryPrice = Bid;
double stopLoss = entryPrice + DynamicSL;
double takeProfit1 = entryPrice - (DynamicTP * 0.5); // 50% TP
double takeProfit2 = entryPrice - (DynamicTP); // 100% TP
// Place Sell Order
int orderTicket = OrderSend(Symbol(), OP_SELL, lotSize, entryPrice, 10, stopLoss, takeProfit2, "SELL Order", 0, 0, clrRed);
// Set Partial TP
if (orderTicket > 0) {
Sleep(5000);
OrderModify(orderTicket, entryPrice, stopLoss, takeProfit1, 0, clrRed);
}
}
}
Respondido
1
Classificação
Projetos
346
29%
Arbitragem
36
28%
/
64%
Expirado
10
3%
Trabalhando
2
Classificação
Projetos
38
21%
Arbitragem
5
0%
/
60%
Expirado
0
Livre
3
Classificação
Projetos
34
53%
Arbitragem
1
100%
/
0%
Expirado
1
3%
Livre
4
Classificação
Projetos
21
14%
Arbitragem
8
38%
/
38%
Expirado
3
14%
Carregado
5
Classificação
Projetos
515
19%
Arbitragem
35
46%
/
31%
Expirado
34
7%
Trabalhando
6
Classificação
Projetos
20
40%
Arbitragem
1
0%
/
100%
Expirado
1
5%
Livre
7
Classificação
Projetos
90
29%
Arbitragem
24
13%
/
58%
Expirado
7
8%
Trabalhando
8
Classificação
Projetos
26
73%
Arbitragem
1
0%
/
100%
Expirado
0
Livre
9
Classificação
Projetos
35
20%
Arbitragem
5
40%
/
40%
Expirado
0
Livre
Publicou: 1 código
10
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
11
Classificação
Projetos
3
0%
Arbitragem
8
13%
/
88%
Expirado
1
33%
Livre
12
Classificação
Projetos
716
33%
Arbitragem
46
48%
/
41%
Expirado
14
2%
Carregado
13
Classificação
Projetos
6
0%
Arbitragem
4
25%
/
75%
Expirado
2
33%
Livre
14
Classificação
Projetos
267
21%
Arbitragem
24
50%
/
17%
Expirado
0
Trabalhando
15
Classificação
Projetos
1
0%
Arbitragem
5
0%
/
100%
Expirado
0
Livre
16
Classificação
Projetos
289
35%
Arbitragem
18
22%
/
61%
Expirado
43
15%
Livre
17
Classificação
Projetos
246
74%
Arbitragem
7
100%
/
0%
Expirado
1
0%
Livre
Publicou: 1 artigo
18
Classificação
Projetos
91
13%
Arbitragem
34
26%
/
59%
Expirado
37
41%
Livre
19
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
20
Classificação
Projetos
8
0%
Arbitragem
4
0%
/
100%
Expirado
3
38%
Livre
21
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
22
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
23
Classificação
Projetos
945
47%
Arbitragem
309
58%
/
27%
Expirado
125
13%
Livre
Pedidos semelhantes
1. General Overview: I am looking for an experienced developer to build (or debug/optimize) an MQL5 Expert Advisor. The EA will primarily trade Gold (XAU/USD) and US Indices (US30, US100). 2. Platform & Broker Requirements: Platform: MetaTrader 5 (MQL5) Broker: Must be fully compatible with XM Broker execution. Account Types: Must support both Standard and Micro lot sizing seamlessly. 3. Technical & Skill
A simple hedge robot
30 - 50 USD
Eu gostaria de um robot de Hedge, em uma conta ele vende na outra conta ele compra, mas que seja de forma bem perfeita, ou seja, com comissao, spread e lot ajustados para que nas duas contas os trades fiquem exatos -30$ e +30$ . very simple strategy smc that makes 50 trades at least on a period of 24h
Modification of an existing MQL5 EA TH-05
30 - 300 USD
I Have an existing Mql5 Expert advisor (source code), I want a professional programmer to help me Modify the EA... so that it can stop taking new trades once it Gets to a Pacific Lots Size or Floating loss
Hi, can you define entry conditions based on 100 or 200 trades? If you need more history, i can give you more trades. It is EURUSD with great results! If you can do it, contact me
The Ultimate Trading Bot
30+ USD
take your time better make it for days and have good bot than never benefits both of us. Make the bot have zero errors and backtest it for a 2 year period
Wise Legend
30 - 500 USD
I want this robot to alert me on a good entry point on the trading flat form ether to buy or to sell. And also alert me when to close the market. And alert me on market continuations
I have an existing MT5 Expert Advisor with the original MQ5 source code. I need an experienced MQL5 developer to review, debug and professionally improve the existing EA, not build an unrelated EA from scratch. The EA is mainly for XAUUSD and already contains entry signals, EMA filters, automatic lot sizing, basket profit management, spread/margin protection, news filtering and recovery logic. The main problem is the
Exact Pine Script Conversion: The EA must replicate my Pine Script exactly — including Support/Resistance, Liquidity Grab/Sweep, 30 EMA, Entry, SL, TP, Partial Booking and Breakeven . No assumptions or changes to the logic. Accurate Entries: The EA must enter exactly according to the Pine Script conditions, including the correct candle and price level after the Support/Resistance or Liquidity Sweep setup. SL & TP: SL
I buy EA for USDEUR or XAUUSD for FTMO with proven backtest. Send me images with backtest reports where daily max dd is 1% on 200k account. I can buy several eas if you have them with proofs. Need images of backtesting for 5 years
Cerco uno sviluppatore MQL5 esperto per lavorare su un Expert Advisor (EA) XAUUSD per MetaTrader 5 già esistente , versione attuale XAU_V59.mq5 . L'obiettivo è modificare, correggere e sviluppare il codice esistente senza stravolgere la logica già presente , mantenendo le regole ei parametri già definiti, salvo le modifiche espressamente richieste. REQUISITI FONDAMENTALI Il codice deve essere scritto in MQL5 nativo e
Informações sobre o projeto
Orçamento
30 - 200 USD