Trading robot in MQL4 based on Open & Close and some other pretty basic factors.

MQL4 Эксперты Forex

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

Время выполнения 2 дня
Отзыв от заказчика
Very pleasant experience; work was done exactly according to specifications. Had to negotiate for a couple of changes to my specification, and this was a very smooth and reasonable process.
Отзыв от исполнителя
100% idea customer. thank you so much.

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

1) Idea

Based on all of the most recent x (e.g. 30) number of bars, (x = input variable)

Calculate at start of each bar:

 MaxOpenClose = the maximum of ( maximum of Open, maximum of Close) of all of most recent x bars 

 MinOpenClose =  the minimum of ( minimum of Open, minimum of Close)  of all of most recent x bars

 Level_1 = ( MaxOpenClose - MinOpenClose ) *  Ratio_1            

 Level_2 =   ( MaxOpenClose - MinOpenClose ) *  Ratio_2           

LevelCounter_1 = Number of times, in the most recent x number of bars, the High was >= Level_1 

LevelCounter_2 = Number of times, in the most recent x number of bars, the Low was <= Level_2

Trading is done based on the ratio of  LevelCounter_1 and  LevelCounter_2


LevelCounter_1  and LevelCounter_2 will always be >=  0 and <= x 

Output all these values to the journal window with each bar.

"most recent" excludes the current "in progress" bar


2) Trading signals:

if   LevelCounter_1 >  LevelCounter_2 ; buy signal

if   LevelCounter_1  <=  LevelCounter_2 ; sell signal


3) Positions are opened at the market price; subject to that there are no more open positions as specified by the   MaxOpenBuyOrders  input parameter for Buys 

and  MaxOpenSellOrders  for sell orders.

A buy position is opened if   LevelCounter_1 >  LevelCounter_2 for lot size =   LotSize (  LotSize = input parameter)

A sell position is opened if   LevelCounter_1  <  LevelCounter_2  for lot size =   LotSize (  LotSize = input parameter)


If the order cannot be executed successfully for whatever reason, try again in each tick, for the next 10 ticks, to do again.


4) Additional filter for position opened

Minimum average volume of last x number of bars >= MinAvgVolumeToOpen  (input parameter)


5) Positions are closed when

a)  StopLoss (input parameter) is reached.

or b) ProfitTarget (input parameter) is reached.


6) Position management

TrailingStop is used; while the price move in the profit direction, the stop loss should trail at the StopLoss (input parameter) value.

The Stop Loss is never moved towards the loss direction. 





The robot should work on any forex pair, any time frame.


Inputs:

 x                      // Number of most recent bars to take into consideration,e.g. 10

Ratio_1            // Used in calculation

Ratio_2           // Used in calculation 

MaxOpenBuyOrders  // e.g.  5

MaxOpenSellOrders  // e.g.  5

LotSize    //  e.g.  0.01

StopLoss // e.g.  30 

ProfitTarget // e.g.  100

MinAvgVolumeToOpen // e.g.  40


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

1
Разработчик 1
Оценка
(68)
Проекты
127
41%
Арбитраж
19
47% / 53%
Просрочено
33
26%
Свободен
2
Разработчик 2
Оценка
(65)
Проекты
71
30%
Арбитраж
8
0% / 88%
Просрочено
5
7%
Свободен
3
Разработчик 3
Оценка
(169)
Проекты
204
30%
Арбитраж
25
40% / 44%
Просрочено
12
6%
Свободен
4
Разработчик 4
Оценка
(19)
Проекты
35
26%
Арбитраж
10
30% / 70%
Просрочено
5
14%
Свободен
Похожие заказы
Experienced Trading Software Developer Needed – Multi-Platform Development Hello! I'm looking for an experienced developer to create a custom trading indicator and convert it into an automated trading bot for the following platforms: MT5 NinjaTrader 8 Quantower cTrader The plan is to develop the same indicator and trading bot for all four platforms, one after another. Project requirements: Custom trading indicator
un écosystème logiciel asynchrone multi-comptes dopé par un module de supervision par Intelligence Artificielle (Guardian AI). La solution assure le pilotage automatisé, le filtrage de marché en temps réel et le contrôle des risques pour 20+ comptes MetaTrader 4/5 (via MetaApi) et Deriv sur VPS Equinix NY4. vous aurez plus de detail dans les échanges
Hello, I need an MQL5 Expert Advisor for MetaTrader 5. STRATEGY: Pair: XAUUSD / EURUSD Timeframe: M5 and M15 (selectable) 1. Wait for a strong rejection wick at Support / Resistance or Supply / Demand zone. 2. Wait for a Fair Value Gap (FVG) in the same direction. 3. Enter on FVG retest with confirmation candle close. 4. Only 1 trade at a time, no martingale, no grid. RISK MANAGEMENT: - Lot: Fixed lot or % Risk
We’re building our team for an upcoming crypto project and are looking for skilled professionals to help us move development forward. We’re especially interested in developers experienced with React.js and Node.js, with Web3 knowledge being a strong advantage. We plan to launch the MVP by the mid of Dec and complete the project by Christmas. Our budget is $20–$30 per hour, depending on experience and skill level
Metafix 50 - 200 USD
Here is a professional specification you can send directly to your developer. # Project Requirements Specification: MetaTrader 5 Trading Robot Development ### 1. Project Overview I want to develop an automated Forex trading robot (Expert Advisor) for MetaTrader 5 (MT5). The robot should analyse the financial markets, identify trading opportunities, and execute trades automatically based on predefined strategies. ###
1. Platform: MT4 The EA required is not linked, neither depending on trading strategy nor trading signals nor indicators. 2. Initial order is a pending order (buy stop/ sell stop) and it is created manually. It is open for a specified symbol (pair) at a specified price with a specified S/L 3. Example: buy stop 0.1 lot GBPUSD @ 1.3085 WITH S/L @1.3075 Once target price is reached, pending order will
Overview: Build an MT5 Expert Advisor that receives webhook alerts from TradingView (RayAlgo indicator) across three timeframes ( H1, M5, M1 ) for XAUUSD and executes a dual-position strategy when all three conditions align, including strict FTMO server-request limits and automated pre-market-close trade closures. 1. Webhook Receiver & Multi-Timeframe State Logic: H1 Bias State: Updates to BULLISH or BEARISH upon
I am looking for an experienced trading software developer interested in building a long-term working relationship. Im a professional Trader, Coach and Mentor, I work with traders and Student who require customized trading solutions, including automated trading bots, Expert Advisors, custom indicators, trading strategies and other algorithmic trading tools. I am looking for a technically skilled developer who can
Salman serhal 30 - 100 USD
MT5 ICT XAUUSD Sell-Only Trading Robot with Fibonacci Confirmation I am looking for an experienced MQL5 developer to create a custom Expert Advisor (EA) for MetaTrader 5, specifically for trading Gold (XAUUSD). 1. Trading Strategy The robot must use the ICT trading methodology and focus on SELL trades only. The strategy should include: * Identify important resistance and premium zones. * Use Fibonacci retracement
Objective: I am looking for an experienced MQL5 quantitative developer to code an Expert Advisor (EA) from scratch based on a fully defined, rule-based strategy, and then rigorously validate, optimize, and stress-test it before I deploy it on a live VPS environment. Note: The exact mathematical rules, indicator names, and chart screenshots will be shared privately with shortlisted candidates. Strategy Overview

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

Бюджет
40+ USD
Сроки выполнения
до 2 дн.