Convert Tradingview's (Pinescript) Engulfing Indicators to MQL5 for MetaTrader5 Use

Lavoro terminato

Tempo di esecuzione 1 giorno
Feedback del cliente
Excellent work! Perfectly done and quick.
Feedback del dipendente
Kind and correct customer. great!!!

Specifiche

For bearish:

//@version=4

study("Engulfing - Bearish", shorttitle = "Engulfing - Bear", overlay=true)


C_DownTrend = true

C_UpTrend = true

var trendRule1 = "SMA50"

var trendRule2 = "SMA50, SMA200"

var trendRule = input(trendRule1, "Detect Trend Based On", options=[trendRule1, trendRule2, "No detection"])


if trendRule == trendRule1

priceAvg = sma(close, 50)

C_DownTrend := close < priceAvg

C_UpTrend := close > priceAvg


if trendRule == trendRule2

sma200 = sma(close, 200)

sma50 = sma(close, 50)

C_DownTrend := close < sma50 and sma50 < sma200

C_UpTrend := close > sma50 and sma50 > sma200

C_Len = 14 // ema depth for bodyAvg

C_ShadowPercent = 5.0 // size of shadows

C_ShadowEqualsPercent = 100.0

C_DojiBodyPercent = 5.0

C_Factor = 2.0 // shows the number of times the shadow dominates the candlestick body


C_BodyHi = max(close, open)

C_BodyLo = min(close, open)

C_Body = C_BodyHi - C_BodyLo

C_BodyAvg = ema(C_Body, C_Len)

C_SmallBody = C_Body < C_BodyAvg

C_LongBody = C_Body > C_BodyAvg

C_UpShadow = high - C_BodyHi

C_DnShadow = C_BodyLo - low

C_HasUpShadow = C_UpShadow > C_ShadowPercent / 100 * C_Body

C_HasDnShadow = C_DnShadow > C_ShadowPercent / 100 * C_Body

C_WhiteBody = open < close

C_BlackBody = open > close

C_Range = high-low

C_IsInsideBar = C_BodyHi[1] > C_BodyHi and C_BodyLo[1] < C_BodyLo

C_BodyMiddle = C_Body / 2 + C_BodyLo

C_ShadowEquals = C_UpShadow == C_DnShadow or (abs(C_UpShadow - C_DnShadow) / C_DnShadow * 100) < C_ShadowEqualsPercent and (abs(C_DnShadow - C_UpShadow) / C_UpShadow * 100) < C_ShadowEqualsPercent

C_IsDojiBody = C_Range > 0 and C_Body <= C_Range * C_DojiBodyPercent / 100

C_Doji = C_IsDojiBody and C_ShadowEquals


patternLabelPosLow = low - (atr(30) * 0.6)

patternLabelPosHigh = high + (atr(30) * 0.6)


C_EngulfingBearishNumberOfCandles = 2

C_EngulfingBearish = C_UpTrend and C_BlackBody and C_LongBody and C_WhiteBody[1] and C_SmallBody[1] and close <= open[1] and open >= close[1] and ( close < open[1] or open > close[1] )

alertcondition(C_EngulfingBearish, title = "Engulfing", message = "New Engulfing - Bearish pattern detected.")

if C_EngulfingBearish

    var ttBearishEngulfing = "Engulfing\nAt the end of a given uptrend, a reversal pattern will most likely appear. During the first day, this candlestick pattern uses a small body. It is then followed by a day where the candle body fully overtakes the body from the day before it and closes in the trend’s opposite direction. Although similar to the outside reversal chart pattern, it is not essential for this pattern to fully overtake the range (high to low), rather only the open and the close."

    label.new(bar_index, patternLabelPosHigh, text="BE", style=label.style_label_down, color = color.red, textcolor=color.white, tooltip = ttBearishEngulfing)

bgcolor(highest(C_EngulfingBearish?1:0, C_EngulfingBearishNumberOfCandles)!=0 ? color.red : na, offset=-(C_EngulfingBearishNumberOfCandles-1))



For bullish:

//@version=4

study("Engulfing - Bullish", shorttitle = "Engulfing - Bull", overlay=true)


