명시
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
등급
프로젝트
508
19%
중재
33
45%
/
30%
기한 초과
34
7%
로드됨
2
등급
프로젝트
21
10%
중재
4
25%
/
75%
기한 초과
0
무료
3
등급
프로젝트
18
11%
중재
5
40%
/
60%
기한 초과
1
6%
무료
게재됨: 1 코드
4
등급
프로젝트
401
27%
중재
39
41%
/
49%
기한 초과
1
0%
작업중
5
등급
프로젝트
54
61%
중재
2
50%
/
50%
기한 초과
0
무료
6
등급
프로젝트
1
0%
중재
4
0%
/
50%
기한 초과
0
작업중
7
등급
프로젝트
8
13%
중재
3
0%
/
67%
기한 초과
2
25%
무료
8
등급
프로젝트
6
0%
중재
2
50%
/
0%
기한 초과
1
17%
무료
9
등급
프로젝트
2
0%
중재
0
기한 초과
0
무료
10
등급
프로젝트
243
74%
중재
7
100%
/
0%
기한 초과
1
0%
무료
게재됨: 1 기고글
11
등급
프로젝트
8
0%
중재
4
0%
/
100%
기한 초과
3
38%
무료
12
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
13
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
14
등급
프로젝트
4
0%
중재
3
33%
/
67%
기한 초과
2
50%
작업중
15
등급
프로젝트
474
39%
중재
104
40%
/
23%
기한 초과
79
17%
바쁜
게재됨: 2 코드
비슷한 주문
I am looking for an experienced MQL5 developer to build a fully automated trading bot (Expert Advisor) for MetaTrader 5 . The bot will focus on trend-following scalping and must be designed to trade XAUUSD and BTC on the M1 timeframe . The objective is to create a stable and efficient EA that can open multiple trades per day while managing risk using proper stop-loss, take-profit, and trailing stop mechanisms
I am looking for an experienced MT4 (MQL4) developer to build a Harmonic Pattern Indicator with a PRZ (Potential Reversal Zone) detection system , similar to advanced harmonic scanners. Kindly apply if you can handle this project. Note: I don't want unprofessional developer
Trading view indicator to mql5
30 - 31 USD
hello, i want a convertion of this trading view indicator FVG (NEPHEW_SAM_) to mql5 to be add later to an expert advisor. i want to access this data, gap data printed on current timeframe and multi timeframe that i choose (current, timeF1, timeF2, timeF3, timeF4)(gap time, gap value, top gap value, low gap value, gap type bull / bear, gap type iFVG or FVG). a function that check if the price is checking the gap at
Looking for Partner to Deploy AI Trading System (MT5)
1000 - 5000 USD
I have developed a ready-made quantitative trading system for MetaTrader 5. The system uses an ensemble of machine learning models (XGBoost, LightGBM, Random Forest) combined with a market regime filter based on a Hidden Markov Model. Core features: - Automated trading for XAUUSD - Risk management and dynamic position sizing - Market regime detection (trend / range) - Volatility filter - Telegram monitoring interface
Hello, I am looking for an experienced MT5 (MetaTrader 5) developer to create a simple and reliable Forex trading EA. Broker: Skyriss Platform: MT5 Requirements: • EA should work only on Forex pairs (EURUSD, GBPUSD, USDJPY, USDCHF) • Around 1–2 trades per day is enough • Proper risk management with Stop Loss (SL) and Take Profit (TP) • Prefer low-risk trading with 0.01–0.03 lot depending on balance • No martingale or
hello, please take a moment to review my project. It is for Quanttower. it is very detailed in the instructions. Thank you, Just let me know if you can do it and the whats the cost and timeframe
Key Requirements: Source Account: Connect to a Master account using Investor (Read-only) Password. Destination Account: Execute trades on a Live Slave account with full trading access. Currency Focus: The system must handle Currency Pairs accurately, including symbol mapping (e.g., EURUSD to EURUSD.m) between different brokers. Stealth Features: Remove/Disable all trade comments. Assign custom Magic Numbers to the
I need a developer to start robot from scratch based on existing EA that is running live. I do not have the source file as my previous coder did not give it to me. What I do have is the investor password which is running the EA from the coder side but not from my end. I like someone to monitor the account and re create the same system for me
Project Overview: I am looking for a highly experienced MetaTrader 4 (MQL4) developer to build a sophisticated automated trading system. This is not a standard grid bot; it requires complex trade management, dynamic exposure rebalancing, and a custom "Salami" liquidation module for partial loss mitigation . Key Features to Implement: Virtual Grid & Dynamic Trend: Price-action-based grid triggers without pending
We are looking for a professional developer or trader who already has a proven profitable EA or strategy based mainly on price action logic. Important requirements: No Martingale No Grid No Micro-scalping Avoid heavy indicator-based strategies Strategy should be based mainly on price behavior / market structure We are not looking for aggressive systems that promise unrealistic returns. Our focus is on stable
프로젝트 정보
예산
30 - 50 USD
기한
에서 1 로 3 일