Converting a script to EA for MT4 and Pinescript Strategy with backtest

İş tamamlandı

Tamamlanma süresi: 1 gün

İş Gereklilikleri

Please i need someone to convert the below indicator script to an EA for MT4 and Pinescript Strategy with backtest.


//@version=4


study("Heikin Ashi Smoothed Buy Sell v4 ", overlay=true)

EMAlength=input(55,"EMA LENGTH?")


src = ohlc4

haOpen = 0.0

haOpen := (src + nz(haOpen[1])) / 2

haC = (ohlc4 + nz(haOpen) + max(high, nz(haOpen)) + min(low, nz(haOpen))) / 4

EMA1 = ema(haC, EMAlength)

EMA2 = ema(EMA1, EMAlength)

EMA3 = ema(EMA2, EMAlength)

TMA1 = 3 * EMA1 - 3 * EMA2 + EMA3

EMA4 = ema(TMA1, EMAlength)

EMA5 = ema(EMA4, EMAlength)

EMA6 = ema(EMA5, EMAlength)

TMA2 = 3 * EMA4 - 3 * EMA5 + EMA6

IPEK = TMA1 - TMA2

YASIN = TMA1 + IPEK

EMA7 = ema(hlc3, EMAlength)

EMA8 = ema(EMA7, EMAlength)

EMA9 = ema(EMA8, EMAlength)

TMA3 = 3 * EMA7 - 3 * EMA8 + EMA9

EMA10 = ema(TMA3, EMAlength)

EMA11 = ema(EMA10, EMAlength)

EMA12 = ema(EMA11, EMAlength)

TMA4 = 3 * EMA10 - 3 * EMA11 + EMA12

IPEK1 = TMA3 - TMA4

YASIN1 = TMA3 + IPEK1


mavi = YASIN1

kirmizi = YASIN



longCond=mavi>kirmizi and mavi[1]<=kirmizi[1]

shortCond=mavi<kirmizi and mavi[1]>=kirmizi[1]


trendState = kirmizi < mavi ? true : kirmizi > mavi ? false : na

closePlot = plot(kirmizi, title="Close Line", color=#009900, linewidth=10, style=plot.style_line, transp=90)

openPlot = plot(mavi, title="Open Line", color=#CC0000, linewidth=10, style=plot.style_line, transp=90)

closePlotU = plot(trendState ? kirmizi : na, transp=100, editable=false)

openPlotU = plot(trendState ? mavi : na, transp=100, editable=false)

closePlotD = plot(trendState ? na : kirmizi, transp=100, editable=false)

openPlotD = plot(trendState ? na : mavi, transp=100, editable=false)

fill(openPlotU, closePlotU, title="Up Trend Fill", color=#009900, transp=1)

fill(openPlotD, closePlotD, title="Down Trend Fill", color=#CC0000, transp=1)






last_signal = 0

long_final = longCond and (nz(last_signal[1]) == 0 or nz(last_signal[1]) == -1)

short_final = shortCond and (nz(last_signal[1]) == 0 or nz(last_signal[1]) == 1)


alertcondition(long_final, title="buy alarm", message="buy signal!!!")

alertcondition(short_final, title="sell alarm", message="sell signal!!!")

last_signal := long_final ? 1 : short_final ? -1 : last_signal[1]


plotshape(long_final, style=shape.labelup, location=location.belowbar, color=color.blue, size=size.tiny, title="buy label", text="BUY", textcolor=color.white)

plotshape(short_final, style=shape.labeldown, location=location.abovebar, color=color.red, size=size.tiny, title="sell label", text="SELL", textcolor=color.white)


Yanıtlandı

1
Geliştirici 1
Derecelendirme
(66)
Projeler
101
53%
Arabuluculuk
3
0% / 67%
Süresi dolmuş
9
9%
Çalışıyor
2
Geliştirici 2
Derecelendirme
(125)
Projeler
157
36%
Arabuluculuk
4
25% / 50%
Süresi dolmuş
13
8%
Çalışıyor
3
Geliştirici 3
Derecelendirme
(63)
Projeler
68
25%
Arabuluculuk
12
42% / 42%
Süresi dolmuş
4
6%
Ücretsiz
4
Geliştirici 4
Derecelendirme
(400)
Projeler
528
74%
Arabuluculuk
9
44% / 0%
Süresi dolmuş
24
5%
Ücretsiz
Benzer siparişler
Hello developers, Thanks in advance for checking my order. I have been creating and trying to mastering this strategies for a long time and finally it's time to automate it. I’m not sure if everything I imagined can be done. I tried my best to explain whats needed for the ea and how it should performance but due my lack of knowledge in programming probably you will have some questions soo feel free to ask. Only apply
MA Crossover EA 30+ USD
I need someone to create an MA crossover EA. This program should be able to trade the crosses. We would be using the MA indicators to make decisions about buying and selling stocks or other assets. The MA crossover would help me invest my money more effectively by automatically executing trades based on these indicators. If you can create this program, please let me know as I am interested in working with you
MT4 EA 30+ USD
I have project for expert developer here.. The task is to make the EA take trades using the indicator upper line and the lower line to take trades. When the upper line appears on the chart I need the EA to take a sell at that point. Then when the lower line shows up I need the seel trade to close. The same concept applies for the lower line. I need the EA to take a buy trade when the lower line appears and close when
News field 30+ USD
I am in need of a custom EA news filter for my trading platform, and I believe your expertise in this field can greatly assist me. Below are the specifications for the filter: 1. It should be implemented as a boolean function, returning either true or false. 2. The filter must automatically detect currency pairs. 3. Three hours before and after any significant news events pertaining to each currency in the pair, the
Hello, I would like to ask who would perform a backtest + optimization on my existing EA ? The EA works mainly on two pairs. Thank you for your reply. Sincerely Martin
I need someone to create an MA crossover EA. This program should be able to trade the crosses. We would be using the MA indicators to make decisions about buying and selling stocks or other assets. The MA crossover would help me invest my money more effectively by automatically executing trades based on these indicators. If you can create this program, please let me know as I am interested in working with you
the idea of the bot is to trade based on trend. we are going to use 5 different sma( smoothed moving average). they are sma7,sma20, sma50, sma100 and sma200. the bot will look for only buy trades when all the smas are facing up. the bot will look for only sell trades when all the smas are facing down. when we are in a up trend, the bot will look to enter trades on bullish candles that create fvg. if there is an fvg
Topx 80+ USD
1)I need EA with on/off button per currency and buttons to control lots size, auto change of currency with time, Dashboard of 4 indicators (Bollinger, Currency strength, FVG and Gann ) and trade management. Entry: When buy is clicked, the EA draws a line. After x pips market move away from the line or when price moves to given price line and or time, the EA opens buy order if clicked/selected indicators align. Set
I'm looking for an experienced developer to make some modifications to my MT4 Currency Strength Table indicator. Key Requirements: - I would like to have the add on feature of delta or the difference of the strength of currencies displayed in the new table and showing as B or S of only the one currency pair when the delta or difference arises. the delta will change values as the difference of strength of compared
I need Spike DETECTOR EA for Boom and Crash.. which will send me notification or alerts when spike is near. The EA should also be able be buy on crash Index and sell on Boom Index depending on the market..Demo may be provided for faster execution of my order

Proje bilgisi

Bütçe
30 - 50 USD
Geliştirici için
27 - 45 USD