4 Timeframe CCI and RSI with Averages (MQL4)

Tarea técnica

//+------------------------------------------------------------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
#property strict

// Inputs
input int EMA_Fast = 9;
input int EMA_Slow = 21;
input int RSI_Period = 14;
input double Lots = 0.1;
input int StopLoss = 20;      // وقف خسارة (بـ نقاط)
input int TakeProfit = 40;    // هدف (بـ نقاط)
input int Slippage = 3;

// Global Variables
double emaFast, emaSlow, rsiVal;

//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void OnTick()
{
    if (OrdersTotal() == 0)  // لا تفتح صفقة جديدة إذا كان هناك صفقة مفتوحة
    {
        emaFast = iMA(NULL, PERIOD_M5, EMA_Fast, 0, MODE_EMA, PRICE_CLOSE, 1);
        emaSlow = iMA(NULL, PERIOD_M5, EMA_Slow, 0, MODE_EMA, PRICE_CLOSE, 1);
        rsiVal = iRSI(NULL, PERIOD_M5, RSI_Period, PRICE_CLOSE, 1);

        // ----- BUY SIGNAL -----
        if (emaFast > emaSlow && rsiVal > 30 && rsiVal < 70)
        {
            OrderSend(Symbol(), OP_BUY, Lots, Ask, Slippage,
                      Ask - StopLoss * Point, Ask + TakeProfit * Point,
                      "EMA_RSI_Buy", 0, 0, clrGreen);
        }

        // ----- SELL SIGNAL -----
        if (emaFast < emaSlow && rsiVal > 30 && rsiVal < 70)
        {
            OrderSend(Symbol(), OP_SELL, Lots, Bid, Slippage,
                      Bid + StopLoss * Point, Bid - TakeProfit * Point,
                      "EMA_RSI_Sell", 0, 0, clrRed);
        }
    }
}
//+------------------------------------------------------------------+

Han respondido

1
Desarrollador 1
Evaluación
(382)
Proyectos
493
23%
Arbitraje
59
56% / 25%
Caducado
57
12%
Trabajando
2
Desarrollador 2
Evaluación
(16)
Proyectos
35
23%
Arbitraje
4
0% / 50%
Caducado
2
6%
Trabaja
3
Desarrollador 3
Evaluación
(45)
Proyectos
46
24%
Arbitraje
34
9% / 85%
Caducado
10
22%
Libre
4
Desarrollador 4
Evaluación
(43)
Proyectos
66
12%
Arbitraje
12
58% / 42%
Caducado
1
2%
Libre
5
Desarrollador 5
Evaluación
(258)
Proyectos
265
29%
Arbitraje
0
Caducado
3
1%
Libre
Ha publicado: 2 ejemplos
6
Desarrollador 6
Evaluación
(640)
Proyectos
865
48%
Arbitraje
29
38% / 17%
Caducado
63
7%
Trabaja
7
Desarrollador 7
Evaluación
(25)
Proyectos
31
32%
Arbitraje
0
Caducado
2
6%
Trabaja
8
Desarrollador 8
Evaluación
(28)
Proyectos
39
23%
Arbitraje
14
0% / 93%
Caducado
4
10%
Libre
9
Desarrollador 9
Evaluación
Proyectos
0
0%
Arbitraje
1
0% / 100%
Caducado
0
Libre
Ha publicado: 1 ejemplo
10
Desarrollador 10
Evaluación
(144)
Proyectos
186
41%
Arbitraje
24
58% / 21%
Caducado
13
7%
Libre
11
Desarrollador 11
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
12
Desarrollador 12
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
13
Desarrollador 13
Evaluación
(44)
Proyectos
58
3%
Arbitraje
6
0% / 67%
Caducado
5
9%
Libre
14
Desarrollador 14
Evaluación
(6)
Proyectos
7
14%
Arbitraje
1
0% / 100%
Caducado
1
14%
Libre
15
Desarrollador 15
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
Solicitudes similares
I have a EA for XAUUSD which works awesome in sideways and trending market as well, capital requirement is only 2000USd and weekly profit is around 1500-2000 USD. I am using this bot from 3 months and getting continuous good result
Expert should be able to place trades across all Forex symbols (solution is advised) . xauusd live chart execution error . Deletion and Cleaning the Code (if required) . Live Chart Only
Dear All i am working on strategy in forex market specifically in xausud and i just want someone to make it automatic execution mode as per my requirements with propee risk management my broker is exness and i have an account in MT5
I am looking for an experienced MT5/MQL5 programmer to build Phase 1 of a larger Expert Advisor project. This first phase is limited to one custom signal only for the EUR/USD. If Phase 1 is completed correctly, additional signals may be added later as separate follow-up projects. The purpose of Phase 1 is to code, test, display, and log this signal accurately using completed M1 bars only. At this stage, I primarily
✅ MT4 EA Developer Checklist (For Your Ladder EA) 1️⃣ Indicator Integration EA reads signals from provided custom indicator (.ex4 or .mq4) Detects “Buy Next” / “Sell Next” signals on current candle Works with arrow-based or buffer-based signals 2️⃣ Next Candle Execution EA does not trade on the candle where the signal appears Orders placed only at first tick of the next candle Timeframes supported: M1, M5, M15
Hi to all, I need a modification of an existing grid EA with the following instructions: Add the following optional external inputs to the attached Expert Advisor: input bool TradeModeAgainstTrend ( TMAT ) = true ; input int CounterTrendLotsToStartTMAT = 0.15 ; input double CoefficientForTrendLots = 0.30 ; input double MaxTrendLot = 0.08 ; input bool OneSideTMATOnly = true ; input double CombinedClosureAmount = 10.0
Hello, i need expert developer that have been develop so many profitable AI bots that work for mt5 and ctrader autonomously if you know you can easily execute this requirement bid for it. NOTE:- YOU MUST COME WITH SAMPLE FOR THE 2 TRADING PLATFORM. While i take a look at your profile and reach out to you thanks
Gold robot 3000+ USD
I really liked this training platform. I want to start a good business with this funding amount."I like crypto trading. Does it provide a demo account that is good for learning?"
Gold robot 3000+ USD
Hello, I am looking for someone who can help me to build a MT4/MT5 forex EA, by analyzing the trading history. You are responsible to find out trading logic behind the EA and Build a new EA that accurately replicates the existing strategy. I need someone who has proven previous experience to build a new EA by reverse engineering. Thanks

Información sobre el proyecto

Presupuesto
30 USD
Plazo límite de ejecución
de 1 a 30 día(s)