Renko ATR Strategy

MQL5 Integración Conversión

Tarea técnica

...!!! I apologize - one of the developers sent me a ready-made version with good results... this is my first time trying to create a robot and I deleted the previous and similar post... in order not to devalue his work, I ask the one who sent the tested strategy to contact me so that I can pay him for the work done and the ready strategy...

The strategy was slightly reworked with artificial intelligence for my specific needs, here is the link to the original strategy and how it changed over time :

If you don't see the strategy here, the name of the strategy is in the pictures and in Trading View you can read more about the foundations on which it is built and how it has changed over time (see the pictures).

 ...what I want to do is:

-to convert the strategy I reworked (based on the strategy specified in the link above) so that all conditions, interaction, functions (absolutely everything that this script represents in the trading view) to be recreated 1 to 1 in formats for a valid strategy in MQL 5... that is, conditions for entering and exiting a trade, stop loss, take profit, R:R ratio, correct capital allocation, currency type and as all options for variables that exist - the way they exist in the view and in the trading view - MUST BE RE-CREATED IN MQL 5...
!!! For a better understanding of the effect I am looking for, it is best to copy my version of the strategy with my different settings in the trading view and test it there on a renko chart - this is also the effect I am looking for that I want to recreate in metatrader 5 (1 to 1) or with a very close result.
This is the strategy (my version) that I want to convert:


//@version=5
// This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License https://creativecommons.org/licenses/by-sa/4.0/
// © dman103

strategy(title='Renko Strategy V2 settings by Lavokan', shorttitle='Renko Strategy V2 settings by Lavokan', overlay=true, precision=3, commission_value=0.025, default_qty_type=strategy.cash, default_qty_value=10000, initial_capital=10000)

// === INPUT BACKTEST RANGE ===
i_startTime = input.time(defval=timestamp('01 Dec 2014 00:00 +0000'), title='Start Time', group='Date Range')
i_endTime = input.time(defval=timestamp('31 Dec 2029 23:59 +0000'), title='End Time', group='Date Range')
time_cond = time >= i_startTime and time <= i_endTime
allow_short = input.bool(false, title='Allow Short', group='Settings')
atr_len = input.int(10, 'ATR Length', group='Settings')

// === ATR CALCULATIONS ===
atr = ta.atr(atr_len)

// === RENKO LOGIC ===
Renko1() =>
    p1 = 0.0
    p1 := close > nz(p1[1]) + atr ? nz(p1[1]) + atr : close < nz(p1[1]) - atr ? nz(p1[1]) - atr : nz(p1[1])
    p1
Renko2() =>
    p2 = 0.0
    Br_1 = Renko1()
    p2 := Renko1() != Renko1()[1] ? Br_1[1] : nz(p2[1])
    p2

Renko3() =>
    p3 = 0.0
    p3 := open > nz(p3[1]) + atr ? nz(p3[1]) + atr : open < nz(p3[1]) - atr ? nz(p3[1]) - atr : nz(p3[1])
    p3

Renko4() =>
    open_v = 0.0
    Br_2 = Renko3()
    open_v := Renko3() != Renko3()[1] ? Br_2[1] : nz(open_v[1])
    open_v

o2 = Renko4()
c2 = Renko1()

// === INPUTS FOR R:R, LEVERAGE, AND DEAL CAPITAL ===
riskRewardRatio = input.float(2.0, title="Risk-to-Reward Ratio", minval=0.1, step=0.1, tooltip="Ръчно въведете съотношение R:R (пример: 2 означава 2:1)")
leverage = input.float(1.0, title="Leverage (1x - 100x)", minval=1, maxval=100, tooltip="Въведете стойността на ливъриджа")
dealCapital = input.float(1000, title="Deal Capital (EUR)", minval=1, tooltip="Сума за единична сделка в евро")

// === POSITION SIZE CALCULATION ===
position_size = dealCapital * leverage

// === R:R FORMATTING ===
riskRewardText = str.tostring(riskRewardRatio, '#.##') + ":1"

// === TRADE CONDITIONS ===
go_long = ta.barssince(o2 < c2) < ta.barssince(o2 > c2) and o2 < c2
go_short = allow_short and ta.barssince(o2 > c2) < ta.barssince(o2 < c2) and o2 > c2

// === STOP LOSS AND TAKE PROFIT LEVELS ===
long_stop_loss = c2 - (c2 * (1 / riskRewardRatio))
long_take_profit = c2 + (c2 * riskRewardRatio)
short_stop_loss = c2 + (c2 * (1 / riskRewardRatio))
short_take_profit = c2 - (c2 * riskRewardRatio)

// === TRADE EXECUTION ===
if go_long and time_cond
    strategy.entry("Long", strategy.long, qty=position_size / close)
    strategy.exit("Long TP/SL", from_entry="Long", stop=long_stop_loss, limit=long_take_profit)

if go_short and time_cond
    strategy.entry("Short", strategy.short, qty=position_size / close)
    strategy.exit("Short TP/SL", from_entry="Short", stop=short_stop_loss, limit=short_take_profit)