C_DownTrend = true

C_UpTrend = true

var trendRule1 = "SMA50"

var trendRule2 = "SMA50, SMA200"

var trendRule = input(trendRule1, "Detect Trend Based On", options=[trendRule1, trendRule2, "No detection"])


if trendRule == trendRule1

priceAvg = sma(close, 50)

C_DownTrend := close < priceAvg

C_UpTrend := close > priceAvg


if trendRule == trendRule2

sma200 = sma(close, 200)

sma50 = sma(close, 50)

C_DownTrend := close < sma50 and sma50 < sma200

C_UpTrend := close > sma50 and sma50 > sma200

C_Len = 14 // ema depth for bodyAvg

C_ShadowPercent = 5.0 // size of shadows

C_ShadowEqualsPercent = 100.0

C_DojiBodyPercent = 5.0

C_Factor = 2.0 // shows the number of times the shadow dominates the candlestick body


C_BodyHi = max(close, open)

C_BodyLo = min(close, open)

C_Body = C_BodyHi - C_BodyLo

C_BodyAvg = ema(C_Body, C_Len)

C_SmallBody = C_Body < C_BodyAvg

C_LongBody = C_Body > C_BodyAvg

C_UpShadow = high - C_BodyHi

C_DnShadow = C_BodyLo - low

C_HasUpShadow = C_UpShadow > C_ShadowPercent / 100 * C_Body

C_HasDnShadow = C_DnShadow > C_ShadowPercent / 100 * C_Body

C_WhiteBody = open < close

C_BlackBody = open > close

C_Range = high-low

C_IsInsideBar = C_BodyHi[1] > C_BodyHi and C_BodyLo[1] < C_BodyLo

C_BodyMiddle = C_Body / 2 + C_BodyLo

C_ShadowEquals = C_UpShadow == C_DnShadow or (abs(C_UpShadow - C_DnShadow) / C_DnShadow * 100) < C_ShadowEqualsPercent and (abs(C_DnShadow - C_UpShadow) / C_UpShadow * 100) < C_ShadowEqualsPercent

C_IsDojiBody = C_Range > 0 and C_Body <= C_Range * C_DojiBodyPercent / 100

C_Doji = C_IsDojiBody and C_ShadowEquals


patternLabelPosLow = low - (atr(30) * 0.6)

patternLabelPosHigh = high + (atr(30) * 0.6)


C_EngulfingBullishNumberOfCandles = 2

C_EngulfingBullish = C_DownTrend and C_WhiteBody and C_LongBody and C_BlackBody[1] and C_SmallBody[1] and close >= open[1] and open <= close[1] and ( close > open[1] or open < close[1] )

alertcondition(C_EngulfingBullish, title = "Engulfing", message = "New Engulfing - Bullish pattern detected.")

if C_EngulfingBullish

    var ttBullishEngulfing = "Engulfing\nAt the end of a given downward trend, there will most likely be a reversal pattern. To distinguish the first day, this candlestick pattern uses a small body, followed by a day where the candle body fully overtakes the body from the day before, and closes in the trend’s opposite direction. Although similar to the outside reversal chart pattern, it is not essential for this pattern to completely overtake the range (high to low), rather only the open and the close."

    label.new(bar_index, patternLabelPosLow, text="BE", style=label.style_label_up, color = color.blue, textcolor=color.white, tooltip = ttBullishEngulfing)

bgcolor(highest(C_EngulfingBullish?1:0, C_EngulfingBullishNumberOfCandles)!=0 ? color.blue : na, offset=-(C_EngulfingBullishNumberOfCandles-1))


*The bullish and bearish indicators shall be combined into one indicator, any object e.g. arrow can be used to indicate the signal, plus integration of alerts. Trend rules not necessary and may be removed for simplicity. Conditions in bold text are the only ones necessary to create arrow object and alert. Thank you.


Con risposta

