Converting a TradingView Indicator (Pine Script) to MT5 (MQL5)

指定

Objective:

Dear developer, the goal is to convert a Non-repaint TradingView indicator written in Pine Script to MQL5, so that it can be functional on the MetaTrader 5 (MT5) platform. This indicator uses the Relative Strength Index (RSI) in combination with various types of moving averages to generate buy and sell signals, as well as support and resistance lines. (See screenshot below). The indicator's Pine Script code is also attached.

This indicator dynamically plots support and resistance levels based on RSI values, providing visual cues for potential bullish and bearish signals. The inclusion of a trailing stop mechanism allows traders to adapt to market volatility, ensuring optimal entry and exit points.


1. General Description:


This indicator works as a trailing stop based on RSI bounds and moving averages. It generates bullish and bearish signals, displays support and resistance zones, and offers customization features, such as displaying a midline on the market trend.


The developer should recreate this indicator in MQL5, maintaining the same calculation and display logic as in the TradingView code.


2. Main Features:


Moving Average: Selectable types of moving averages (SMA, EMA, WMA).

RSI (Relative Strength Index): RSI with customizable upper and lower bounds.

Buy/Sell Signal: Generate a buy signal when the price crosses above the upper bound and a sell signal when the price crosses below the lower bound.

Graphical Display:

• Nomber of Candles to analyse : 1000 by default

Plotting of support and resistance zones based on RSI bounds and market volatility.

Option to display a midline (based on the moving average).

Alerts: Configure alerts when buy/sell signals are generated.


3. Technical Specifications:


3.1 Input Variables:


The developer should include the following input parameters in the MQL5 indicator:


Moving Average Type:

Enumeration of types: SMA, EMA, WMA.

Moving average period (input).


RSI:

RSI period (input).

Customizable RSI upper and lower bounds (input).


Display Options:

Option to show or hide the midline (boolean input).

Option to color candles based on trend (boolean input).


• Nomber of Candles to analyse :

 The user can choose the number of candles to be analyzed by the indicator (default 1000).


 Inputs must include a notification management section, as shown in the screenshot below.



For your information, here are the indicator inputs on Trading View.






3.2 Calculations and Algorithms:


The calculations and algorithms must replicate those in the Pine Script, including:


Moving average calculation based on the user-selected type.

RSI bounds calculation with dynamic adjustment based on volatility (use of ATR to adjust bounds).

Buy/sell signal generation when the price crosses the RSI bounds.

(See The indicator's Pine Script code attached)

3.3 Graphical Display:


The indicator should display:


Support and Resistance: Plotting of support (lower bound) and resistance (upper bound) lines.

Midline: Optional, plotted based on the moving average.

Buy/Sell signals: Displayed as arrows (up for buy, down for sell).

PS : No need Candle auto Coloring: Pine Script code is designed to color Candles based on the detected market trend (bullish or bearish). No need this fonction in mql5


3.4 Alerts:


The indicator should generate alerts when:


A buy signal is detected (price crossing above the upper bound).

A sell signal is detected (price crossing below the lower bound).


Alerts should be triggered at the close of the candle.


4. Performance Requirements:


The indicator must handle at least 1000 candles without slowing down the platform.

The calculations for technical indicators (RSI, moving averages, ATR) should be optimized for fast performance.


5. Deliverables:

The developer should deliver:


1. The complete MQL5 source code of the indicator.

2. Documentation summarizing (for example a video) :

The indicator’s features.

How to adjust the input parameters.

The logic behind the buy/sell signals.


6. Constraints:


The MQL5 code must be clear, well-commented, and easy to modify for future adjustments.

The indicator must be compatible with MetaTrader 5 and function on any timeframe (M1, M5, H1, H4 Daily, etc.).


7. Required Skills:


Advanced experience in MQL5 development for the MetaTrader platform.

Deep knowledge of technical indicators (RSI, moving averages, ATR).

Ability to convert a TradingView (Pine Script) code to MQL5 while maintaining the same logic.


応答済み

1
開発者 1
評価
(36)
プロジェクト
59
34%
仲裁
4
25% / 50%
期限切れ
6
10%
取り込み中
2
開発者 2
評価
(1)
プロジェクト
1
0%
仲裁
0
期限切れ
0
仕事中

プロジェクト情報

予算
30+ USD
締め切り
最高 3 日

依頼者

(1)
出された注文3
裁定取引数0