// === ALERTS ===
if go_long
    alert("Long Entry at price (" + str.tostring(close) + ") - R:R: " + riskRewardText, alert.freq_once_per_bar)
if go_short
    alert("Short Entry at price (" + str.tostring(close) + ") - R:R: " + riskRewardText, alert.freq_once_per_bar)


I would like to have manual change options:

all the assignment and settings change options that the strategy has in the trading view, so I can test in the MQL 5 strategy tester which are manual change options:

(all that are inside the strategy with change options)

!!! I will attach pictures to visualize all the options for change (some pictures do not show all, so there will be two different pictures on the same page...

The strategy will be used for trading on a one-minute chart of Bitcoin (and not only) and has been tested in Trading View on a one-minute chart of Bitcoin with the following parameters:initial capital 1000 euros, leverage 100, single amount for entering a deal 100 euros, R:R 2:1, maximum use of all capital of the following 30% and gives results: 50% success rate and profit coefficient over 1.5

...therefore it is desirable that it be tested first by you in Trading View with these parameters !!!

(I have also added pictures and there you can also see the settings with which the strategy was tested)

to make it clearer what result I want to create in MetaTrader 5...


The results of the backtest in MetaTrader 5 will show the level of identity of the strategy in MT5


Han respondido

1
Desarrollador 1
Evaluación
(5)
Proyectos
7
0%
Arbitraje
4
25% / 75%
Caducado
0
Libre
2
Desarrollador 2
Evaluación
(3)
Proyectos
1
0%
Arbitraje
3
0% / 67%
Caducado
0
Trabaja
3
Desarrollador 3
Evaluación
(15)
Proyectos
33
24%
Arbitraje
3
0% / 33%
Caducado
1
3%
Trabaja
4
Desarrollador 4
Evaluación
(564)
Proyectos
933
47%
Arbitraje
302
59% / 25%
Caducado
125
13%
Trabaja
5
Desarrollador 5
Evaluación
(281)
Proyectos
454
39%
Arbitraje
93
42% / 18%
Caducado
73
16%
Ocupado
Ha publicado: 2 ejemplos
6
Desarrollador 6
Evaluación
(270)
Proyectos
548
49%
Arbitraje
55
40% / 36%
Caducado
226
41%
Trabaja
Solicitudes similares
Hello experts, I’m looking for a professional and experienced developer to assist with a project involving the conversion of an existing MQL4 indicator to Pine Script (TradingView). The goal is to replicate the full functionality of the indicator accurately in Pine Script, ensuring that all the signals, logic, and features work seamlessly on TradingView. Clean, optimized code and proper testing are essential
I need a professional developer who we can work on my current project and other project i have in Que. Hello I need exactly that! Already have a mt5 strategy…. I need to convert the same to ninja and TradeLocker let me know price timing and what you need. I need it Asap
I have my own renko chart. When the first block closes above RSi level (X) I want to buy then when the first block closes below rsi level (x) I want the trade to close and a sell to open. When the first block closes below rsi level (x) i want the ea to sell and not close until the first block closes above rsi level (x) then a buy should open If there is a loss, 2 trades should be taken at the same time. A regular
Good day, Im looking for someone who can convert my MQ4 indicator to MQ5. Add some buffers and variables into it that i can use to declare sooner. Attached is the specifications I need. Codes will be sent after accepting the job. If you do not want this, kindly do not bother to message on this job
Good day, Im looking for someone who can convert my MQ4 indicator to MQ5. Add some buffers and variables into it that i can use to declare sooner. I also want someone who can explain to me the codes i am confused on
I have a pine script that I am running on TradingView. I have used the crosstrade software to automatically take the trades on my ninjatrader. The execution delay is making things super difficult. Also, the strategy is taking multiple positions when it hits the entry price twice on the same bar. I’d like to have only one position open each time it hits the entry price on one bar. Can anyone convert my pinescript into
Zigzag 30+ USD
المؤشرات على معالجة مخططات الأسعار أو تسلسلات الأسعار. والغرض من هذه المعالجة هو توفير أداة تحليل فني مرئية. لذلك، عند طلب مؤشر، عليك تقديم إجابات لبعض الأسئلة، مما يساعد المبرمج على
Hello I need exactly that! Already have a mt5 Indicator strategy…. I need to convert the same Indicator to ninja and TradeLocker let me know price timing and what you need Let me know if you can work on this
hello great developer i just want a conversation,I am simply trying to get it work in ninjatrader the same as it would in tradingview just to Simple, Maintain indicator's core functionality and accuracy Clear communication throughout conversion Testing, validation, and one revision included we can start as long as you can maintain indicator's core functionality and accuracy any small changes in visuals can be worked
Hello I need exactly that! Already have a mt5 strategy…. I need to convert the same to ninja and TradeLocker let me know price timing and what you need Let me know if you can work on this

Información sobre el proyecto

Presupuesto
100 - 1000 USD
IVA (21%): 21 - 210 USD
Total: 121 - 1210 USD
Para el ejecutor
90 - 900 USD
Plazo límite de ejecución
de 1 a 10 día(s)

Cliente

Encargos realizados3
Número de arbitrajes0