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
(381)
Projets
490
23%
Arbitrage
59
54% / 25%
En retard
56
11%
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
(257)
Projets
263
30%
Arbitrage
0
En retard
3
1%
Gratuit
Publié : 2 codes
6
Développeur 6
Évaluation
(637)
Projets
858
48%
Arbitrage
29
38% / 17%
En retard
63
7%
Gratuit
7
Développeur 7
Évaluation
(19)
Projets
24
21%
Arbitrage
0
En retard
2
8%
Gratuit
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
58
3%
Arbitrage
6
0% / 67%
En retard
5
9%
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
You can control via Telegram: /start - enable bot, begin trading, /stop - end trading, disable bot /status - trade status Bot requirements: • Automated trading throughout the day until 00:00 UTC (Moscow time) (I do not want to trade or turn the bot on 100 times a day). • Auto shutdown of the bot in Telegram at 00:00 UTC (Moscow time) and manual restart when convenient. • Market analysis 24/5 using 20 EMA, RSI, and
I am seeking an alert-only EA. An EA that will follow all the rules but not execute a trade. As this is a repeat posting I am seeking the successful technician - Xiro from Vietnam. Thanks Karl
Ninjatrader bot 30+ USD
I am looking for an experienced developer who specializes in NinjaTrader and NinjaScript to build a fully automated trading bot. The goal is to create a “sniper-style” trading system that focuses on precise entries, strong risk management, and structured trading logic. This is NOT a simple indicator project I am looking for someone who understands algorithmic trading and can translate trading rules into a reliable
Looking for a trading bot / Expert Advisor that wont make dozens of small successful trades and then one or two unsuccessful trades that wipes out your account Requirements: - MT4 capable - Use on the major currency pairs - although open to other currency pairs - Be successful in monetary terms not necessarily in how many successful trades
I need a MT5 Prop firm challenge passing EA with strict prop firm rules compliance. Any strategy can be used but win rate should be above 70%. It should have high impact news filter and a dashboard panel to monitor daily drawdown, target profit, current balance, etc. It should not have martingale, grid, hedging, etc
Hello Developers I have a Project to get done! i have a simple strategy can you please create the automated forex ea to execute my trading strategy? i need custom ea for tradingview and mt4/mt5 correction: i need a tradingview indicator created that tells me when to buy or sell. and ea in mt4/mt5
Pro firm setup 30+ USD
Hi, I am starting a futures prop firm. Are you able to help me get data feed for this with no delays and can handle many traders on the platform. Additionally, are you able to handle charts for us
Mam kody EA Bot. Chciałbym je dokończyć, dopracować i ukończyć projekty. Chciałbym otrzymać pliki SET po ukończeniu EA. Jeśli jesteś zainteresowany, skontaktuj się ze mną. Szukam doświadczonego programisty do stworzenia dedykowanego doradcy eksperckiego (EA) do tradingu. Programista powinien posiadać solidną wiedzę z zakresu MT5, logiki strategii, wskaźników, zarządzania ryzykiem i backtestingu. Doświadczenie w
I am looking for an experienced developer to create a custom Expert Advisor (EA) for trading. The developer should have strong knowledge of MT4/MT5, strategy logic, indicators, risk management, and backtesting. Experience in building reliable and professional trading robots is preferred. Please contact me if you have done similar projects before. 9817724000
I need a skilled MQL5 developer to build a fully functional Expert Advisor (EA) for MetaTrader 5 based on a simple but strict trading strategy. The EA will use EMA 50/200 trend detection combined with breakout and retest logic for entries. It must operate only during London and New York sessions and include solid risk management (fixed % risk, SL/TP, trade limits, and basic protection rules). APPLY ONLY IF YOU HAVE

Informations sur le projet

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