1
Sviluppatore 1
Valutazioni
(173)
Progetti
197
12%
Arbitraggio
38
37% / 34%
In ritardo
5
3%
Caricato
Pubblicati: 2 codici
2
Sviluppatore 2
Valutazioni
(132)
Progetti
178
39%
Arbitraggio
4
25% / 50%
In ritardo
14
8%
Gratuito
3
Sviluppatore 3
Valutazioni
(412)
Progetti
543
75%
Arbitraggio
9
44% / 0%
In ritardo
24
4%
Gratuito
Ordini simili
//+------------------------------------------------------------------+ //| Micro Scalper HFT-Style EA for MT5 | //| Author: ChatGPT | //+------------------------------------------------------------------+ #property strict input double Lots = 0.1; input double TakeProfit = 2; // in points input double StopLoss = 5; // in points input double MaxSpread = 10; //
The trading robot should operate on the Deriv MT5 server and utilize a 1-minute chart timeframe . It will trade on the Boom 1000 and Crash 1000 instruments. Indicators Used: Linear Weighted Moving Average (LWMA): Period: 10 Stochastic Oscillator: Levels: Marked at 90 and 10. This indicator is only for marking these levels and its data is not used for decision-making . Awesome Oscillator (AO): This indicator is
I need to combine and modify 2 EA's and add some conditions to them. I also need optimize them because they have some error and bugs. The developer needs to know how to use MACD , supply and demand zones , lock and martingale
Betfair Bot Needed 50 - 500 USD
PAKISTAN'S BIGGEST EXCHANGE PROVIDER 🎲♣️♥️♠️⚽ AT AFFORDABLE RATES 💰 📲 WE DEAL IN DL / MDL / SMDL / SUB ADMIN / ADMIN 📈🎲🎰 || How To Create New Account All Exchange in Pakistan Admin I'D = Supermaster I'D = Master I'D = Betting I'D All Available || 💯 Secure Trust Me 🤝 Timing schedule: Morning 10:00 AM to Night 2:00 AM ⏰. You can deposit or withdraw anytime! 🕒 We accept Easypaisa, JazzCash, and Bank
"I don’t just code bots – I engineer profit engines. Contact: quant.alpha@proton.me ✨ Why Traders Will Love It: ⚡ AI-Powered Decisions – Self-learning PPO model adapts to changing gold market conditions . ⚡ Military-Grade Risk Control – Auto position sizing, volatility filters, and instant circuit breakers . ⚡ Seamless MT5 Execution – Handles slippage, partial fills, and spread risks like a pro. ⚡ Proven Backtesting
I am looking for an experienced developer who can create a MetaTrader 5 (MT5) Expert Advisor (EA) based on a single TradingView indicator and a set of Buy/Sell conditions that I will personally share with you. Requirements: Convert the TradingView indicator (Pine Script) logic to a working MT5 EA Implement specific Buy and Sell conditions (I will provide exact rules) EA must include basic risk management options (Lot
I need a clean, simple EA for MT5 that consistently produces ~5% monthly return with moderate trade frequency (6–12 trades/week). - Must auto-compound or use risk-based lot sizing - Must include .mq5 source file , not just .ex5 - Must show backtest proof on 2 different pairs , preferably M30/H1 - Must be original or legally yours to transfer, this will be used in a broader structured trading setup I’m building I
Trading is journey not a destination every win and loss is stepping stone to greatness stay patient stay focused and keep learning our back through is just around the corner we won’t give up on dreams
Dbrain EA bot 100+ USD
import MetaTrader5 as mt5 import pandas as pd import numpy as np import time from datetime import datetime # --- CONFIGURATION --- ACCOUNT_ID = 12345678 # Replace with your MT5 account ID PASSWORD = "your_password" # Replace with your MT5 password SERVER = "your_broker_server" # e.g., "Exness-MT5server" SYMBOL = "EURUSD" TIMEFRAME = mt5.TIMEFRAME_H1 # 1-hour timeframe (adjust as needed) INITIAL_CAPITAL = 10000.00 #
To develop EA algo on GBPUSD on MT5 Client will provide the necessary indicator which will plot Daily pivots on the chart. PFA screenshot attached for details of job work

Informazioni sul progetto

Budget
30 - 40 USD
Per lo sviluppatore
27 - 36 USD
Scadenze
da 2 a 4 giorno(i)