Strategy from Tradingview Pine Script to Meta Trader5 EA

MQL5 Experts

Job finished

Execution time 3 days
Feedback from employee
A very patient and committed customer
Feedback from customer
Very good person. Completed on time

Specification

Hi,

I need to convert the  Strategy from Tradingview Pine Script to Meta Trader5 EA, so that it can open and close orders on its own.


the code is below

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/


// Credits to the original Script - Range Filter DonovanWall

// This version is the old version of the Range Filter with less settings to tinker with


//@version=4

strategy(title="RF-100", shorttitle="RF-100", overlay=true)


//-----------------------------------------------------------------------------------------------------------------------------------------------------------------

//Functions

//-----------------------------------------------------------------------------------------------------------------------------------------------------------------


//Range Size Function

rng_size(x, qty, n)=> 

//    AC       = Cond_EMA(abs(x - x[1]), 1, n)

    wper      = (n*2) - 1

    avrng     = ema(abs(x - x[1]), n)

    AC = ema(avrng, wper)*qty

    rng_size = AC


//Range Filter Function

rng_filt(x, rng_, n)=>

    r          = rng_

    var rfilt  = array.new_float(2, x)

    array.set(rfilt, 1, array.get(rfilt, 0))

    if x - r > array.get(rfilt, 1)

        array.set(rfilt, 0, x - r)

    if x + r < array.get(rfilt, 1)

        array.set(rfilt, 0, x + r)

    rng_filt1 = array.get(rfilt, 0)

    

    hi_band   = rng_filt1 + r

    lo_band   = rng_filt1 - r

    rng_filt  = rng_filt1

    [hi_band, lo_band, rng_filt]

 

//-----------------------------------------------------------------------------------------------------------------------------------------------------------------

//Inputs

//-----------------------------------------------------------------------------------------------------------------------------------------------------------------


//Range Source

rng_src = input(defval=close, type=input.source, title="Swing Source")


//Range Period

rng_per = input(defval=20, minval=1, title="Swing Period")


//Range Size Inputs

rng_qty   = input(defval=3.5, minval=0.0000001, title="Swing Multiplier")


//Bar Colors

use_barcolor = input(defval=false, type=input.bool, title="Bar Colors On/Off")


//-----------------------------------------------------------------------------------------------------------------------------------------------------------------

//Definitions

//-----------------------------------------------------------------------------------------------------------------------------------------------------------------


//Range Filter Values

[h_band, l_band, filt] = rng_filt(rng_src, rng_size(rng_src, rng_qty, rng_per), rng_per)


//Direction Conditions

var fdir = 0.0

fdir    := filt > filt[1] ? 1 : filt < filt[1] ? -1 : fdir

upward   = fdir==1 ? 1 : 0

downward = fdir==-1 ? 1 : 0


//Trading Condition

longCond = rng_src > filt and rng_src > rng_src[1] and upward > 0 or rng_src > filt and rng_src < rng_src[1] and upward > 0 

shortCond = rng_src < filt and rng_src < rng_src[1] and downward > 0 or rng_src < filt and rng_src > rng_src[1] and downward > 0


CondIni = 0

CondIni := longCond ? 1 : shortCond ? -1 : CondIni[1]

longCondition = longCond and CondIni[1] == -1

shortCondition = shortCond and CondIni[1] == 1


//Colors

filt_color = upward ? #05ff9b : downward ? #ff0583 : #cccccc

