Strategy from Tradingview Pine Script to Meta Trader5 EA

MQL5 Uzman Danışmanlar

İş tamamlandı

Tamamlanma süresi: 3 gün
Geliştirici tarafından geri bildirim
A very patient and committed customer
Müşteri tarafından geri bildirim
Very good person. Completed on time

İş Gereklilikleri

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)



Yanıtlandı

1
Geliştirici 1
Derecelendirme
(25)
Projeler
29
34%
Arabuluculuk
3
67% / 0%
Süresi dolmuş
1
3%
Serbest
2
Geliştirici 2
Derecelendirme
(128)
Projeler
162
36%
Arabuluculuk
4
25% / 50%
Süresi dolmuş
13
8%
Serbest
3
Geliştirici 3
Derecelendirme
(409)
Projeler
537
75%
Arabuluculuk
9
44% / 0%
Süresi dolmuş
24
4%
Serbest
Benzer siparişler
I need help fixing my EA for MT5. It’s a very simple EA, and I currently cannot solve an issue where webrequest communicates with OpenAi API without error. Please only apply if you can help solve this issue
Hello The EA will work on particular zone choose by the user and can mark it on any TF and with some rules can open trades and mange the trade by some unique rules. the EA need to check the difference by RSI as well and with some extra rules . developer should have good attitude and good communication (englsih) with high performence and knowledge with coding EA. # MANUAL ZONE MARKING # THREE TYPES OF ENTRIES (
p.p1 {margin: 0.0px 0.0px 12.0px 0.0px; font: 14.0px 'Trebuchet MS'; color: #313131} p.p1 {margin: 0.0px 0.0px 12.0px 0.0px; font: 14.0px 'Trebuchet MS'; color: #313131} li.li1 {margin: 0.0px 0.0px 12.0px 0.0px; font: 14.0px 'Trebuchet MS'; color: #313131} ol.ol1 {list-style-type: decimal} I have an EA that open trades when my entry conditions are met. It usually executes one trade per day. I'd like to add an option
у нас есть стратегия, нам нужно написать mql5-код ​​для тестера стратегий МТ5,Цена договорная. Мой контакт @abbosaliyev из Telegram Программист должен знать РУССКИЙ ИЛИ УЗБЕКСКИЙ язык. Задание: разработать тестер, который использует шаблон условий на открытие и проверит весь исторический график на всех доступных таймфреймах. Остальная информация будет предоставлена ​​после согласования цены
a coder is required to add an indicator to existing ea The new indicator will work as 1. option to combine with exiting indicator to open trade 2. it will be used as alternative BE point 3. It can also be used to close order or combine with other to close trade The second Job is telegram bot to get alert fr news trade and others Details when you apply i will test the ea work on live market and all bug is fixed before
Hello, I want to make an EA based on SMC and a developer that is familiar with the concept and full understanding of this. Must have done similar jobs before and be able show it. I only want to work with developer that has good track record and is precise. Further information will be handed when contact is made. Developers that has zero rating will not be considered. Listed price is a base point. The project can also
EA DEJA FABRIQUE ? MODIFIER QUELQUE LIGNE POUR LE RENDRE RENTABLE /////////////////////++++++++++++++++++++++++++++++++++ EA AVEC UN SYTEME SIMPLE ; SEULEMENT A MODIFIER %%%%%%%%%%%%%%%%%% SI PERSONNE SACHANT CODER CORRECTEMENT , CE TRAVAIL EST POUR TOI
Trade methodology based on Red and Green lines entering Overbought / Oversold zone. Using confluence of Higher time frame, Moving Average a trade can enter when there is a strong slope angle. Market Base Line is used to determine overall market sentiment. This is designed to be an established trend scalping strategy on lower time frames. To be used initially on demo then real account when settings have been fine
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: function (A) Add Transform combine the 4 Expert Advisors into just 1 Expert Advisor, maintaining the individuality of each one Leave in extern (false) or (true)
Description: I am seeking an experienced MQL5 developer to create a custom Expert Advisor (EA) for MetaTrader 5 based on a specific trend-following strategy. The strategy includes precise risk management, advanced trade management features, and additional risk management tools. The EA should be adaptable to any timeframe on which it is attached. Below are the detailed requirements and parameters for the EA: Strategy

Proje bilgisi

Bütçe
30 - 90 USD
Geliştirici için
27 - 81 USD
Son teslim tarihi
from 1 to 2 gün