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 статьи
Похожие заказы
Adapt existing MT5 EA to trade directly on crypto exchange (BingX/Bitmart/Bitget/XT.com) instead of forex broker. Required Work: 1. Market Data DLL WebSocket connection for real-time exchange prices Custom symbol in MT5 (e.g., FIGHTUSDT) Live OHLCV data feed to chart 2. Trading Library DLL Functions: SendOrder, GetPositions, GetBalance, ClosePosition, ModifyOrder API authentication (HMAC-SHA256) Support for
2 FX pairs M15 execution with higher timeframe bias Session-based trading (UK time) Fixed % risk per trade Controlled pyramiding (add to winners only) Strict daily loss limits (FTMO-style) Proper order handling (SL always set) Basic logging (CSV) Strategy logic will be provided in detail after NDA / agreement. Must deliver: Source code (.mq5) Compiled file (.ex5) Clean, well-commented code Short support window for
Hi, are you able to create a script/indicator on tradingview that displays a chart screener and it allows me to input multiple tickers on the rows. then the colums with be like "premarket high, premarket low, previous day high, previous day low" . When each or both of the levels break, there will pop up a circle on the chart screener, signaling to me what names are above both PM high and previous day high or maybe
I need an Expert Advisor for MetaTrader 5 (MQL5) to trade XAUUSD based on a simple price movement cycle. Strategy logic: • The EA opens a Buy and a Sell at the same time (one pair per cycle). • Only ONE Sell position must exist at any time. • Every Buy must be opened together with a Sell. Cycle rules: • Step movement = 10 USD in gold price. • CycleEntryPrice = the OPEN PRICE of the last cycle BUY order. • If price
I am looking for a professional MQL5 developer to build a MetaTrader 5 Expert Advisor from scratch. The EA will be called LadyKiller EA. It must trade only the following instruments: • XAUUSD (Gold) • US30 / Dow Jones Index Requirements: • Strong and reliable buy and sell entry logic • Stop Loss and Take Profit system • Risk management (lot size control) • Maximum trades protection • Drawdown protection • Trend
I need an mql5 EA which can be used with 100$ capital very low drawdown The EA should be high frequency trading special for XAUUSD and btcusd or binary options but also the EA should be testable via strategy tester and demo test for five days is needed NO SELECTION CAN BE DONE WITHOUT TESTING when applying make sure you send the backtester results with demo EA testable via strategy tester
Hello, I'm looking to find out the cost of creating a mobile trading robot. I've tried to describe it as thoroughly as possible in the following document. I look forward to your response. I'd like to know the costs, delivery time, and how you plan to implement it before making a decision
I have an existing MT5 Expert Advisor (“E-Core”). I need an experienced MQL5 developer to integrate a structured risk management upgrade and a higher timeframe trend filter into the current code. Two files will be provided: 1️⃣ E-Core Source Code (Current Version) 2️⃣ Update Instructions File (contains exact inputs, functions, and logic to integrate) The developer must: Integrate the update logic
DO NOT RESPOND TO WORK WITH ANY AI. ( I CAN ALSO DO THAT ) NEED REAL DEVELOPING SKILL Hedge Add-On Rules for Existing EA Core Idea SL becomes hypothetical (virtual) for the initial basket and for the hedge basket . When price hits the virtual SL level , EA does not close the losing trades. Instead, EA opens one hedge basket in the opposite direction. Original basket direction Hedge basket direction (opposite) Inputs
Billionflow 30 - 100 USD
Trading specifications: Indicators: Bollinger band ( Period 40, Deviation 1 apply to close) Moving Average (Exponential ) Period 17 applied to high Moving Average ( Exponential ) Period 17 applied to low But Signal enter a buy trade when prices crosses the lower band of the bollinger band up and also crosses the moving average channel of high and low the reverse is true for sell signal

Информация о проекте

Бюджет
30 - 60 USD
Сроки выполнения
от 1 до 2 дн.