Convert Tradingview strategy to MT4 EA

작업 종료됨

실행 시간 17 일

명시

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)



응답함

1
개발자 1
등급
(27)
프로젝트
43
7%
중재
18
6% / 78%
기한 초과
26
60%
무료
2
개발자 2
등급
(224)
프로젝트
283
42%
중재
15
13% / 47%
기한 초과
67
24%
무료
3
개발자 3
등급
(221)
프로젝트
369
66%
중재
10
50% / 0%
기한 초과
46
12%
무료
4
개발자 4
등급
(68)
프로젝트
111
26%
중재
17
6% / 71%
기한 초과
15
14%
무료
비슷한 주문
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
I am requesting the development of an MT5 Expert Advisor (EA) for trading the German Index (DAX) based on specific rules. The EA should operate on a 15-minute timeframe with normal candles and place trades based on conditions related to the market opening time in Germany. Trading Rules: 1. Timeframe: 15-minute chart 2. Market: German Index (DAX) 3. Candle Criteria: - The EA should focus on the 2nd 15-minute candle

프로젝트 정보

예산
30 - 50 USD
VAT (22%): 6.6 - 11 USD
총: 36.6 - 61 USD
개발자에게
27 - 45 USD
기한
 10 일