Tarea técnica

// === 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);
        }
    }
}

Han respondido

1
Desarrollador 1
Evaluación
(241)
Proyectos
304
28%
Arbitraje
32
25% / 63%
Caducado
10
3%
Trabajando
2
Desarrollador 2
Evaluación
(33)
Proyectos
38
21%
Arbitraje
5
0% / 60%
Caducado
0
Libre
3
Desarrollador 3
Evaluación
(22)
Proyectos
31
55%
Arbitraje
0
Caducado
1
3%
Trabaja
4
Desarrollador 4
Evaluación
(15)
Proyectos
18
6%
Arbitraje
8
38% / 38%
Caducado
2
11%
Trabaja
5
Desarrollador 5
Evaluación
(323)
Proyectos
502
19%
Arbitraje
33
42% / 30%
Caducado
33
7%
Trabajando
6
Desarrollador 6
Evaluación
(12)
Proyectos
19
37%
Arbitraje
1
0% / 100%
Caducado
1
5%
Libre
7
Desarrollador 7
Evaluación
(57)
Proyectos
84
26%
Arbitraje
24
13% / 58%
Caducado
7
8%
Trabaja
8
Desarrollador 8
Evaluación
(22)
Proyectos
24
71%
Arbitraje
0
Caducado
0
Trabajando
9
Desarrollador 9
Evaluación
(33)
Proyectos
35
20%
Arbitraje
5
40% / 40%
Caducado
0
Libre
Ha publicado: 1 ejemplo
10
Desarrollador 10
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
11
Desarrollador 11
Evaluación
(2)
Proyectos
3
0%
Arbitraje
8
13% / 88%
Caducado
1
33%
Libre
12
Desarrollador 12
Evaluación
(540)
Proyectos
622
33%
Arbitraje
37
38% / 51%
Caducado
11
2%
Ocupado
13
Desarrollador 13
Evaluación
(6)
Proyectos
5
0%
Arbitraje
2
50% / 50%
Caducado
2
40%
Libre
14
Desarrollador 14
Evaluación
(176)
Proyectos
227
19%
Arbitraje
21
38% / 24%
Caducado
0
Trabaja
15
Desarrollador 15
Evaluación
(3)
Proyectos
1
0%
Arbitraje
5
0% / 100%
Caducado
0
Libre
16
Desarrollador 16
Evaluación
(159)
Proyectos
284
35%
Arbitraje
18
22% / 61%
Caducado
42
15%
Trabajando
17
Desarrollador 17
Evaluación
(77)
Proyectos
241
73%
Arbitraje
7
100% / 0%
Caducado
1
0%
Libre
18
Desarrollador 18
Evaluación
(45)
Proyectos
91
13%
Arbitraje
34
26% / 59%
Caducado
37
41%
Libre
19
Desarrollador 19
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
20
Desarrollador 20
Evaluación
(7)
Proyectos
8
0%
Arbitraje
4
0% / 100%
Caducado
3
38%
Libre
21
Desarrollador 21
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
22
Desarrollador 22
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
23
Desarrollador 23
Evaluación
(574)
Proyectos
945
47%
Arbitraje
309
58% / 27%
Caducado
125
13%
Libre
Solicitudes similares
step by step and structure this into a full IEEE 830 / ISO/IEC/IEEE 29148 style Requirements Specification. This format will include: Introduction System Overview Functional and Performance Requirements Traceability Matrix (linking requirements to test cases) Verification and Validation Compliance Standards 1. Introduction 1.1 Purpose The purpose of this document is to define the technical requirements for the
i need an expert to help join 3 model i have in ninjatrader into one, kindly message me and i will be expecting from you and i need this work done in maximum of 4 days, so i need expert that can get it done
I want an EA that work with my support and resistance indicator. Buy entry condition are: 1. hen candlestick closes in side the support bar. 2. When candlestick break above resistance bar. Likewise sell condition: 1. When candlestick closes inside the resistance bar, 2. When candlestick break below support bar
1. Goal I want a MetaTrader 5 Expert Advisor that trades a simple Supertrend trend‑following idea, but with professional‑grade risk management and filters. It should be robust enough for real money on instruments like XAUUSD and GBP pairs, using small, consistent risk per trade rather than martingale or grid. 2. Strategy Logic Indicators (I will supply the .mq5 files if needed): Supertrend (ATR‑based), with
Hi developers, I need someone to help me create a simple EA with my indicators and trading plan... I will give you all parameters and you help me create... 2 moving averages, one candle pattern
Please a need a very good expert for this jou I want to create 2 robot one a trade manager Perfect — here’s a clean, professional order description you can post directly to an EA freelancer (MQL5). I’ve written it so it’s clear, serious, and attractive to skilled developers 👌 MQL5 Trade Manager EA – Development Request I am looking for an experienced MQL5 developer to build a robust Trade Manager Expert Advisor for
Henryy999 30 - 3000 USD
The Ai robot must help me with forex and I don't have money soon can the Ai robot give me some money and I will pay it back if the Ai robot does a good job making me rich
Project Title: MT5 Algo Trading EA (Single Strategy + License Panel + Ownership + Manual Trade) --- Project Description I am looking for an experienced MT5 (MQL5) developer to create a clean, stable and professional Algo Trading EA for my company and future clients. This is a long-term business project, not a one-time personal EA. --- 1. Strategy Requirements - Only 1 single trading strategy - No martingale - No grid
I am looking for an experienced StrategyQuant X (SQX) developer to build a reusable trading template , not a single strategy. ⚠️ Please do NOT apply unless you actively use StrategyQuant X and have access to it. This project cannot be completed without SQX. 1. Session and Time Filters Trading restricted to fixed GMT sessions per index Sessions must convert correctly to broker server time and remain correct through
Is there someone who coded the PipJuice indicator? Here is the link: https://www.pipjuice.io/ Unfortunately, I don‘t have access to the indicator or the code. If someone have it please send me some screenshots

Información sobre el proyecto

Presupuesto
30 - 200 USD