Translate a short strategy from Thinkscript (programming language from the Thinkorswim platform) to create a trading robot on MQL5

Trabajo finalizado

Plazo de ejecución 3 días
Comentario del Ejecutor
Perfect client. His understanding is very quite good. I want to work with him again
Comentario del Cliente
He worked hard to develop what I needed. Very helpful.

Tarea técnica

Hi,

I am looking for someone who can translate this Thinkscript strategy and turn it into a Metatrader 5 (MQL5) trading robot for auto trading.

The script is pretty short:

def bullishreversalcandlebody = close - open;
def bearishreversalcandlebody = open - close;

def atravg_slow = average (atr (), length = 35);

def upsignal = bullishreversalcandlebody is greater than ATR (14) * 0.5 and open <= SimpleMovingAvg(length = 12) and bullishreversalcandlebody >= (high - low) * 0.3 and close <= SimpleMovingAvg(length = 21) and low <= low(period = AggregationPeriod.DAY)* 0.5 and atr () >= atravg_slow * 0.5;

def downsignal = bearishreversalcandlebody is greater than ATR (14) * 0.4 and open >= SimpleMovingAvg(length = 12) and bearishreversalcandlebody >= (high - low) * 0.4 and close >= SimpleMovingAvg(length = 48) and high >= high(period = AggregationPeriod.DAY)* 0.5 and atr () <= atravg_slow * 0.8;


def buysignal = upsignal;

def long_takeprofit_signal = entryprice () + (atr ()* 1.0) <= close;
def long_stoploss_signal = entryprice () - (atr ()* 1.87) >= low;


def sellsignal = downsignal ;

def short_takeprofit_signal = entryprice () - (atr ()* 1.0)>= close;
def short_stoploss_signal = entryprice () + (atr ()* 1.87) <= high;


AddOrder(OrderType.BUY_TO_OPEN, buysignal, tickColor = Color.BLACK, arrowColor = Color.BLACK, price = close, name = "Open Long");

AddOrder(type = OrderType.SELL_TO_CLOSE, condition = long_takeprofit_signal, tickColor = Color.GREEN, arrowColor = Color.GREEN, price = close, name = "Take profit Long");

AddOrder(type = OrderType.SELL_TO_CLOSE, condition = long_stoploss_signal, tickColor = Color.RED, arrowColor = Color.RED, price = close, name = "Stop loss Long");


AddOrder(OrderType.SELL_TO_OPEN, sellsignal, tickColor = Color.BLACK, arrowColor = Color.BLACK, price = close, name = "Open Short");

AddOrder(type = OrderType.BUY_TO_CLOSE, condition = short_takeprofit_signal, tickColor = Color.GREEN, arrowColor = Color.GREEN, price = close, name = "Take profit Short");

AddOrder(type = OrderType.BUY_TO_CLOSE, condition = short_stoploss_signal, tickColor = Color.RED, arrowColor = Color.RED, price = close, name = "Stop loss Short");

Money management settings:

The stop loss and take profit parameters are in the script.

Lot size: The robot should risk 10% (this should be customizable) of the account's equity per trade.
Maximum positions open at the same time = 4 (this should be customizable).


Apart from being used by the robot for auto trading, I should be able to see the signals plotted on the MT5 chart. They should be plotted as described in the script (with arrows and labels).


The default time frame for the robot is 5m but this should be customizable.

Han respondido

1
Desarrollador 1
Evaluación
(364)
Proyectos
507
40%
Arbitraje
147
18% / 72%
Caducado
99
20%
Trabajando
2
Desarrollador 2
Evaluación
(27)
Proyectos
43
7%
Arbitraje
18
6% / 78%
Caducado
26
60%
Libre
3
Desarrollador 3
Evaluación
(38)
Proyectos
50
10%
Arbitraje
1
0% / 0%
Caducado
8
16%
Libre
Solicitudes similares
I have a trading bot on MT5 platform that enters the market against the trend and averages positions using a Martingale system (a grid trader) until the price eventually reverses in its favor. This leads to a dangerous possibility of losing the entire deposit during sharp and prolonged price moves, since the bot does not use stop-losses and fully relies on a timely price reversal. A protection mechanism must be
I’m looking for a skilled MQL5 developer to build a complete Expert Advisor (EA) from scratch in MetaTrader 5. The strategy is a time-based liquidity sweep on the M5 chart, designed for futures instruments like ES and CL on AMP Futures (CQG). 📌 Strategy Overview: Sweep Phase: During a configurable time window, the EA should track the highest and lowest candle bodies (open/close, not wicks). Entry Phase: In a
Hello, I want to create an MT4 indicator identical to the one shown in the attached image. What I need: – Red arrows = sell signals at reversal zones – Green arrows = buy signals at reversal zones – Arrows appearing at candle closes for confirmation – It should work best on Forex and cryptocurrency pairs on the M1 timeframe. – A high win rate (90% or more). – There should be no repainting or other fraudulent
I need an expert who can turn the following strategy into metatrader 5 bot and also pinescript strategy for tradingview? If so, I will have to double-check if tweaks are needed and also how long would it take you and how much would you charge? Thanks
Hello, I want to create an MT4 indicator identical to the one shown in the attached image. What I need: – Red arrows = sell signals at reversal zones – Green arrows = buy signals at reversal zones – Arrows appearing at candle closes for confirmation – It should work best on Forex and cryptocurrency pairs on the M1 timeframe. – A high win rate (90% or more). – There should be no repainting or other fraudulent
Hello my name is Ayofe . Can you help set my parameters in the Input Parameters of ForexSignalClient.ex4 file which I already have ? So I had another person set this up . I subscribe and have two signal providers 1) provides forex signals and 2) provides Gold XAUUSD . When we receive signals they have the SL and 3 TP levels for each single . This person has not set up this correctly and I need to set up properly
Hi 50 USD
I need a robot that can trade auto for me, set sl and to and be able to fund account to allow robot to run freely. Smal budget of 50 dollars to complete
Hi All Developer! I need EA Like Beatrix Investor MT5 from MQL Market I already buy this EA but I want modification if you can build like that, contact me. and show me. if you can, send me .ex5 file to test it and see the result if your ea perfect like what I want, I will increase price
Need an expert coder to convert my tradingview pine script to mt5 indicator for me, the indicator is very simple I need you to go through it very well before sending message, make very sure you can do it
I need a developer that is skilled in tradingview ( pinescript) and ninjatrader ( ninjascript ) I have an indicator in tradingview so i just want to convert it to ninjatrader while it maintains it functionality as an indicator. That's all Please if you are competent enough, contact me and let's discuss further

Información sobre el proyecto

Presupuesto
30 - 50 USD
Para el ejecutor
27 - 45 USD
Plazo límite de ejecución
de 1 a 5 día(s)