Convert Pinescript into an MT4 EA

MQL4 Experts

Specification

Hi



I need this Indicator from Trade View made into an MT4 Expert Advisor


The EA needs to display on the chart the same as on Tradeview, note arrows show where the trade was triggered on the Candle.



Main thing i have found is the Lime green Fast Moving Average line needs to maintain the Square look Form/Structure as in below pic



1/ The EA needs to check it isn't missing signals as it may need to constantly re fresh to maintain Square form ?

2/ On each new signal the EA needs to check a Trade hasn't already been opened in the same direction - If it has then don't open the Trade.

3/ When no trades are open and I open a Trade manually the EA will take over from there.

4/ If i close a Trade the EA will wait for a new Signal or next manually opened Trade.

3/ The Fast Moving Average line needs to hold it's Square look Form/Structure in Strategy Tester also if possible ?

4/ Add Risk amount

5/ Lot size.

6/ Alert Sound and Popup.

7/ Magic number 

8/ Able to adjust all settings



All code and rights to this EA to be owned by me ©

Code sent to me also


That's it 

Thanks


Tradeview Code Below


//Heikin Ashi Strategy 

strategy("Heikin Ashi Strategy  V2",shorttitle="HAS V2",overlay=true,default_qty_value=1000,initial_capital=100000,currency=currency.EUR)
res = input(title="Heikin Ashi Candle Time Frame", type=resolution, defval="60")
hshift = input(1,title="Heikin Ashi Candle Time Frame Shift")
res1 = input(title="Heikin Ashi EMA Time Frame", type=resolution, defval="180")
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")
macdf = input(false,title="With MACD filter")
res2 = input(title="MACD Time Frame", type=resolution, defval="15")
macds = input(1,title="MACD 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])

//macd
[macdLine, signalLine, histLine] = macd(close, 12, 26, 9)
macdl = security(ha_t,res2,macdLine[macds])
macdsl= security(ha_t,res2,signalLine[macds])

//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) and (macdl > macdsl or macdf == false )
goshort =   crossunder(fma,sma) and (macdl < macdsl or macdf == false )

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


Responded

1
Developer 1
Rating
(320)
Projects
466
42%
Arbitration
78
12% / 63%
Overdue
75
16%
Working
2
Developer 2
Rating
(258)
Projects
395
28%
Arbitration
69
19% / 49%
Overdue
120
30%
Free
3
Developer 3
Rating
(66)
Projects
95
28%
Arbitration
20
25% / 55%
Overdue
24
25%
Free
4
Developer 4
Rating
(130)
Projects
210
40%
Arbitration
90
20% / 43%
Overdue
86
41%
Free
5
Developer 5
Rating
(195)
Projects
317
35%
Arbitration
64
13% / 56%
Overdue
82
26%
Free
6
Developer 6
Rating
(546)
Projects
823
73%
Arbitration
15
53% / 13%
Overdue
193
23%
Free
7
Developer 7
Rating
(1235)
Projects
2820
80%
Arbitration
156
22% / 43%
Overdue
489
17%
Free
8
Developer 8
Rating
(1)
Projects
1
0%
Arbitration
1
0% / 100%
Overdue
0
Free
Similar orders
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
· I need an MT5 EA that trades on Currencies, Indices, Metals, Crypto, Commodities and Deriv Synthetic Indices. · It should trigger trades on the Moving average cross above or below of the RSI levels in the same window. It should have a Trailing stop and break even input variables. Please note that I only want to use the RSI levels and not its period hence the RSI period will be set to 1. Also the
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 create RSI trading bot in 1 min time frame this is will happern in 1 min timeframe if RSI level 3 min chat frame touch 27 RSI level than excute buy order as and if 3 min time frame candle touch 72 level RSI will excute sell order than profit will be 3 time where order fill from and stop loss open ,. and i want in the setting able adjust the stoploss in tick adjust the take profit and entry lot
I am in the middle of conducting a complex experiment. And part of this experiment entails modifying an existing free MT5 EA (DarkCloud PiercingLine Stoch, for which i can pass the source code to you if you need) to: run only on specific days and within specific hours on those specific days. I will provide you with the schedule. I need the EA to come with scheduling choices so that the user can choose which days and
Hi, I'm looking for a developper to create an EA based on: The combination of 6 FOREX indicators The strategy is based on the combination of 6 indicators It can be used regardless of the timeframe. It can be used regardless of the symbol
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
Hi, Coding Skills Required: Experience in coding trading robots for MT5. Ability to implement increasing coefficients for the distance between orders and lot size 1. Project Objective: Develop an automated trading robot for MetaTrader 5 (MT5) as per the specified trading strategy. 2. Trading Strategy: The robot must execute a strategy that includes the following elements: Opening initial orders. Placing pending

Project information

Budget
150+ USD
For the developer
135 USD
Deadline
from 1 to 2 day(s)