EA developer for gold trading bot

指定

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')


反馈

1
开发者 1
等级
(328)
项目
512
19%
仲裁
33
45% / 30%
逾期
34
7%
已载入
2
开发者 2
等级
(22)
项目
21
10%
仲裁
4
25% / 75%
逾期
0
空闲
3
开发者 3
等级
(13)
项目
18
11%
仲裁
6
33% / 67%
逾期
1
6%
空闲
发布者: 1 代码
4
开发者 4
等级
(274)
项目
403
28%
仲裁
40
40% / 50%
逾期
1
0%
空闲
5
开发者 5
等级
(39)
项目
54
61%
仲裁
2
50% / 50%
逾期
0
空闲
6
开发者 6
等级
项目
1
0%
仲裁
4
0% / 50%
逾期
0
工作中
7
开发者 7
等级
(7)
项目
8
13%
仲裁
3
0% / 67%
逾期
2
25%
空闲
8
开发者 8
等级
(8)
项目
8
0%
仲裁
2
50% / 0%
逾期
1
13%
工作中
9
开发者 9
等级
(2)
项目
2
0%
仲裁
0
逾期
0
空闲
10
开发者 10
等级
(77)
项目
243
74%
仲裁
7
100% / 0%
逾期
1
0%
空闲
发布者: 1 文章
11
开发者 11
等级
(7)
项目
8
0%
仲裁
4
0% / 100%
逾期
3
38%
空闲
12
开发者 12
等级
项目
0
0%
仲裁
0
逾期
0
空闲
13
开发者 13
等级
项目
0
0%
仲裁
0
逾期
0
空闲
14
开发者 14
等级
(2)
项目
4
0%
仲裁
3
33% / 67%
逾期
2
50%
工作中
15
开发者 15
等级
(298)
项目
477
40%
仲裁
105
40% / 24%
逾期
81
17%
已载入
发布者: 2 代码
相似订单
The video appears to show a mobile “auto trading robot” or trading bot promoting automated trading results on a forex/crypto-style app. The bot seems to place trades automatically and display profit/loss updates in real time. Here are the main things a trading robot can do during trading: Market Monitoring Watch price charts 24/7 Track trends, volatility, and indicators Detect trading signals faster than humans
Szukam doświadczonego programisty do stworzenia dedykowanego doradcy eksperckiego (EA) do tradingu. Programista powinien posiadać solidną wiedzę z zakresu MT5, logiki strategii, wskaźników, zarządzania ryzykiem i backtestingu. Doświadczenie w tworzeniu niezawodnych i profesjonalnych robotów handlowych będzie dodatkowym atutem. Proszę o kontakt, jeśli zrealizowałeś już podobne projekty. wszystkie szczeguły podam w
Fantastic robot 30 - 200 USD
Ladies and gentlemen, Today, I present a fantastic robot — a machine built for excellence, intelligence, and victory. This robot is designed to learn faster, react smarter, and perform better than ever before. Its mission is simple: achieve success with confidence, precision, and unstoppable determination. This is not just an ordinary robot. It analyzes every challenge, improves from every experience, and works
I am looking to buy a ready-made automated trading robot / EA that works on the Tradovate platform and is proven to pass prop firm challenges for Apex Trader Funding, Tradeify, and Lucid Trading.Key Requirements (must be ready-made or very close to plug-and-play):Fully functional on Tradovate (native or via stable bridge/copier/webhook/API integration – MT5 EA + Tradovate bridge is acceptable if it works reliably)
Required: Creation, Integration and successful execution of trading algo/robot in MT5 using MT5 VPS. Brokers: Trades to be executed in both brokers Swissquote and Pepperstone. Symbols: All available in MT5. Below parameters remains common for all executions. Manual Start/Stop Session time (defined / always on- in swing mode) Signal time frame for candle close. Reference point/price: ( Reference Price Manually to be
I’m looking for an experienced MetaTrader 4 (MT4) developer to analyze, repair, and live-test an existing .EX4 Expert Advisor. Project Details Existing file: GannMadeEasy_pro.ex4 Platform: MetaTrader 4 Issue: EA is not loading properly on charts in newer MT4 builds Goal: Make the EA fully functional and compatible with current MT4 versions Requirements The developer must: Analyze the existing EX4 file Identify
i want an indicator that tells me accurate supply demand quantity on charts also no supply demand on candle with volume feed for tradingview. real base of supply and demand on chart with value some screen shorts are attahed
i need the EA same working on trading view chart with same specifications of enter in a trade and sl/tp open 2 trades and 1 trade set tp1 & second trade set to tp 3 but sl should move to breakeven when tp1 hit and go to tp2 sl on tp1
SNIPER X AI 30 - 200 USD
I really need a developer Who can help me to create my SNIPER X AI - Elite AI Trading System Overview SNIPER X AI BOT is an AI-assisted trading system for Forex, Crypto, Stocks, Indices, and Gold. Currency: USD,RAND,KWD, POUND,EURO Core Features AI Scalping, Sniper Entries, Auto Buy/Sell, Smart Risk Management, Telegram Alerts, Mobile Monitoring, VPS Deployment. Supported Platforms MetaTrader 4, MetaTrader 5, Exness
Hello, I am looking for an experienced developer who can build a professional EA suitable for long-term prop firm account passing and account management. I am NOT interested in risky strategies such as martingale, grid, or aggressive recovery systems. My main priorities are: very low and stable drawdown, strong and consistent risk management, strict news filter, long-term sustainability, realistic and stable monthly

项目信息

预算
30 - 50 USD
截止日期
 1  3 天