4 Timeframe CCI and RSI with Averages (MQL4)

Spécifications

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

Répondu

1
Développeur 1
Évaluation
(397)
Projets
513
23%
Arbitrage
60
57% / 25%
En retard
60
12%
Chargé
2
Développeur 2
Évaluation
(16)
Projets
35
23%
Arbitrage
4
0% / 50%
En retard
2
6%
Travail
3
Développeur 3
Évaluation
(45)
Projets
46
24%
Arbitrage
34
9% / 85%
En retard
10
22%
Gratuit
4
Développeur 4
Évaluation
(43)
Projets
66
12%
Arbitrage
12
58% / 42%
En retard
1
2%
Gratuit
5
Développeur 5
Évaluation
(258)
Projets
269
29%
Arbitrage
1
100% / 0%
En retard
3
1%
Travail
Publié : 2 codes
6
Développeur 6
Évaluation
(645)
Projets
873
48%
Arbitrage
29
38% / 17%
En retard
63
7%
Gratuit
7
Développeur 7
Évaluation
(28)
Projets
34
35%
Arbitrage
0
En retard
2
6%
Travail
8
Développeur 8
Évaluation
(28)
Projets
39
23%
Arbitrage
14
0% / 93%
En retard
4
10%
Gratuit
9
Développeur 9
Évaluation
Projets
0
0%
Arbitrage
1
0% / 100%
En retard
0
Gratuit
Publié : 1 code
10
Développeur 10
Évaluation
(144)
Projets
186
41%
Arbitrage
24
58% / 21%
En retard
13
7%
Gratuit
11
Développeur 11
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
12
Développeur 12
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
13
Développeur 13
Évaluation
(44)
Projets
60
5%
Arbitrage
6
0% / 67%
En retard
5
8%
Gratuit
14
Développeur 14
Évaluation
(6)
Projets
7
14%
Arbitrage
1
0% / 100%
En retard
1
14%
Gratuit
15
Développeur 15
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
Commandes similaires
Hi, I want to develop a highly accurate, custom technical indicator for MetaTrader 5 (MT5) specifically tailored for 1-minute Binary Options trading (Quotex). I do NOT need an automated trading bot. I only need visual buy/sell arrows on the chart, an advanced alert system, and an on-chart performance statistics dashboard. The indicator must be 100% non-repainting. --- 1. STRATEGY CONFLUENCE LOGIC The indicator should
Create a bot that can trade and read indicators easy to read for first time users. Bot that can be used on a phone and connect to MT5. It should be easy to install or use on any device especially phone and laptop, preferably the bot that can run over night and controllable when needed
C'est un Expert Advisor (EA) MQL5 pour MetaTrader 5, conçu pour l' XAUUSD , combinant un filtre de tendance et une grille adaptative avec gestion de panier ("basket") et protections contre le drawdown. Version 1.00. Logique de trading Filtre de tendance (H4 par défaut) • EMA rapide (50) vs EMA lente (200) pour déterminer la direction (UP/DOWN) • Filtre ADX (période 14, seuil 18) pour éviter de trader en
My EA is semi Auto EA..with Master and slave concept Using Heiken Ashi +Heiken Smooth and Moving Average What to do?1. Remove some previous feature 2.Change some rules of 4 slave to pending Order 3. Check the coding is clean. 4. create panel dialog box
These are orderflow footprint indicator I would like to know if you can algorithmisie and build a stacked imbalance bot from them .. Kindlt let me know if you can do it and check the file before replying me
I have 2 trading view indicators by GainzAlgo that I want code to mt5 , could u advise? I need you to give me response if you can convert This
I currently sell a white-label XAUUSD EA, but the existing supplier owns the source code. I now need a new, independently developed EA and licensing system that my company fully owns and controls. I am not requesting decompilation or copying of proprietary code. Existing settings, presets and trading examples will be provided as reference. The developer must first identify any missing strategy rules before
I DO NOT need any programming or strategy development. I already have a working NinjaTrader 8 automated strategy based on a 3/5 EMA crossover. I need you to run my existing strategy through NinjaTrader Strategy Analyzer/Optimizer, test the existing adjustable parameters, and find robust settings with the best profit factor and lowest reasonable drawdown. I will provide the existing NinjaScript ZIP. I do not want the
I am looking to acquire an EXISTING and PROVEN MetaTrader 5 Expert Advisor. I am NOT looking for someone to develop a random new strategy from scratch. The objective is to find a robust EA with an existing track record, verify its performance and robustness, and purchase the MQL5 source code together with clearly defined commercial rights. MAIN REQUIREMENTS The EA should meet most or all of the following
Looking to acquire an existing, proven EA. Not looking for new strategy development. REQUIREMENTS — non-negotiable: Minimum 12 months verified LIVE history (Myfxbook or MQL5 Signals, real money — not demo, not backtest) Hard stop loss on EVERY trade, set at order placement NO martingale, NO grid, NO averaging into losers, NO lot multiplication after a loss Max historical drawdown under 30% Minimum 5 trades per

Informations sur le projet

Budget
30 USD
Délais
de 1 à 30 jour(s)