Convert PineScript Strategy to Metatrader 4 Expert Advisor

MQL4 专家 转化中 策略优化

工作已完成

执行时间246 天

指定

Hello,


I need to convert the Super Trend 2 Strategy from Tradingview Pine Script to MetaTrader 4 EA, so that it can open and close orders on its own.


Supertrend is a strategy by breizh29 using *rajandran.r* Supertrend Indicator, and here is the original 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
等级
(298)
项目
427
26%
仲裁
18
61% / 33%
逾期
26
6%
空闲
2
开发者 2
等级
(54)
项目
53
17%
仲裁
7
0% / 100%
逾期
5
9%
空闲
3
开发者 3
等级
(230)
项目
431
27%
仲裁
123
21% / 54%
逾期
96
22%
已载入
4
开发者 4
等级
(221)
项目
369
66%
仲裁
10
50% / 0%
逾期
46
12%
空闲
5
开发者 5
等级
(145)
项目
161
40%
仲裁
5
0% / 80%
逾期
8
5%
空闲
6
开发者 6
等级
(336)
项目
620
38%
仲裁
39
23% / 64%
逾期
93
15%
空闲
7
开发者 7
等级
(555)
项目
922
48%
仲裁
300
59% / 25%
逾期
123
13%
空闲
相似订单
I am seeking a freelancer who can assist with converting an expert advisor (EA) from the extension .ex4 to .ex5 while ensuring compatibility with MQL 5. It's important to note that I only possess the .ex4 file and not the source code. The EA needs to be designed to accommodate both stop and limit orders and should aim to generate 1-2 trades per week for each currency pair. It should be in line with the guidelines
Ciao, le caratteristiche del mio sistema di trading, sono le seguenti. In allegato il segnale di ingresso a mercato che l'expert dovrà fare su un time frame D1 o W1. Gli asset sono 28 e il segnale sarà BUY o SELL nella direzione del trend. Lavoro con leva 1/500 e ogni volta che l'expert entrerà a mercato, ho la necessità di generare una griglia a MARTINGALA di supporto alla direzione del trend. La gestione delle
DJANGO 30+ USD
Post your job order containing requirement specifications, anticipated deadline and budget. The initial responds from potential developers willing to undertake the job will most probably start arriving soon enough. You will receive lots of proposals, since more than 500 programmers visit the service regularly in search of new job orders
Hey Im looking for an indicator / EXEPRT ADVISOR that is good for prop firms on Major pairs Eg. Eurusd, gbpusd xauusd etc etc I want it to have good entry points and good tp and sl Ideally i would like to have it so it targets 1:1 then 1:2 then 1:3 etc etc I would also prefer if it has SMC / a few other strategies. I am not looking for crazy 100+ orders a day. I just need a few orders that will target 0.5-3% a day If
Looking for a skilled freelance developer to create an Expert Advisor (EA) for MetaTrader 5 that specializes in trading XAUUSD (gold) and US30 (Dow Jones Industrial Average). The EA should be designed to execute both stop and limit orders and target 1-2 trades per week on each pair, aligning with the requirements outlined in the FTMO rules, aiming for a 5% daily return while adhering to a maximum drawdown of 10%. Key
Hey greetings . Am in need of a Developer that can Create me tradingview indicator based on my requirements. Kindly bid for the job if you are an expert in tradingview
already have an advisor on mql4 and I want to adapt it to mql5, and chance some things on it, I was working with a developer but he is to busy to keep working on it the advisor has been tested and it does most of what we want it to do but, I need some adjusts
I have a script completely up and running on MT5 and I want to convert it to work in NINJATRADER 8 LEAVE JOB PRICE, JOB RUN TIME, YEARS OF EXPERIENCE- tengo un script completamente listo y funcionando en mt5 y deseo convertilo para que funcione en NINJATRADER 8 DEJAR PRECIO DEL TRABAJO, TIEMPO DE EJECUCION DEL TRABAJO, AÑOS DE EXPERIENCIA-
Looking for a skilled freelance developer to create an Expert Advisor (EA) for MetaTrader 5 that specializes in trading XAUUSD (gold) and US30 (Dow Jones Industrial Average). The EA should be designed to execute both stop and limit orders and target 1-2 trades per week on each pair, aligning with the requirements outlined in the FTMO rules, aiming for a 5% daily return while adhering to a maximum drawdown of 10%. Key
I'm searching for someone with expertise in ICT and market structure to transform this Pine Script code into a buy and sell indicator, or potentially a trading robot, delivered with source code and You can work on prop farm. 1) Market Structure with Inducements & Sweeps [LuxAlgo] 2) ICT Concepts [LuxAlgo] Or Tell me more about your expert or a strategy you see as winning

项目信息

预算
30 - 50 USD
开发人员
27 - 45 USD