ProRealTime to MQL4 easy code

MQL4 Эксперты

Работа завершена

Время выполнения 1 день
Отзыв от заказчика
Top developer! he is very helpful! i appreciated it a lot!
Отзыв от исполнителя
Thank`s a lot

Техническое задание

Hi, i need to translate this easy code from PRT to Mql4


DEFPARAM CumulateOrders = False // Max 1 position open (usually 2 orders when not on market, when on market 1 position and 1 order to close)


TIMEFRAME (2 hour, updateonclose)  // if possible make it variable


mylongentry = low  // if possibile make the number of the candle variable

mylongexit = high[1] // if possibile make the number of the candle variable

myshortentry = high  // if possibile make the number of the candle variable

myshortexit = low[2]  // if possibile make the number of the candle variable


TIMEFRAME (DEFAULT)


stopluca = 100 // extern variable

Mystarttime = 100000  // extern variable

myendtime = 214500  // extern variable

MyendtimeFriday = 224500  // extern variable

Position =  1.00  // extern variable

LucSpread = 20  // extern variable


// condition to operate

c2 = currenttime >= Mystarttime and currenttime =< myendtime and dayofweek <> 5

c4 = currenttime >= Mystarttime and currenttime =< myendtimefriday and dayofweek = 5


// condition for long entry


IF c2 or c4 THEN

BUY position CONTRACT AT mylongentry-LucSpread*pipsize limit

ENDIF


// condition to close long position


if longonmarket then

sell position contract at mylongexit - LucSpread * pipsize limit

elsif longonmarket and dayofweek = 5 and currenttime = myendtimefriday then

sell position contract at market

endif


// condition to enter short


IF c2 or c4 THEN

SELLSHORT position CONTRACT AT myshortentry+LucSpread*pipsize limit

ENDIF


// condition to close short position


if shortonmarket then

exitshort position contract at myshortexit + LucSpread * pipsize limit

elsif shortonmarket and dayofweek = 5 and currenttime = MyendtimeFriday then

exitshort position contract at market

endif


// stop loss 


set stop ploss StopLuca


Откликнулись

1
Разработчик 1
Оценка
(258)
Проекты
419
38%
Арбитраж
86
44% / 19%
Просрочено
70
17%
Занят
Похожие заказы
I want to modify my indicator to make it a scanner so it will be easier and not missed the signal alerted by the indicator for all the available currency no settings will be changed just adding the time frame selection. time frame selection has to have an option to select all timeframe or just the timeframe selected. the job is to make the indicator: 1. make it a scanner (window or table to show all signal produces
I need an expert advisor based on MACD and MA signals. It must have check and handling of trade operations errors. The main criteria for opening and closing positions: ◇Both Main and Signal direction must be shown by Arrows which is going to be for buy and sell positions
Need a programmer 30 - 50 USD
I am seeking an experienced MQL programmer to develop a custom Expert Advisor for MetaTrader 5. The project involves creating a trading strategy that stops trading after 2 consecutive losses until 6 AM the next day. The ideal candidate should have: - Proficiency in MQL5 programming. - Strong understanding of trading strategies and market analysis. - Experience with backtesting and optimizing trading algorithms. If
Trendline expert 40 - 200 USD
My project is to put my strategy on the VCrush indicator. I already have the indicator, I just need to add the entry methods, take and stop rules. There are 5 lines in total, when these lines are aligned, the robot makes the entry. Below are two images of what the buy and sell entries would look like with the lines aligned
Description of the ScriptThis script is designed for MetaTrader 4 (MT4) to execute a Buy order based on a re-entry strategy using the BBMA (Bollinger Bands Moving Average) approach. The main timeframe used is H1 (1-hour), and the script employs the Classic Bullish Engulfing pattern as a validation criterion before placing a Buy order.Key Components of the Script:Input Parameters:Lots: Defines the lot size for the
I need an expert to help me with adding more features to my existing mt4 EA I think the addition I want added to this EA is fairly simple--but I don't really understand how programming works, Contact me for a long term work, This is not the only project, I will explain the features in the inbox, Let me know if you can do it
Expert Advisor para operar no par XAU/USD no gráfico de 30 minutos, com as seguintes especificações: Indicadores : Utilize uma mídia móvel simples (SMA) de 72 períodos. Utilize o indicador Money Flow Index (MFI) com um período de 7. Inclui um indicador para marcar suporte e resistência nas últimas duas semanas no gráfico H4. Critérios de Operação : Venda : Execute uma ordem de venda se o preço se poupar no mínimo 800
EA Robot 30 - 500 USD
I Shawn Mametsa wants to creat a robot that will help a lot of people to make money through trading and become successful through trading I want to help those who want to trade but don’t know how to analyse the market
This is a simple Martingale based EA with RSI indicator used as buy/sell order conditions Mandatory Inputs: extern double TakeProfit = 120.0; // self explanatory for first order, for martingale orders it will adjust TP of all orders of the same type (buy / sell) to one, for example if an order opened at 100, 2nd opens at 105, the both of their tps will be at the same point, if an order is manually closed, it will
I need an expert advisor based on supply and demand zones. The zones should be identified automatically with tweakable parameters, but there should be also an option to input my own zones. I need the EA to have capability of opening market positions as well as pending orders. Other requirements: Martingale News filter Time filter Set expiry to zones, to prevent opening positions when price enters old zones

Информация о проекте

Бюджет
60+ USD
VAT (22%): 13.2 USD
Итого: 73.2 USD
Исполнителю
54 USD
Сроки выполнения
до 1 дн.