Convert Tradingview strategy to MT4 EA

Trabalho concluído

Tempo de execução 17 dias

Termos de Referência

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)



Respondido

1
Desenvolvedor 1
Classificação
(27)
Projetos
43
7%
Arbitragem
18
6% / 78%
Expirado
26
60%
Livre
2
Desenvolvedor 2
Classificação
(225)
Projetos
284
42%
Arbitragem
15
13% / 47%
Expirado
67
24%
Livre
3
Desenvolvedor 3
Classificação
(221)
Projetos
369
66%
Arbitragem
10
50% / 0%
Expirado
46
12%
Livre
4
Desenvolvedor 4
Classificação
(68)
Projetos
111
26%
Arbitragem
17
6% / 71%
Expirado
15
14%
Livre
Pedidos semelhantes
BAR STRADDLE EA 60 - 100 USD
Hello Coding Wizards. I need an EA that places pending buy above / sell below orders on a specific bar as it closes. Stop loss orders for both pending orders are on opposite ends of the bar. It needs to have fast execution speed with functions as follows; Position size based on X % risk of account balance. Works on whatever chart the EA is active on. Identification of "Primary Bar" based on server time entered
EA gold HB king5 100+ USD
// เริ่มต้นโปรแกรม EA input double LotSize = 0.1; // ขนาดของล็อต input double TakeProfit = 50; // จุดกำไร input double StopLoss = 50; // จุดขาดทุน // ฟังก์ชันที่เรียกเมื่อมีการสั่งซื้อ void OnTick() { double MA = iMA(NULL, 0, 14, 0, MODE_SMA, PRICE_CLOSE, 0); // Simple Moving Average (SMA) 14 double Price = Bid; if(Price > MA) // เงื่อนไขสำหรับการซื้อ { if(OrderSelect(0, SELECT_BY_POS) == false) //
I’m looking to turn into code. Trading Instrument - Crude Oil Futures (CL) Chart and Timeframe - 30-second chart Entry Setup 1. Time Focus on the first 30-second candle after 11:00:00 AM New York time. (11:00:00 candle) 2. Candle Size Limit : Skip the trade if the first candle is greater than 10 points. 3. Entry Orders - Place stop orders at the high and low of the first 30-second candle after 11:00:00. - Long Entry
Variable Inputs to be added Order Type : Market , Pending Trade Type : Buy, Sell , Buy & Sell Pending Pips Step : ( Pips Value can be negative or positive to decide on what type of Pending Order ) // If trade type Buy is selected Close Type : Close All ( Bulk Close Option in MT5 ) , Close Individually Close Option : %of Equity , %of Balance , Amount $ , %of No: of Trades Close Type : Buy Only , Sell Only , Buy & Sell
hello there I need a copy trade for mt4 can ANYONE help me with and let discuss on how to go about it kindly send me message to signify and let discuss mind you i need this urgently let connect to discuss and conclude
Below is the pine eidtor script convert it to MQL5 coding language and create bot based on following condition 1. This all should be on 5-minute chart timeframe 2. For Buy side, buy after closing of second candle when buy signal is given and hold buy position until sell signal is given. 3. For sell side, sell after closing of second candle when sell signal is given and hold sell position until next buy signal will be
I would like the better volume indicator 1.6 in a scanner format. Scanning multiple timeframe and pairs of which can be picked. Would like it to provide all standard notifications and also if pressed to go to the a template timeframe and pair. *To be placed in a table format as the one added. To be able to add which time frame you want to see. *To advise me of the following Climax High - turn the text green High
i have a JavaScript of a code which is a indicator of trading view, i want to convert into python script and make a mql5 automated trading bot which can take automatic trade and also exit when the signals come by the indicator
Here's the bot's trading strategy in a nutshell>>> I would like to make a simple scalping MT5 EA trading bot for the synthetic indices, specifically for the Boom 1000 Index. This MT5 EA trading bot will be based off of the 10 period moving average that follows specific rules for entry. The parameters of the moving average are as follows: Period:10 Shift:1 Method:Linear Weight Apply to:Close The bot will only initiate
I would like an existing, older MT4 EA I had developed converted into an MT5 EA and debugged where necessary. The EA is attached and should be fairly self-explanatory. It is a breakout order entry EA with customisable parameters

Informações sobre o projeto

Orçamento
30 - 50 USD
IVA (22%): 6.6 - 11 USD
Total: 36.6 - 61 USD
Desenvolvedor
27 - 45 USD
Prazo
para 10 dias