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

工作已完成

执行时间3 天
员工反馈
Perfect client. His understanding is very quite good. I want to work with him again
客户反馈
He worked hard to develop what I needed. Very helpful.

指定

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.

反馈

1
开发者 1
等级
(362)
项目
504
40%
仲裁
147
18% / 72%
逾期
98
19%
繁忙
2
开发者 2
等级
(27)
项目
43
7%
仲裁
18
6% / 78%
逾期
26
60%
空闲
3
开发者 3
等级
(38)
项目
50
10%
仲裁
1
0% / 0%
逾期
8
16%
空闲
相似订单
I want to make a new dashboard using 3 common indicators and the ADX indicator , which you must supply I have a MA dash which you can strip & reuse if it helps you I tried to cover all questions in the attached but i'm sure there'll be more
I want the script in mql5 language for my martingale strategy. The script should open trades in both directions buy and sell and if any trade closes in loss then open new trade in that direction by using the next volume and when trade closes in profit then reset the volume to first from volume list and also maximum consecutive losses limit will apply. If trades closes consecutively in losses and hits the limit then
Long Position 1. Trend Line: When a Lower High (LH) is formed, draw a trend line from the previous Higher High (HH) to the new LH. 2. Trend Line Adjustment: If a new Lower High (LH) is formed without breaking the trend line, redraw the trend line to the new LH. Draw a trend line between the Higher High (HH) and the Higher Low (HL). If a new Higher High (HH) is formed, remove the previous trend line and draw a new one
I have a custom EA that works fine in the live market trading, but when doing a back test in the strategy tester , it does not open sell orders. There are no errors or warnings; it just doesn't open sell orders. I've checked every possible reason that might be the reason why it does not open sell orders, but I can't find anything, especially since it works fine in the real market and it opens both buys and sells
I'm looking for someone to help me create an arbitrage trading robot that can trade on any decentralized exchange and forex market. I already have some source code to a strategy but would like to enhance it to make it profitable and automated
I installed the E.A. into the Experts folder in MT4. When I double click on it nothing happens. When I right click and "attach to chart" nothing happens. The E.A. is not grayed out, it simply will not attach. Any help would be greatly Appreciated
I have an EA and want to add few new logic to fetch profit taking factors and other values from an external master data and use it in existing EA
I need EA that works on MT5 to be able to do the following: - Can recognize Support/Resistance area - Can recognize VWAP direction. - Can recognize RSI. - Can recognize Double Top/bottom, Bullish/Bearish hammer candle, Bullish/bearish engulfing candle. - Ability to set Stoploss below/above support/resistance, but risk must be fixed at a certain price. - Stoploss
I want a program that will help calculate and enter the market on full margin for me. I just need to put in the price for entry, Stop loss and TP then it will calculate the lot sizes for entering the trade on full margin on Mt5
I am seeking a highly skilled and experienced developer to assist with an important project. I need a development of an automated trading bot for NinjaTrader, utilizing a 4 SMA (Simple Moving Average) crossing strategy, with additional custom diversions for trade entries. The bot needs to be based on a strategy involving the crossing of four different SMAs. The exact periods for these SMAs and the conditions for

项目信息

预算
30 - 50 USD
开发人员
27 - 45 USD
截止日期
 1  5 天