EA developer for gold trading bot

Spécifications

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 given.

4. Stoploss should be the low of previous 4 candles after giving buy signal

5. for buy position lot size should be 0.01

6. for sell position lot size should be 0.01


//@version=5
strategy("Gold Bot", overlay=true)

// Inputs
a = input(2, title='Key Value (Sensitivity)')
c = input(1, title='ATR Period')
h = input(false, title='Signals from Heikin Ashi Candles')

// EMA Smoothing Inputs
len = input.int(9, minval=1, title="EMA Length")
offset = input.int(title="Offset", defval=0, minval=-500, maxval=500, display=display.data_window)
typeMA = input.string(title="Smoothing Method", defval="SMA", options=["SMA", "EMA", "SMMA (RMA)", "WMA", "VWMA"], group="Smoothing", display=display.data_window)
smoothingLength = input.int(title="Smoothing Length", defval=5, minval=1, maxval=100, group="Smoothing", display=display.data_window)

// ATR Calculation
xATR = ta.atr(c)
nLoss = a * xATR

// Source Selection
src = h ? request.security(ticker.heikinashi(syminfo.tickerid), timeframe.period, close, lookahead=barmerge.lookahead_off) : close

// ATR Trailing Stop Calculation
xATRTrailingStop = 0.0
iff_1 = src > nz(xATRTrailingStop[1], 0) ? src - nLoss : src + nLoss
iff_2 = src < nz(xATRTrailingStop[1], 0) and src[1] < nz(xATRTrailingStop[1], 0) ? math.min(nz(xATRTrailingStop[1]), src + nLoss) : iff_1
xATRTrailingStop := src > nz(xATRTrailingStop[1], 0) and src[1] > nz(xATRTrailingStop[1], 0) ? math.max(nz(xATRTrailingStop[1]), src - nLoss) : iff_2

// Position Calculation
pos = 0
iff_3 = src[1] > nz(xATRTrailingStop[1], 0) and src < nz(xATRTrailingStop[1], 0) ? -1 : nz(pos[1], 0)
pos := src[1] < nz(xATRTrailingStop[1], 0) and src > nz(xATRTrailingStop[1], 0) ? 1 : iff_3

// EMA Calculation
ema = ta.ema(src, len)

// Smoothing Calculation
smoothingLine = switch typeMA
    "SMA" => ta.sma(ema, smoothingLength)
    "EMA" => ta.ema(ema, smoothingLength)
    "SMMA (RMA)" => ta.rma(ema, smoothingLength)
    "WMA" => ta.wma(ema, smoothingLength)
    "VWMA" => ta.vwma(ema, smoothingLength)

// Buy and Sell Conditions
above = ta.crossover(ema, xATRTrailingStop)
below = ta.crossover(xATRTrailingStop, ema)
buy = src > xATRTrailingStop and above
sell = src < xATRTrailingStop and below

// Stop Loss Calculation
stopLossLevel = ta.lowest(low, 3)

// Strategy Execution
if (buy)
    strategy.entry("Long", strategy.long, stop=stopLossLevel)

if (sell)
    strategy.close("Long")

