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")
Ordini simili
Looking for a developer to implement a multi-timeframe strategy based on liquidity zones, 2 oscillators (ADX and Stochastic RSI), and basic candlestick patterns (bullish/bearish engulfing, morning/evening star, hammer, falling star, piercing, black cloud cover - those are strictly specified in the specification to be shared privately). Developer needs basic knowledge of those oscillators and candlestick patterns, as
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
is typical Open NY sesion bot: I need a robot for MT5 that opens positions based on a minute or 10-minute candlestick at the opening of the London and/or New York session. If the market breaks through the upper edge of the candlestick, it opens a buy position; if it breaks through the lower edge, it opens a sell position. TP and SL = candlestick height. After the first SL, it opens the opposite position, but only
I have a simple strategy I’d like someone to convert into a mt4 and mt5 ea for me please , just using vwap(volume weighted average profile) and price action with a few simple rules
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
I’m seeking an experienced and reliable MQL5 developer to build a custom MT5 Hedge Trade Copier with the following core features: Two Modes in One EA : Sender (prop/challenge) & Receiver (live hedge) Custom Hedge Lot Formula (based on account size, max loss %, or fixed amount) Secure Authentication System (HTTP license server check) CSV-based Trade Bridge (no sockets/DLLs) Duplicate Trade Protection and error
Required Indi: BB Band: Period 21, Deviations 2.000 SMA: 21 in H1 timeframe RSI: Period 7 Timeframe: M5 Pair: XAUUSD, USDJPY, GBPJPY, EURJPY, AUDJPY, CHFJPY, GBPUSD Trading rules: #A In H1 timeframe, when price goes above the 21 SMA then looking for buy opportunity and when price goes below to 21 SMA, then look fora sell opportunity Buy triggered when candle got rejection from the lower Bollinger bands, and sell
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. -
I need an Expert Advisor that trades by signals of ADX and Moving Average indicators. It must check and correctly process possible errors in trading operations. The main criteria of opening and closing positions: direction of Moving Average, price of the last bar. Set the number of lots to trade as an input parameter
The idea if the EA is to hedge and potentially profit from volatitly during time frames of high impact news, or other market moving events, using trailing stops coupled with positive progression. To enter trades, the EA simply creates both a buy and sell market order simultanously at the start of a user defined day of the week and time frame. Lot size will be fixed or volume based as a percentage of the accountc