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")
Similar orders
hello here am looking for someone that can assist me in removing validation form my demo file and if anyone is interested dm the for more details i will be waiting to get any reply by some on that can assist me with this
A green point should be added at the Low point of candlesticks in the oversold zone—it is the L point. If there is at least one L point between two H points, search for a LL point in the interval between two H points. The candlestick with the lowest Low price will be the LL point. Generally, the LL point is not necessarily an L point. Search for candlesticks with the lowest Low price. If there is at least one H point
Trading robots are programs, which operate according to underlying algorithms. An algorithm is a set of actions that need to be performed in response to certain events. For example, the most common task in algo trading is the identification of the "New bar" event. When the event occurs, the robot checks the emergence of trading signals and acts accordingly. Before you decide to program or order a trading robot, you
Hello, I am looking for developer who develops me a renko trading robo with following requirement Time :1 sec Box assignment method : Percentage change LTP Source : Close/OHLC Auto Break-even setup option after certain box Trialling Profit Pips after certain box profit with auto Sl set in PIPs Auto open reverse trade after hitting Sl with given conditions . It is very simple trading tool
Help me to trade create orders for me and analyze the markets and decide when is a good time to buy or sell. Determine which pairs are best to use to trade with and indicate trading signals to me
I currently have a Forex trading script in .txt format that I want to be converted to a functional/working robot (in .mq4), without altering the strategy of the script. The strategy of the script is already in and shouldn't be changed unless with mutual understanding
Hi, Greetings. Can somebody revert with an offer to code a FVG Scanner across Forex Pairs / Time Frame Selection / Alert please in order to support a Trading Strategy where entries are considered with the market direction confluence such as a Half Trend / Semafor Indicator. Look forward to hear back. Kind Regards. Anton
Hey greetings, It my pleasure to met you . I need a MT4 develop that can develop an EA based on alert . If you are a professional MT4 programmer you can kindly bid for this project and let proceed
I've use most of code from this script, add some more filter, and added different kind of moving avg instead of rsi input .. please check the source code .. . 70-80% is similar to it. Please check can you convert And are you familiar with backtest.py library? Oky. This library has ML approach to get the optimized backtest parameters right ? included for this but let me know what you think? can you install backtest.py
Project Description : I need an experienced programmer to convert the TradingView indicator "CURRENCY STRANGHT CHART by boitoki" into a MetaTrader 5 (MT5) format. The indicator should function identically to the original and be fully compatible for integration into an Expert Advisor (EA) on MT5. Requirements : Convert "TTD Middle Right Normal" from TradingView to a .mq5 file for MT5. Ensure all indicator features and