명시
// === 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);
}
}
}
응답함
1
등급
프로젝트
346
29%
중재
36
28%
/
64%
기한 초과
10
3%
로드됨
2
등급
프로젝트
38
21%
중재
5
0%
/
60%
기한 초과
0
무료
3
등급
프로젝트
34
53%
중재
1
100%
/
0%
기한 초과
1
3%
무료
4
등급
프로젝트
21
14%
중재
8
38%
/
38%
기한 초과
3
14%
로드됨
5
등급
프로젝트
515
19%
중재
35
46%
/
31%
기한 초과
34
7%
작업중
6
등급
프로젝트
20
40%
중재
1
0%
/
100%
기한 초과
1
5%
무료
7
등급
프로젝트
90
29%
중재
24
13%
/
58%
기한 초과
7
8%
작업중
8
등급
프로젝트
26
73%
중재
1
0%
/
100%
기한 초과
0
무료
9
등급
프로젝트
35
20%
중재
5
40%
/
40%
기한 초과
0
무료
게재됨: 1 코드
10
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
11
등급
프로젝트
3
0%
중재
8
13%
/
88%
기한 초과
1
33%
무료
12
등급
프로젝트
716
33%
중재
46
48%
/
41%
기한 초과
14
2%
로드됨
13
등급
프로젝트
6
0%
중재
4
25%
/
75%
기한 초과
2
33%
무료
14
등급
프로젝트
267
21%
중재
24
50%
/
17%
기한 초과
0
작업중
15
등급
프로젝트
1
0%
중재
5
0%
/
100%
기한 초과
0
무료
16
등급
프로젝트
289
35%
중재
18
22%
/
61%
기한 초과
43
15%
무료
17
등급
프로젝트
246
74%
중재
7
100%
/
0%
기한 초과
1
0%
무료
게재됨: 1 기고글
18
등급
프로젝트
91
13%
중재
34
26%
/
59%
기한 초과
37
41%
무료
19
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
20
등급
프로젝트
8
0%
중재
4
0%
/
100%
기한 초과
3
38%
무료
21
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
22
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
23
등급
프로젝트
945
47%
중재
309
58%
/
27%
기한 초과
125
13%
무료
비슷한 주문
I want a scalping Ea robot based on EMA crossover
30 - 200 USD
the bot will be used for xauusd scalp trading , want the bor follow the trading indicator will SL and open another opposite order where i can customize the SL margin and risk management
Trailing order
30+ USD
je souhaite créer un robot qui active ordre d'achat (ou un ordre de vente) suiveur en fonction d'un ou plusieurs indicateurs sur le chart M1 (vwap, SD+-2, SSA et kijun sur le période M5, BSI ) selon l'indication Heiken Hachi (avec ou sans période M5). le robot a un trailing stop et l'ordre peut être unique ou triple car 3 TP (TP1 à 90% du lot, TP2 à 50% du lot et TP3 non défini)
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
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
프로젝트 정보
예산
30 - 200 USD