bar_color  = upward and (rng_src > filt) ? (rng_src > rng_src[1] ? #05ff9b : #00b36b) :

             downward and (rng_src < filt) ? (rng_src < rng_src[1] ? #ff0583 : #b8005d) : #cccccc


//-----------------------------------------------------------------------------------------------------------------------------------------------------------------

//Outputs

//-----------------------------------------------------------------------------------------------------------------------------------------------------------------


//Filter Plot

filt_plot = plot(filt, color=filt_color, transp=67, linewidth=3, title="Filter")


//Band Plots

h_band_plot = plot(h_band, color=color.new(#05ff9b, 100), title="High Band")

l_band_plot = plot(l_band, color=color.new(#ff0583, 100), title="Low Band")


//Band Fills

fill(h_band_plot, filt_plot, color=color.new(#00b36b, 92), title="High Band Fill")

fill(l_band_plot, filt_plot, color=color.new(#b8005d, 92), title="Low Band Fill")


//Bar Color

barcolor(use_barcolor ? bar_color : na)


//Plot Buy and Sell Labels

plotshape(longCondition, title = "Buy Signal", text ="BUY", textcolor = color.white, style=shape.labelup, size = size.normal, location=location.belowbar, color = color.new(color.green, 0))

plotshape(shortCondition, title = "Sell Signal", text ="SELL", textcolor = color.white, style=shape.labeldown, size = size.normal, location=location.abovebar, color = color.new(color.red, 0))


//Alerts

alertcondition(longCondition, title="Buy Alert", message = "BUY")

alertcondition(shortCondition, title="Sell Alert", message = "SELL")


// Submit entry orders

if (longCondition)

    strategy.entry(id="EL", long=true)


if (shortCondition)

    strategy.entry(id="ES", long=false)


// Submit exit orders

strategy.close(id="EL", when=shortCondition)

strategy.close(id="ES", when=longCondition)



Responded

1
Developer 1
Rating
(25)
Projects
29
34%
Arbitration
3
67% / 0%
Overdue
1
3%
Free
2
Developer 2
Rating
(132)
Projects
178
39%
Arbitration
4
25% / 50%
Overdue
14
8%
Free
3
Developer 3
Rating
(412)
Projects
543
75%
Arbitration
9
44% / 0%
Overdue
24
4%
Free
Similar orders
Laily Mahmudy 100000+ USD
Thank you very much and of trying supporting and helping for us and my investfolio portfolio id is:"investfolio portfolio masoudahg1 id is":"7Zk0iVh7zuytHkQ9OJSzeY" &"35VmgKWofZxWowQ7O6CL8K" https://leylimahmudi46.atlassian.net is my Atlassian programing that when I working of this programs
Hi there I need someone who will create an ea then test it .. the ea should only place order on the bid price of it breakout in 1 point using invisible buy and invisible sell,, example if bid breakout in 1 point up automatically invisible buy active then invisible stop loss at where the ask price was same in sell If the bid breakout in 1 point down automatically invisible sell active then invisible stop loss where
I’m looking for an experienced MT5/MQL5 freelancer to help install and configure several existing EAs on IC Markets MT5 accounts using a Windows VPS. The work will include setting up the EAs on separate demo accounts and later running several together on one account with different risk settings. I also need help with MT5 backtesting and strategy optimisation, including comparing different risk levels and reviewing
I am looking for someone to build me a modular auto trader in Sierra chart and an Innie builder so that I can replicate my current Algas that I already have built. I've sent examples below can you please let me know how much you would charge me. I'm pretty good at building the signals myself but I do not know how to build the ocos order entry and I'm trying to get quotes and go with the person who seems they can help
i need price action and candle logic understand programmer need for this job... first understand logic and interested please message .... first understand logic and interested please message .... 2 types of hedge entry conditions: 1 is candle based 1- when i start point ea hh candle buy entry, after ll made 2- below the previous candle hedge sell order 3- if market goes again hh, if sell order profit book again
Ea which is based on the price returning to the open or close of a 1-minute candle or zone of candles. panel on chart need too have buttons : trainding on/off close all close profit add buy stop add buy limit add sell stop add sell limit ( all to existing setups) calculating profit/loss for a single open setup and in total in account currency calculating profit/loss for a single open setup and in total in percentage
Hi, I’m looking for an experienced MQL5/MT4 developer to work on a trading BOT project. I currently have an MT4 demo environment with IC Markets for testing, but the complete strategy specifications have not yet been provided. I’d like you to first review the available project/BOT information and let me know what you would need to configure, develop, and properly forward-test it. The testing should cover entries
PEACE BOT 30+ USD
#property version "2.10" #property description "Chizzy Trend Rider - HFM-ready (hedging/netting safe)" #include <Trade/Trade.mqh> CTrade trade; //================ INPUTS =================// input double LotSize = 0.01; // Fixed lot (used if RiskPercent = 0) input double RiskPercent = 0.0; // Risk % of balance per trade (0 = use LotSize) input ulong MagicNumber = 220026; input ENUM_TIMEFRAMES TrendTF =
PRECISION ENTRY PRO EA V1 MT5 EXPERT ADVISOR REQUIREMENTS SPECIFICATION PROJECT NAME: Precision Entry Pro EA V1 PLATFORM: MetaTrader 5 (MT5) LANGUAGE: MQL5 1. PROJECT OBJECTIVE I want a simple, reliable and fully automated MT5 Expert Advisor based on the following trading concept: TREND → MARKET STRUCTURE → FIBONACCI RETRACEMENT → PRICE ACTION CONFIRMATION → ENTRY → STOP LOSS → TAKE PROFIT. The purpose of V1 is to
I need an MT5 Expert Advisor (EA) specifically for NFP news trading. Strategy: - Trade EURUSD during the US Non-Farm Payroll (NFP) release. - Automatically identify the NFP release time. - Place a Buy Stop above the current price and a Sell Stop below the current price shortly before NFP. - Adjustable distance from current price for both pending orders. - When one order is triggered, automatically cancel the opposite

Project information

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