Translate a Pine Script into a MQL4/5 Indicator

MQL5 Göstergeler

İş tamamlandı

Tamamlanma süresi: 2 saat
Geliştirici tarafından geri bildirim
Highly valued client , would definitely like to work with him again anytime 5*
Müşteri tarafından geri bildirim
I couldn't be happier with the job! He delivered ahead of estimated time, in the exact way it was requested. I will surely come back when I need something fast and in fair price.

İş Gereklilikleri

I want to translate the Pine Script below into a MQL4/5 Indicator.

The challenge is to create EMA lines for the Heikin Ashi Close prices, not the actual Close price. So a custom MA() function needs to be created. 

The programmer needs to be familiar with TradingView Pine Script programming for the comparison later with the two drawn lines in both platforms that must be exactly the same. 

Pine Script to be translated into a MQL Indicator: 

strategy("Heikin Ashi Strategy - by agbarbosa",shorttitle="HAS V1",overlay=true,default_qty_value=1000,initial_capital=100000,currency=currency.EUR)

res = input(title="Heikin Ashi Candle Time Frame", type=resolution, defval="15")

hshift = input(1,title="Heikin Ashi Candle Time Frame Shift")

res1 = input(title="Heikin Ashi EMA Time Frame", type=resolution, defval="120")

mhshift = input(0,title="Heikin Ashi EMA Time Frame Shift")

fama = input(1,"Heikin Ashi EMA Period")

test = input(1,"Heikin Ashi EMA Shift")

sloma = input(30,"Slow EMA Period")

slomas = input(1,"Slow EMA Shift")



//Heikin Ashi Open/Close Price

ha_t = heikinashi(tickerid)

ha_open = security(ha_t, res, open[hshift])

ha_close = security(ha_t, res, close[hshift])

mha_close = security(ha_t, res1, close[mhshift])



//Moving Average

fma = ema(mha_close[test],fama)

sma = ema(ha_close[slomas],sloma)

plot(fma,title="MA",color=lime,linewidth=2,style=line)

plot(sma,title="SMA",color=red,linewidth=2,style=line)



//Strategy

golong =  crossover(fma,sma) 

goshort =   crossunder(fma,sma)



strategy.entry("Buy",strategy.long,when = golong)

strategy.entry("Sell",strategy.short,when = goshort)


Yanıtlandı

1
Geliştirici 1
Derecelendirme
(590)
Projeler
789
71%
Arabuluculuk
9
33% / 33%
Süresi dolmuş
22
3%
Serbest
2
Geliştirici 2
Derecelendirme
(24)
Projeler
27
33%
Arabuluculuk
2
100% / 0%
Süresi dolmuş
1
4%
Serbest
3
Geliştirici 3
Derecelendirme
(236)
Projeler
440
26%
Arabuluculuk
125
21% / 57%
Süresi dolmuş
96
22%
Çalışıyor
4
Geliştirici 4
Derecelendirme
(163)
Projeler
193
48%
Arabuluculuk
2
50% / 50%
Süresi dolmuş
1
1%
Serbest
5
Geliştirici 5
Derecelendirme
(45)
Projeler
59
42%
Arabuluculuk
5
0% / 60%
Süresi dolmuş
12
20%
Serbest
6
Geliştirici 6
Derecelendirme
(586)
Projeler
1048
49%
Arabuluculuk
39
28% / 41%
Süresi dolmuş
49
5%
Serbest
7
Geliştirici 7
Derecelendirme
(336)
Projeler
621
38%
Arabuluculuk
39
23% / 64%
Süresi dolmuş
93
15%
Serbest
8
Geliştirici 8
Derecelendirme
(195)
Projeler
395
28%
Arabuluculuk
155
20% / 52%
Süresi dolmuş
112
28%
Serbest
9
Geliştirici 9
Derecelendirme
(35)
Projeler
73
51%
Arabuluculuk
12
33% / 33%
Süresi dolmuş
14
19%
Serbest
Benzer siparişler
Hello, I have a protected Ninja trader Order Flow indicator and I was wondering if you can reverse engineer it to replicate the functionality. H ere are the specifications and indicator: https://docs.google.com/document/d/1KyYwQ7iTL2KWGhnZzxS1gObccu9LPMrGuMc9Mdk_3KY/edit?usp=sharing
I have an EA that need some changes including integrating the indicator code directly into the Expert Advisor. I will give the detailed doc once we settle on the candidate for the job . Please bid if you can work with the stated amount. Thanks
Hello, Need to convert Tradingview Indicator to MQL4 indicator. or if you have this one converted already, let me buy a copy please. If we're good, then will definitely buy it and ask to convert into EA on new order. Supertrend by KivancOzbilgic
Fix bug or modify an existing Trading view indicator to display correct. The indicator is working but not displaying/plotting all the information i want. So i want it adjusted to plot all the info
Here's a brief requirement you can use: **Description:** I am seeking an experienced MQL5 developer to create a (EA). The EA should include features for placing pending orders (Buy Stop and Sell Stop) based on market spread, managing trades effectively at the opening of new candlesticks, and implementing take profit and stop loss strategies. Additionally, I would like the option to adjust parameters based on market
I have an EA which i need to do below modifications. 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
Add multiplier to grid recovery system. For example: Grid Trade 2-3 Spacing; 1.0 Multiplier Grid Trade 4-6 Spacing; 2.0 Multiplier Grid Trade 7+ Spacing; 1.6 Multiplier Need quick turn around. Need it done ASAP
Objects reader PIN 70 - 100 USD
Hi I have an indicator that create objects in the chart and using those following some rules the new indicator will create external global variables with value = 0 ( NONE ), = 1 ( BUY ) or = 2 ( SELL ). The global variable will use PIN external integer number . PINS are by now global variables (GV) whose name indicates the pair name and the PIN belonging and their value indicates it direction/action. PINS GV names
I want an indicator and its source code that returns the value of: - two moving averages in different selectable timeframes, with method Exponential and price calculation price_open; - Opening, closing, maximum and minimum of the candle in different timeframes And that returns the values ​​regardless in a chart of one minute. The input parameters: * select timeframe media1 = {1,2,3,4,5,...} * select timeframe media2
Hello, I want offline Renko chart based on pips and time. Trading View Renko chart is a perfect example of what I require, it prints renko bricks at close of time frame chosen which is more cleaner. The Trading View Renko chart wait until end of desired timeframe candle to close before final renko bricks are drawn. Best is to look at Trading View renko charts to see exactly how this works. I currently have an

Proje bilgisi

Bütçe
30+ USD
Geliştirici için
27 USD
Son teslim tarihi
to 10 gün