Renko ATR Strategy

MQL5 Integrazione In conversione

Specifiche

...!!! 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


Con risposta

1
Sviluppatore 1
Valutazioni
(5)
Progetti
7
0%
Arbitraggio
4
25% / 75%
In ritardo
0
Gratuito
2
Sviluppatore 2
Valutazioni
(3)
Progetti
1
0%
Arbitraggio
3
0% / 67%
In ritardo
0
In elaborazione
3
Sviluppatore 3
Valutazioni
(15)
Progetti
33
24%
Arbitraggio
3
0% / 33%
In ritardo
1
3%
In elaborazione
4
Sviluppatore 4
Valutazioni
(564)
Progetti
933
47%
Arbitraggio
302
59% / 25%
In ritardo
125
13%
In elaborazione
5
Sviluppatore 5
Valutazioni
(280)
Progetti
453
39%
Arbitraggio
92
42% / 18%
In ritardo
73
16%
Occupato
Pubblicati: 2 codici
6
Sviluppatore 6
Valutazioni
(270)
Progetti
548
49%
Arbitraggio
55
40% / 36%
In ritardo
226
41%
In elaborazione
Ordini simili
Hi there, I have a pinescript indicator which I will want it to be converted to MT5 EA to trade on its own Let me know if you can work on this
I am looking for someone who can convert Tradingview indicator to MT5 I will attach the pinescript in the chat box Let me know if you can convert it to mt5
Key levels 30 USD
//+------------------------------------------------------------------+ //| Risk3RR.mq5 | //| Created by OpenAI GPT | //| | //+------------------------------------------------------------------+ #property strict // Input parameters input double Risk_Percent = 1.0; // Risk percentage per trade input int ATR_Period = 14; // ATR
//+------------------------------------------------------------------+ //| Blanc.mq5 | //| Copyright 2018, DNG® | //| http://www.mql5.com/ru/users/dng | //+------------------------------------------------------------------+ #property copyright "Copyright 2018, DNG®" #property link " http://www.mql5.com/ru/users/dng " #property version "1.00" #property indicator_chart_window #property indicator_buffers 1 #property
Trade Assistant MT5 Buy trades when prices fall to gain value at a discount. Sell those trades when prices rise to secure profits. This strategy maximizes returns by leveraging market. 4o
Hello, I am looking for the development of an MT4 Programm (other application would work too, if it is more dynamic) that provides the following information and updates that information continuously. I want the following economic events protrayed by week, day, time and importance. Perhaps even some kind of "volatlity score": Interest Rate Decisions, Jobsreports, Inflation Reports, PMI Reports, Retail Sales, elections
I’m looking for an experienced MQL5 developer to fix a high-frequency trading robot on MetaTrader 5. The script has issues with the Trade\Trade.mqh library (not found) and needs adjustments to become operational. Goals: resolve compilation errors, implement missing functions (e.g., DecideToRelaunch and AdjustRiskParameters ), and validate performance through testing. A temporary OrderSend solution is in place, but
ChatGPT-Integrated MT5 EA for Probability-Based Trade Execution & Live Market Discussion Project Overview This Expert Advisor (EA) does not determine trade signals . Instead, ChatGPT analyzes market conditions, calculates probability-based trade setups, and provides instructions for execution . The EA simply acts as an execution engine, executing trades based on ChatGPT’s signals with an optional manual verification

Informazioni sul progetto

Budget
100 - 1000 USD
IVA (21%): 21 - 210 USD
Totale: 121 - 1210 USD
Per lo sviluppatore
90 - 900 USD
Scadenze
da 1 a 10 giorno(i)

Cliente

Ordini effettuati3
Numero di arbitraggi0