I want to convert my indicator from Trading view to MQL5

Job finished

Execution time 1 day
Feedback from customer
Very good
Feedback from employee
Detailed and clear description, convenient for work

Specification

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

Responded

1
Developer 1
Rating
(6)
Projects
6
0%
Arbitration
2
50% / 0%
Overdue
1
17%
Free
2
Developer 2
Rating
(6)
Projects
7
0%
Arbitration
2
0% / 100%
Overdue
0
Working
3
Developer 3
Rating
(493)
Projects
1022
58%
Arbitration
30
27% / 23%
Overdue
133
13%
Working
4
Developer 4
Rating
(58)
Projects
78
59%
Arbitration
13
38% / 54%
Overdue
9
12%
Free
5
Developer 5
Rating
(4)
Projects
4
0%
Arbitration
2
0% / 100%
Overdue
1
25%
Free
6
Developer 6
Rating
(1)
Projects
1
0%
Arbitration
1
0% / 100%
Overdue
0
Free
Published: 2 codes
7
Developer 7
Rating
(159)
Projects
215
76%
Arbitration
4
50% / 25%
Overdue
18
8%
Free
Published: 2 articles
Similar orders
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
Im looking for an EA with Code. An EA that can capture big impulsive move on any instrument. Open trades only with multiple confirmation and a very high probability setup intraday or swing trading That can do top down/multi time frame analysis like D1 H4 H1 and then implement the trade on shorter time frame to catch the moves from the start. As i want to catch only the impulsive moves so there must be a Volume
Hi I’m looking for an experienced developer to build an ea,the strategy is based on trading XAU and possibly BTC that can execute trades on 1 and 5 minute timeframes using a combination of EMA’s, stochastic Oscillators and a 4-6 max order grid with loss cap if the opening position goes into drawdown. I would like someone experienced who could also add value and implement there ideas as I have no programming

Project information

Budget
30 - 60 USD
Deadline
from 1 to 2 day(s)