I want to convert my indicator from Trading view to MQL5

工作已完成

执行时间1 一天
客户反馈
Very good
员工反馈
Detailed and clear description, convenient for work

指定

I need an indicatorv for MQL5, It uses CCi and 2 EMA, the strategy is; Ema 50 and 200, when Above ema 50 we look for buy signal and when below we look for sell, the CCI should be 20 period with 150 and -150 once the price is overbought and oversold and it renter the level 150 and -150 with the confermition of ema we have the signal

I want to add the alert to the signal


#property indicator_chart_mode ANY

#property indicator_separate_window true  // Optional: Separate window for indicator

#include "iCustom\\iCustom.mqh" // Include for custom indicator functions (if needed)

int  ema50Length = 50;
int  ema200Length = 200;
int  cciLength = 20;
double overbought = 150;
double oversold = -150;

double ema50[], ema200[], cci[];

bool trendBullish, trendBearish;
bool buySignal[], sellSignal[]; // Arrays for storing signals

// Function to calculate EMA (replace with custom function if needed)
double iCustom_EMA(double price[], int period) {
  double sum = 0.0;
  for (int i = 0; i < period; i++) {
    sum += price[Close];
  }
  return sum / period * (2.0 / (period + 1.0));
}

int OnInit() {
  ema50 = ArrayDimension(ema50Length);  // Allocate arrays
  ema200 = ArrayDimension(ema200Length);
  cci = ArrayDimension(cciLength);

  buySignal = ArrayDimension(Bars);  // Allocate arrays for signals
  sellSignal = ArrayDimension(Bars);

  return(INIT_SUCCEEDED);
}

int OnCalculate(const int start, const int end) {
  if(start == 0) {
    // Initialize arrays on the first call
    for (int i = 0; i < ArraySize(ema50); i++) {
      ema50[i] = iCustom_EMA(Close, ema50Length);  // Replace with custom EMA function if needed
      ema200[i] = iCustom_EMA(Close, ema200Length);  // Replace with custom EMA function if needed
    }
  }

  for (int i = start; i <= end; i++) {
    // Calculate CCI
    cci[i] = iCustom_CCI(Close, cciLength);  // Replace with custom CCI function if needed

    // Calculate trend and signals
    trendBullish = ema50[i] > ema200[i];
    trendBearish = ema50[i] < ema200[i];

    buySignal[i] = trendBullish && iCustom_CrossOver(cci[i], oversold);  // Replace with custom crossover function if needed
    sellSignal[i] = trendBearish && iCustom_CrossUnder(cci[i], overbought);  // Replace with custom crossunder function if needed
  }

  // Plotting (modify colors, styles, and window as needed)
  PlotLine(ema50, SHIFT, colorBlue, 1, title="EMA 50");
  PlotLine(ema200, SHIFT, colorRed, 1, title="EMA 200");

  PlotIcon(buySignal, SHIFT, STYLE_ARROWUP, colorGreen, 10);  // Consider using labels or different icons
  PlotIcon(sellSignal, SHIFT, STYLE_ARROWDOWN, colorRed, 10);   // Consider using labels or different icons

  return(0);
}

反馈

1
开发者 1
等级
(6)
项目
6
0%
仲裁
2
50% / 0%
逾期
1
17%
空闲
2
开发者 2
等级
(6)
项目
7
0%
仲裁
2
0% / 100%
逾期
0
工作中
3
开发者 3
等级
(493)
项目
1022
58%
仲裁
30
27% / 23%
逾期
133
13%
工作中
4
开发者 4
等级
(58)
项目
78
59%
仲裁
13
38% / 54%
逾期
9
12%
空闲
5
开发者 5
等级
(4)
项目
4
0%
仲裁
2
0% / 100%
逾期
1
25%
空闲
6
开发者 6
等级
(1)
项目
1
0%
仲裁
1
0% / 100%
逾期
0
空闲
发布者: 2 代码
7
开发者 7
等级
(159)
项目
215
76%
仲裁
4
50% / 25%
逾期
18
8%
空闲
发布者: 2 文章
相似订单
Strategy Name: SHA & Fast Ema Pullback for BTCUSD Scalping Indicators Used: Smoothed Heiken Ashi Candles MT5.ex5, Fast EMA, Trend Ema, RSI Filters Used: Break Even Filter, Ema Slope Filter, Day-wise Filter, Session/ Time Filter, Loss Filter Lots: Fixed Size, 50% lots booked when Risk to Reward is 1:1 Stop Loss: in Points Trailing SL: starts once Risk to Reward 1:1 is achieved Target: 2000 Pts (max) Buy Setup Ema
Hi, im not looking into developing a new EA. I am looking into purchasing an existing EA that can deliver such results like: mq5 source, 4 year backtest 2021‑2025 report, equity curve, trade list, strategy description, and 1‑month demo access. i need a concrete prove of experience functioning existing EA working perfectly and as contained on my description, then we can't strike a deal. Thank you
Buen día. Busco un desarrollador para agregar sistema de Martingala a un Bot de MT4, sin poseer el código fuente, solo el archivo EX4. Mas detalles en mensaje privado, agradezco la atención prestada
I need an MQL5 indicator that identifies reversals without repainting or placing signals with an offset. The goal is to minimize lag and reduce whipsaw trades. Desired results are similar to the attached image. Requirements: - No repainting - No signal offset - Emphasis on reducing lag - MQL5 compatible - Clear, concise code If you have the expertise to create a reliable, high-performance indicator, let's discuss
want a highly profitable EA; price is not an issue, as long as you can prove it and send me a demo for me to test. You need to prove yourself first. The EA needs a year of stable backtesting
I’m looking for an experienced MQL5 developer to build TWO MT5 custom indicators that detect multi-condition M30 trade setups and send Telegram alerts before trade execution . This project requires strict close-based logic , multi-indicator buffer processing , and non-repainting behavior . HIGH-LEVEL REQUIREMENTS Indicators must evaluate signals from M30 only All conditions are checked only after candle close Logic
hey developers its a fix 30$ job because it takes less than 5 minutes, i only need a source code for a progress bar and gauge bar, i want to impellent in my code. i have a for loop that i want to keep update it with these 2 objects. i mentioned the requirement in each photo please check it. its super easy and fast for someone who already done it, if you didn't do it before don't bother to request . job will be
1. The idea of the trading system is as follows : market entries are performed when MACD's main and signal lines intersect in the current trend direction . 2. Trend is determined based on the Exponential Moving Average with the specified period (InpMATrendPeriod). If the current EMA value is greater than the previous one, the trend is seen as growing (ema_current > ema_previous). Alternatively, if current EMA is
I’m looking for a highly profitable, robust EA for MT5. Targets 3% profit/month with max 1% drawdown Trades 1 signal pair 1+ year stable backtesting "Retard proof" execution Price isn't an issue. Must provide demo for testing + proof of performance Requirements: Demo version for evaluation Source code (.mq5) Serious developers only Only serious developer
Tôi muốn EA siêu lợi nhuận, giá cả không thành vấn đề, chỉ cần bạn có thể chứng minh được, và gửi tôi bản demo để tôi kiểm tra bạn hãy chứng minh bản thân mình trước. EA cần backtest 1 năm hoạt động ổn định

项目信息

预算
30 - 60 USD
截止日期
 1  2 天