// Plotting
plot(ema, title="EMA", color=color.blue, offset=offset)
plot(smoothingLine, title="Smoothing Line", color=#f37f20, offset=offset)
plotshape(buy, title='Buy', text='Buy', style=shape.labelup, location=location.belowbar, color=color.new(color.green, 0), textcolor=color.new(color.white, 0), size=size.tiny)
plotshape(sell, title='Sell', text='Sell', style=shape.labeldown, location=location.abovebar, color=color.new(color.red, 0), textcolor=color.new(color.white, 0), size=size.tiny)

barcolor(src > xATRTrailingStop ? color.green : na)
barcolor(src < xATRTrailingStop ? color.red : na)

// Alerts
alertcondition(buy, 'UT Long', 'UT Long')
alertcondition(sell, 'UT Short', 'UT Short')


Répondu

1
Développeur 1
Évaluation
(235)
Projets
372
17%
Arbitrage
23
39% / 30%
En retard
18
5%
Chargé
2
Développeur 2
Évaluation
(21)
Projets
20
10%
Arbitrage
2
50% / 50%
En retard
0
Gratuit
3
Développeur 3
Évaluation
(13)
Projets
15
7%
Arbitrage
1
0% / 100%
En retard
1
7%
Chargé
4
Développeur 4
Évaluation
(183)
Projets
258
21%
Arbitrage
18
61% / 17%
En retard
1
0%
Occupé
5
Développeur 5
Évaluation
(12)
Projets
16
19%
Arbitrage
2
50% / 50%
En retard
0
Gratuit
6
Développeur 6
Évaluation
Projets
1
0%
Arbitrage
3
0% / 0%
En retard
0
Chargé
7
Développeur 7
Évaluation
(6)
Projets
7
14%
Arbitrage
1
0% / 0%
En retard
2
29%
Travail
8
Développeur 8
Évaluation
(1)
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
9
Développeur 9
Évaluation
(2)
Projets
2
0%
Arbitrage
0
En retard
0
Gratuit
10
Développeur 10
Évaluation
(66)
Projets
200
72%
Arbitrage
4
100% / 0%
En retard
1
1%
Gratuit
11
Développeur 11
Évaluation
(4)
Projets
6
0%
Arbitrage
0
En retard
3
50%
Chargé
12
Développeur 12
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
13
Développeur 13
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
14
Développeur 14
Évaluation
Projets
1
0%
Arbitrage
1
0% / 0%
En retard
1
100%
Travail
15
Développeur 15
Évaluation
(261)
Projets
428
38%
Arbitrage
87
44% / 18%
En retard
71
17%
Occupé
Commandes similaires
Hello Here Everyone, I need an expert to help me create a tradingview indicator that works exactly according to my requirements, Even though i will attach a file there review it and let me know if you could do it and we can talk about the price as well
Hello, I’m looking for a TradingView indicator that fits my forex trading needs. If you can create or customize one for me, please reach out. I'd appreciate your help! Best regards ridynaty
Create a Backtesting stimulator similar to ------ https://www.mql5.com/en/market/product/101346?source=External but showing BALANCE AND EQUITY on screen including open trades.. Must have experience with Backtesting softwares or can offer a solution to what am looking to fix.. IF you can develop I can go a bit above my budget
Project Overview: I would like you to develop a Moving Average Crossover Trading Bot for MetaTrader 5 (MT5) , compatible with all trading instruments (Forex, Stocks, Indices, Commodities, etc.). The bot should be customizable, allowing users to adjust various parameters such as risk percentage, moving average periods, stop loss, take profit, and trade duration. The bot will leverage Long Short-Term Memory (LSTM)
Hello, I’m looking for a TradingView indicator that fits my forex trading needs. If you can create or customize one for me, please reach out. I'd appreciate your help! Thanks in advance."
I need an expert to help me convert chopzone traingview pinescript to mt4, I need an expert to get it done for me on between 1 to 2 days i hope this will be done by then, i will attach the file and my budget is $30 as of minimum here
This project involves converting the a TradingView Pine Script strategy, into a fully functional MT4 Expert Advisor (EA) using MQL5. The strategy includes multiple technical indicators, entry/exit conditions, stop loss (SL), take profit (TP), and custom entry price offsets. The EA should be designed for backtesting and live trading in MT4
Olá, preciso ativar em meu EA a função webrequest com URL para poder controlar os acessos de usuários que irão utilizar meu EA. Quero vender meu EA e preciso ter um controle maior de gestão de acessos ao meu EA
I'm planning on building/creating an mt4/5 trading indicator that use a break and retest strategy I will share a link for the idea strategy, Kindly message me to send you the link, I can't send it here
here we will create market website, where we will display all our assets in graphical form, we will pull data from Metatrader platform and update the website in real time. I need something like this https://NgnRates.com but on our site we will display our own rate based on calculations performed on MT5 source

Informations sur le projet

Budget
30 - 50 USD
Pour le développeur
27 - 45 USD
Délais
de 1 à 3 jour(s)