• Welcome to จั่นเจาดอทคอม ถามตอบ คอมพิวเตอร์ อินเตอร์เน็ต Forex MT4 MT5 เทรดทอง .
 

News:

Exness ลงทะเบียนระบบใหม่ ใส่รหัสพาร์ทเนอร์ 73208
https://www.exness.com/boarding/sign-up/a/73208?lng=th
1. เลือกประเทศ ไทย
2. อีเมล์จริงของคุณ
3. รหัสผ่าน
* รหัสผ่านต้องมีความยาว 8-15 ตัว
* ใช้ทั้งอักษรตัวพิมพ์ใหญ่และตัวพิมพ์เล็ก
* ใช้ทั้งตัวเลขและตัวอักษรภาษาอังกฤษ
* ห้ามใช้อักขระพิเศษ (!@#$%^&*., และอื่นๆ)
4. ใส่รหัสพาร์ทเนอร์ 73208
---------------------------------------------------------
exness เปิดบัญชีลูกค้าใหม่ 4-31 มี.ค. 2568 รับโบนัท Rebate
เงินคืนจากการเทรด EURUSD 1 Lot Rebate 1.5 USD  ,
Gold 1 Lot  Rebate 2.80 USD , BTCUSD 1 Lot Rebate 5.74 USD
เปิดบัญชี Standard ได้ที่ https://exness.com/intl/th/a/73208
แจ้ง ID ที่เปิด ได้ที่ Line : junjaocom

Main Menu

แจกฟรี EA MT4 EU-M5-EMA50x200-RSI-11APR2025

Started by junjao, April 12, 2025, 01:00:33 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

junjao

แจกฟรี EA MT4 EU-M5-EMA50x200-RSI-11APR2025

EA ตัวใหม่ MT4 เทรด EU  กรอบเวลา 5 นาที (RAW หรือ Zero)

1,000 USD เปิด 0.1 Lot (100 USD 0.01 Lot)

เปิดบัญชี RAW หรือ Zero ค่า Spread 0 pips ได้ที่ https://exness.com/intl/th/a/73208

ลูกค้าขอทดลอง EA แจ้ง ID ที่สมัครผ่านลิงค์ผม เดี่ยวผมให้ EA ทดลองใช้ฟรี

**** ปรับค่า 2 ตัว หรือลูกค้าลองปรับเองดู *****

Slippage = 1;
extern double RiskRewardRatio = 1.5;
extern int StopLossPips = 20;

Alright! Below is the MQL4 code for a **EUR/USD M5 Trend-Pullback Strategy**, based on:

- 50 EMA and 200 EMA for trend detection
- RSI for pullback confirmation
- Candlestick type for entry signal
- TP/SL based on risk:reward

This EA (Expert Advisor) opens trades when all conditions are met.

---

### ✅ **MQL4 Code – EMA + RSI Trend-Pullback EA (M5)**

```mql4
//+------------------------------------------------------------------+
//|                EURUSD M5 EMA + RSI Strategy EA                  |
//+------------------------------------------------------------------+
#property strict

extern double LotSize = 0.1;
extern int Slippage = 3;
extern double RiskRewardRatio = 1.5;
extern int StopLossPips = 10;

extern int RSI_Period = 14;
extern int RSI_BuyLevel = 40;
extern int RSI_SellLevel = 60;

extern int FastEMA = 50;
extern int SlowEMA = 200;

//+------------------------------------------------------------------+
int OnInit()
{
  Print("EA Initialized");
  return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
void OnTick()
{
  if (TimeFrameCheck()) return; // Avoid multiple trades on same candle

  double emaFast = iMA(NULL, 0, FastEMA, 0, MODE_EMA, PRICE_CLOSE, 0);
  double emaSlow = iMA(NULL, 0, SlowEMA, 0, MODE_EMA, PRICE_CLOSE, 0);
  double rsi = iRSI(NULL, 0, RSI_Period, PRICE_CLOSE, 0);

  double ask = NormalizeDouble(Ask, Digits);
  double bid = NormalizeDouble(Bid, Digits);

  // Buy Conditions
  if (emaFast > emaSlow && rsi < RSI_BuyLevel && rsi > 20 && NoOpenTrades(OP_BUY))
  {
      if (IsBullishCandle(1))
      {
        double sl = bid - StopLossPips * Point;
        double tp = bid + (StopLossPips * RiskRewardRatio) * Point;
        OrderSend(Symbol(), OP_BUY, LotSize, ask, Slippage, sl, tp, "Buy Signal", 0, 0, clrBlue);
      }
  }

  // Sell Conditions
  if (emaFast < emaSlow && rsi > RSI_SellLevel && rsi < 80 && NoOpenTrades(OP_SELL))
  {
      if (IsBearishCandle(1))
      {
        double sl = ask + StopLossPips * Point;
        double tp = ask - (StopLossPips * RiskRewardRatio) * Point;
        OrderSend(Symbol(), OP_SELL, LotSize, bid, Slippage, sl, tp, "Sell Signal", 0, 0, clrRed);
      }
  }
}

//+------------------------------------------------------------------+
bool NoOpenTrades(int type)
{
  for (int i = 0; i < OrdersTotal(); i++)
  {
      if (OrderSelect(i, SELECT_BY_POS, MODE_TRADES))
      {
        if (OrderSymbol() == Symbol() && OrderType() == type)
            return false;
      }
  }
  return true;
}

//+------------------------------------------------------------------+
bool IsBullishCandle(int index)
{
  return (iClose(NULL, 0, index) > iOpen(NULL, 0, index));
}

bool IsBearishCandle(int index)
{
  return (iClose(NULL, 0, index) < iOpen(NULL, 0, index));
}

//+------------------------------------------------------------------+
bool TimeFrameCheck()
{
  static datetime lastTradeTime = 0;
  if (Time
  • == lastTradeTime)
      return true;
  lastTradeTime = Time
  • ;
  return false;
}
```

---

### 📌 How to Use:
1. Paste into MetaEditor → New → Expert Advisor
2. Compile and attach to **EUR/USD M5 chart**
3. Test in Strategy Tester to optimize parameters (like SL, RSI thresholds, etc.)

---

Want to:
- Add trailing stop?
- Include MACD or volume filter?
- Make it usable on other pairs/timeframes?
------------------------------------------------







MT4 MT5 EA Indicator EURUSD USDJPY XAUUSD Gold Bitcoin Oil
สอบถาม 081-446-5311 , line : junjaocom , Email : jun_jao2000@hotmail.com
สมัคร Exness ได้ที่ https://www.exness.com/a/73208
หน้าลงทะเบียน Exness ได้ที่ https://www.exness.com/boarding/sign-up/a/73208?lng=th
ขั้นตอนสมัคร exness https://www.junjao.com/board/index.php?topic=279

junjao

MT4 MT5 EA Indicator EURUSD USDJPY XAUUSD Gold Bitcoin Oil
สอบถาม 081-446-5311 , line : junjaocom , Email : jun_jao2000@hotmail.com
สมัคร Exness ได้ที่ https://www.exness.com/a/73208
หน้าลงทะเบียน Exness ได้ที่ https://www.exness.com/boarding/sign-up/a/73208?lng=th
ขั้นตอนสมัคร exness https://www.junjao.com/board/index.php?topic=279