Strategy from Tradingview Pine Script to Meta Trader5 EA

MQL5 Esperti

Lavoro terminato

Tempo di esecuzione 3 giorni
Feedback del dipendente
A very patient and committed customer
Feedback del cliente
Very good person. Completed on time

Specifiche

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)



Con risposta

1
Sviluppatore 1
Valutazioni
(25)
Progetti
29
34%
Arbitraggio
3
67% / 0%
In ritardo
1
3%
Gratuito
2
Sviluppatore 2
Valutazioni
(126)
Progetti
160
36%
Arbitraggio
4
25% / 50%
In ritardo
13
8%
Gratuito
3
Sviluppatore 3
Valutazioni
(408)
Progetti
536
75%
Arbitraggio
9
44% / 0%
In ritardo
24
4%
Gratuito
Ordini simili
Estou a procura de um programador que faça um robo que automatize as análises feitas por ele nas ondas de Elliot e que faça entradas precisas com proteções das mesmas e com proteções também ajustáveis para não entrar em noticias de 2 ou 3 estrelas, e que seja para o mercado B3 Mini Indice ou Mini Dolar
Sosso 30+ USD
I would like to order an automated robot to the job for me as I have no clue on whatsoever the trading is about. The bot should be able to do it's job, everything for me and it providing the best services for one to use
are you aware of the Monday Range Strategy? https://www.youtube.com/watch?v=7B_yBBFx6z8 5pm EST time sunday - monday 5pm est and it has to be on the H1 chart , minimum 1:2 Risk to reward and break even function after 1:1
Strategy: 1. Identify strong supply and demand levels. Draw them in the chart in green and red. In Tradingview: Market Structure Break & Order Block by EmreKb von EmreKb --> Strong demand and supply area refer to picture below (Buy and Sell Zones). There must be a strong demand / supply zone on a higher time frame in order for the set up to be valid. The time frame can be selected in the settings. E.g. "Higher Time
Hi there, I currently have a scalping strategy based of 3 thrid party indicators that I would like automated. This would help me with running the strategy through the strategy tester. Two of the indicators dont have iCustom functionality to pull the data in, so another way would have to be devised. The strategy incorpates trading activity, sentiment in the for of the ratio of traders in profit, and a third techincal
Hi, I have a Live Data feature for my trading accounts that lets me check details like total open positions, number of lots, profits, etc. I need someone to add the number of pending orders to this live data. This is important for me to ensure that all accounts have the same number of pending orders, since I use a copy trading system. Also, there is a website where I check all the data. In this case, you would need
OK I just need 1 MOD Who can do it free There is a (Reciever EA) that receives signals from a (Sender EA) I need to ADD one mod It may even look like the option/signal is there= Ignore it Coding was wrong on that part This is simple The option in the Reicver EA will Be called "Open Copy Live" with the option to Set to True or False When set to true the Reicver EA will Watch
Hi there, I need a very highly skilled mt4 programmer to code and design an EA from scratch. The logic of the EA will be discussed with you in comments section, only reach out if you can code perfectly for mt4 using MQL4 coding solutions language, EA must be able to run well without any problems and work according to the logic thanks
I came across an indicator that's perfectly good in catching spikes in boom amd crash but i would want it to be modified and to improve accuracy As a professional you will have to go through the indicator and explain to me the strategy with which the indicator was buid and tell me the possibility of improving it better
### Summary of EA Requirements 1. **Time Period**: - The EA should operate on the H4 timeframe. 2. **RelicusRoad MACD v2 Indicator**: - **Parameters**: - Fast EMA Period: 12 - Fast EMA Type: Close price - Slow EMA Period: 24 - Slow EMA Type: Close price - Signal SMA Period: 9 - The EA should use this indicator to determine the crossover condition between the MACD line and the signal line. 3

Informazioni sul progetto

Budget
30 - 90 USD
Per lo sviluppatore
27 - 81 USD
Scadenze
da 1 a 2 giorno(i)