Convert PineScript Strategy to Metatrader 4 Expert Advisor

Auftrag beendet

Ausführungszeit 246 Tage

Spezifikation

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)

Bewerbungen

1
Entwickler 1
Bewertung
(298)
Projekte
427
26%
Schlichtung
18
61% / 33%
Frist nicht eingehalten
26
6%
Frei
2
Entwickler 2
Bewertung
(54)
Projekte
53
17%
Schlichtung
7
0% / 100%
Frist nicht eingehalten
5
9%
Frei
3
Entwickler 3
Bewertung
(230)
Projekte
431
27%
Schlichtung
123
21% / 55%
Frist nicht eingehalten
96
22%
Arbeitet
4
Entwickler 4
Bewertung
(221)
Projekte
369
66%
Schlichtung
10
50% / 0%
Frist nicht eingehalten
46
12%
Frei
5
Entwickler 5
Bewertung
(145)
Projekte
161
40%
Schlichtung
5
0% / 80%
Frist nicht eingehalten
8
5%
Arbeitet
6
Entwickler 6
Bewertung
(336)
Projekte
620
38%
Schlichtung
39
23% / 64%
Frist nicht eingehalten
93
15%
Frei
7
Entwickler 7
Bewertung
(555)
Projekte
922
48%
Schlichtung
300
59% / 25%
Frist nicht eingehalten
123
13%
Arbeitet
Ähnliche Aufträge
I need a trading indicator that will give 1 minute and 5 minute accurate signals for only EURUSD pair. the indicator is to be used for Binary options so it has to perform exceptionally
ODSMART EA 30 USD
I want an EA developed from this strategy that will buy and sell based on the appearance of these colours. Blue-buy (Enter when the signal indicator is at zero on the blue background) Red -sell( Enter when the signal indicator is at 100) White and brown, exit trade
I want to design forex robot which work based on hikenashi candel stick pattern and also i wamt to include martingale statergy and trade entry method is bqsed on rsi and hikenashi
The expert advisor needs to follow these conditions = 1. The values of these elements can be changed at any time and for any instrument . . Time Interval of renko . Size of renko brick . Type of renko brick (fixed , atr or percentage) . Lot size 2. Buy condition = ENTRY = Renko brick closes GREEN. EXIT = Renko brick closes RED or TRAILING STOPLOSS=3 bricks down. 3. Sell condition = ENTRY =
Hi there Here is a video of the logic: its based on market structure and swings using validated highs and lows based on candle closure. Just in case you would like to take a look at the code/indicator here is the link: https://youtu.be/igj0OaQoM7o?si=7nigL8OU2Nt1Zxkx Let me know if you can help
Create MT5 deriv EA 30 - 35 USD
Hello . Am in need of a developer that can Create deriv EA .I need to create a Deriv Bot with Martingale 1 min candles 30 martingale plus I can change the amount of martigale with the option of 1 min up or down . Kindly bid and let discuss about the project
"Hello, I'm looking for a developer who can connect tradingview signal to cTrader. If you have experience with API integration and are familiar with both cTrader and TradingView, please reach out. This project involves connecting the two platforms to enable detect signals and trigger cTrader . Looking forward to collaborating with someone who can help me with the project Thanks
I need an automated EA to open positions based on the closing of a candle over/under the 50MA TP must be able to be set at specific points SP must be able to be set at previous candle open
MT4 TRADE COPIER EA 30 - 35 USD
Hello , how are you doing? Am in need of MT4 developer that can help me to develop trade copier EA for MT4 account Kindly bid for the project if it is what you can do for me thanks
Nt8 30+ USD
I trade in NT8 and would like to code an Elliott wave measurment tool, which is very easy because I have the major Script for that.We need only to add some aspects into it. If you are interested,if you can do this do well to bid on it

Projektdetails

Budget
30 - 50 USD
Für die Entwickler
27 - 45 USD