4 Timeframe CCI and RSI with Averages (MQL4)

Şartname

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

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(381)
Projeler
490
23%
Arabuluculuk
59
54% / 25%
Süresi dolmuş
56
11%
Yüklendi
2
Geliştirici 2
Derecelendirme
(16)
Projeler
35
23%
Arabuluculuk
4
0% / 50%
Süresi dolmuş
2
6%
Çalışıyor
3
Geliştirici 3
Derecelendirme
(45)
Projeler
46
24%
Arabuluculuk
34
9% / 85%
Süresi dolmuş
10
22%
Serbest
4
Geliştirici 4
Derecelendirme
(43)
Projeler
66
12%
Arabuluculuk
12
58% / 42%
Süresi dolmuş
1
2%
Serbest
5
Geliştirici 5
Derecelendirme
(257)
Projeler
263
30%
Arabuluculuk
0
Süresi dolmuş
3
1%
Serbest
Yayınlandı: 2 kod
6
Geliştirici 6
Derecelendirme
(637)
Projeler
858
48%
Arabuluculuk
29
38% / 17%
Süresi dolmuş
63
7%
Serbest
7
Geliştirici 7
Derecelendirme
(19)
Projeler
24
21%
Arabuluculuk
0
Süresi dolmuş
2
8%
Serbest
8
Geliştirici 8
Derecelendirme
(28)
Projeler
39
23%
Arabuluculuk
14
0% / 93%
Süresi dolmuş
4
10%
Serbest
9
Geliştirici 9
Derecelendirme
Projeler
0
0%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
0
Serbest
Yayınlandı: 1 kod
10
Geliştirici 10
Derecelendirme
(144)
Projeler
186
41%
Arabuluculuk
24
58% / 21%
Süresi dolmuş
13
7%
Serbest
11
Geliştirici 11
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
12
Geliştirici 12
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
13
Geliştirici 13
Derecelendirme
(44)
Projeler
58
3%
Arabuluculuk
6
0% / 67%
Süresi dolmuş
5
9%
Serbest
14
Geliştirici 14
Derecelendirme
(6)
Projeler
7
14%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
1
14%
Serbest
15
Geliştirici 15
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Benzer siparişler
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

Proje bilgisi

Bütçe
30 USD
Son teslim tarihi
from 1 to 30 gün