Hello there. Can someone help me translating a TradingView strategy into a MQL5 strategy?
It's pretty easy and standard the strategy. Around 70 rows of code. This is the code:
------------------------------------------------------
//@version=4
strategy("RSI2", overlay=true)
//inizializzazione parametri
//RSI
src = close
len = input(2, minval=1, title="RSILength")
up = rma(max(change(src), 0), len)
down = rma(-min(change(src), 0), len)
rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - 100 / (1 + up / down)
//medie mobili
mmlen = input(200, title="Slow MA len")
mmflen = input(50, title="Fast MA len")
machoice = input(defval="EMA", options=["SMA", "EMA"])
//soglie RSI
RSIthreshUP = input (90, title="Threshold RSI up")
RSIthreshDWN = input (10, title="Threshold RSI down")
//input ticker
tick=input(0.5,title="Ticker size",type=input.float)
filter=input(true,title="Trend Filter",type=input.bool)
mmslow = if machoice == "SMA"
sma(close, mmlen)
else
ema(close, mmlen)
mmfast = if machoice == "SMA"
sma(close, mmflen)
else
ema(close, mmflen)
plot(mmslow, color=color.white)
plot(mmfast, color=color.yellow)
//condizioni ingresso ed uscita mercato. Uscita non utilizzate
ConditionEntryL = if filter == true
mmfast > mmslow and close > mmslow and rsi < RSIthreshDWN
else
mmfast > mmslow and rsi < RSIthreshDWN
ConditionEntryS = if filter == true
mmfast < mmslow and close < mmslow and rsi > RSIthreshUP
else
mmfast < mmslow and rsi > RSIthreshUP
//ConditionExitL = (barssince(close>open)>2)
//ConditionExitS = (barssince(open>close)>2)
//impostazione trailing stop
ts = input(1, title="TrailingStop%", type=input.float)
ts_calc = close * (1/tick) * ts * 0.01
//ingressi ed uscite Mercato
if ConditionEntryL
strategy.entry("RSILong", strategy.long)
strategy.exit("ExitLong", "RSILong", trail_points=0, trail_offset=ts_calc)
//if (ConditionExitL)
// strategy.close ("RSILong")
if ConditionEntryS
strategy.entry("RSIShort", strategy.short)
strategy.exit("ExitShort", "RSIShort", trail_points=0, trail_offset=ts_calc)
//if (ConditionExitS)
// strategy.close ("RSIShort")
비슷한 주문
I would like you to create an expert advisor or robot based on a closed source Trading View indicator ‘Stop Hunt by _Nephew_Sam’. You have to first check this indicator out and be sure you can replicate the source code’s logic before you apply for this gig. If you read to this point, include closed source in your reply to this post
Project Description: I am looking for an experienced developer to create an Expert Advisor (EA) compatible with both MT4 and MT5 with the following functionalities: 1. Capital and Position Sizing Management: Automatically calculate and determine the appropriate trade size based on account balance and predefined risk parameters. Enforce strict capital management rules to prevent excessive exposure and control overall
Here are the requirements for a potential developer: 1. *Task*: Create a detailed specification for image editing tasks. 2. *Key Features*: - Describe the type of image (e.g., photo, graphic). - Specify edits (add, remove, change elements). - Define desired output format and resolution. 3. *Deliverables*: - A clear, concise document outlining the task. - Estimated complexity and cost assessment. -
Hi I have a strategy for quantower I needed coded I have been trying myself but can't quite get there. They all partially work but break somewhere along the way either in live trading or can't connect to back testing. I have about 2500-4000 lines of code. What would a quote be? I am happy to share all codes I do have to help
Project Overview: I am seeking an experienced MT5 developer to create a high-precision Expert Advisor (EA) that: Draws and updates session rectangles based on candle bodies only, auto-extending with each new candle. Displays RSI + Envelope indicators combined in a single subwindow, visually and functionally identical to dragging Envelopes onto RSI in MT5. Executes trades automatically when RSI+Envelope levels and
I'm looking for someone who can help me create an EA that can both backtest and trade automatically according to a specific strategy that I've developed myself. The strategy is NOT based on any indicator but rather on market structure regarding higher highs, lower lows, liquidity etc. I need someone who has done such EA's before and have a deep experience
Category: Trading robots (Expert Advisors) Platform: MetaTrader 5 Budget: $300 (fixed) Description: I need an experienced MQL5 developer to build a **high-performance scalper EA** for MT5 designed to **pass a prop firm challenge within one week** while fully complying with prop firm rules (daily drawdown, max loss, profit target). This is a paid job with a strict requirement for **full source code delivery and IP
JOB DESCRIPTION We are building a cloud-based, self-sustaining trading algorithm designed to operate autonomously with minimal supervision. The system should leverage AI to analyze real-time market data and news, make trading decisions across multiple asset classes, and adapt dynamically to changing conditions. OBJECTIVES 1. Generate consistent returns (target \~10% monthly +- 2%) 2. Maintain strict drawdown control
I am looking for an experienced MQL5 developer to create a fast and accurate scalping Expert Advisor for XAU/USD (Gold) on MetaTrader 5. The EA must operate with continuous trading , high trade frequency, and minimal delay in execution. Key Requirements: Trading Style: Scalping on M1 and M5 timeframes. Works best during high volatility sessions (London & New York). Indicators Used: EMA (Fast & Slow) for trend
Hello, I’m looking for a skilled developer to create a Telegram-to-MT4 & MT5 signal copier bot/EA with the following features: Core Features: Copy signals (both text and images) from Telegram and execute trades in MT4 and MT5 (two separate versions). AI parsing mode: Option to enable AI to read and interpret signals before execution. Fully optimized, stable, and bug-free performance. Prop firm compatibility