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 기고글
비슷한 주문
I need an experienced MQL5 developer to modify my existing MT5 EA by replacing the current entry logic with a new breakout strategy and implementing strict prop-firm safety protections. The EA must behave exactly as specified below. If the final EA does not match the logic described, I will request revisions until it does. SYMBOL AND TIMEFRAME Symbol: USDJPY Timeframe: M15 only TRADING SESSION Trades may only open
I am looking to purchase an existing and profitable Expert Advisor (EA) designed for Gold (XAUUSD) scalping. This is not a request to develop a new EA . I am only interested in a ready system that is already trading profitably on a live account . Requirements • Designed for Gold / XAUUSD • Compatible with MetaTrader 5 (MT5) • Scalping strategy (preferably M1 or M5) • Verified live trading performance (preferably 6
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

프로젝트 정보

예산
30 - 60 USD
기한
에서 1  2 일