Convert Tradingview strategy to MT4 EA

Trabajo finalizado

Plazo de ejecución 17 días

Tarea técnica

Hello,


I would like to convert an automatic strategy from Tradingview to EA MT4.

The strategy to convert is:

Supertrend 2 strategy by breizh29 using * rajandran.r * Supertrend Indicator.


The EA MT4 must give the exact same results compared to TradingView Strategy.


I saw someone else made the same request.

So if you have already developed the conversion, this is excellent.

This is the code:


strategy("Super Trend 2", overlay=true, default_qty_value=100)

res = input(title="Main SuperTrend Time Frame", type=resolution, defval="120")

Factor=input(1, minval=1,maxval = 100)

Pd=input(1, minval=1,maxval = 100)



tp = input(500,title="Take Profit")

sl = input(400,title="Stop Loss")





Up=hl2-(Factor*atr(Pd))

Dn=hl2+(Factor*atr(Pd))

MUp=security(tickerid,res,hl2-(Factor*atr(Pd)))

MDn=security(tickerid,res,hl2+(Factor*atr(Pd)))



Mclose=security(tickerid,res,close)



TrendUp=close[1]>TrendUp[1]? max(Up,TrendUp[1]) : Up

TrendDown=close[1]<TrendDown[1]? min(Dn,TrendDown[1]) : Dn



MTrendUp=Mclose[1]>MTrendUp[1]? max(MUp,MTrendUp[1]) : MUp

MTrendDown=Mclose[1]<MTrendDown[1]? min(MDn,MTrendDown[1]) : MDn



Trend = close > TrendDown[1] ? 1: close< TrendUp[1]? -1: nz(Trend[1],1)

Tsl = Trend==1? TrendUp: TrendDown



MTrend = Mclose > MTrendDown[1] ? 1: Mclose< MTrendUp[1]? -1: nz(MTrend[1],1)

MTsl = MTrend==1? MTrendUp: MTrendDown



linecolor = Trend == 1 ? green : red

plot(Tsl, color = linecolor , style = line , linewidth = 2,title = "SuperTrend")



Mlinecolor = MTrend == 1 ? blue : orange

plot(MTsl, color = Mlinecolor , style = line , linewidth = 2,title = "Main SuperTrend")



plotshape(cross(close,Tsl) and close>Tsl , "Up Arrow", shape.triangleup,location.belowbar,green,0,0)

plotshape(cross(Tsl,close) and close<Tsl , "Down Arrow", shape.triangledown , location.abovebar, red,0,0)



up = Trend == 1 and Trend[1] == -1 and MTrend == 1 

down = Trend == -1 and Trend[1] == 1 and MTrend == -1 

plotarrow(up ? Trend : na, title="Up Entry Arrow", colorup=lime, maxheight=60, minheight=50, transp=0)

plotarrow(down ? Trend : na, title="Down Entry Arrow", colordown=red, maxheight=60, minheight=50, transp=0)





golong = Trend == 1 and Trend[1] == -1 and MTrend == 1 

goshort = Trend == -1 and Trend[1] == 1 and MTrend == -1 



strategy.entry("Buy", strategy.long,when=golong)

strategy.exit("Close Buy","Buy",profit=tp,loss=sl)

   

   

strategy.entry("Sell", strategy.short,when=goshort)

strategy.exit("Close Sell","Sell",profit=tp,loss=sl)



Han respondido

1
Desarrollador 1
Evaluación
(27)
Proyectos
43
7%
Arbitraje
18
6% / 78%
Caducado
26
60%
Libre
2
Desarrollador 2
Evaluación
(224)
Proyectos
283
42%
Arbitraje
15
13% / 47%
Caducado
67
24%
Libre
3
Desarrollador 3
Evaluación
(221)
Proyectos
369
66%
Arbitraje
10
50% / 0%
Caducado
46
12%
Libre
4
Desarrollador 4
Evaluación
(68)
Proyectos
111
26%
Arbitraje
17
6% / 71%
Caducado
15
14%
Libre
Solicitudes similares
I would like to code this strategy in Sierra charts first to backtest and then to automate. How long does Sierra take to backtest 1 year of data on 1 minute bars? https://docs.google.com/document/d/1VmiDJjgV7BIuxFYN8kil7h1SbE6J6lMLyAlhd4xv-x4/edit
Hello i need someone who can help me optimise my trading strategy using two or three indicators from tradingview. Which are swing arm atr trend indicator 2 atr for stop loss and tp levels 3 ut bot alerts for extra confirmation to enter a trade. I would like to take trades with a high reward level
Hey greetings.i will like to convert my tradingview pinescript script to Metatrader 5 expert Advisor EA . Kindly apply for this job if you can convert my tradingview script for mt5 EA.Thanks
Hello, I need experience and professional programmer that have minimum 500 projects finish for my expert advisor (mq4). I need this project finish quickly, and the function can running well like I need. My EA basicly using Consecutives Signals Candle, MA20, and ATR with some others parameters. If you programmer like I need, so can apply, IF NOT DONT APPLY! I will send the document completely when you apply. You can
ETF arbitrage robot 30 - 50 USD
👋 Hey Great Developer, can you help me with my project did you trading bot for ETF that ES and NQ futures If you have recent one so i can check it I will be looking for great developer to bid for this project
Hello. Id like to change the trailing stop loss mechanism and ATR take profit to do the following: Assuming I've lost 3 trades and my lot size is automatically adjusted to 0.03, with a fixed SL of 10 pips id be negative 30 points. But assuming the ATR closes the next trade with a profit of 5 pips meaning a total profit of -15 points. Id like for the system to be adjusted to maintain the current lot size until a
I'm in need of an experienced Meta 4 expert who can solve two specific problems and improve the current Martingale and Pyramid strategies within my EA. - Bug Fix: The EA is currently facing an issue where orders are not being executed correctly. This is causing a signal matching error and leading to potential losses. The primary task is to resolve this bug and ensure the EA executes trades accurately and as intended
Hi there! I am looking to automate one of my trading strategy, fully info will be provided via pdf If you are an experienced programmer please feel free to apply for the job. Just to make sure that i will not assign anyone before i see and test the file as i been scammed many times by now " assigning the job and loosing money because i didn't receive the files... " Also to mention that i am looking for a low budget
Hi everyone, I’m excited to connect with someone who can help me test and optimize a strategy and then code an EA bot. The strategy is based on engulfing theory. The pattern is identified on a 4-hour timeframe, and the buy or sell signal is confirmed on a 5-minute timeframe If you think you can assist, I’d love to hear from you! Thank you so much! Best regards, Kathrine
Hello, We need experience and professional programmer that have minimum 300 projects finish for my expert advisor (mq4). We need this project finish quickly, and the function can running well like We need. Our EA basicly using Consecutives Signals Candle, MA20, and ATR with some others parameters. If you programmer like We need, so can apply, IF NOT DONT APPLY! We will send the document completely when you apply

Información sobre el proyecto

Presupuesto
30 - 50 USD
IVA (22%): 6.6 - 11 USD
Total: 36.6 - 61 USD
Para el ejecutor
27 - 45 USD
Plazo límite de ejecución
a 10 día(s)