Open Buy when bar closes lower, Open Sell when bar closes higher

MQL4 Эксперты

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

Время выполнения 4 дня
Отзыв от заказчика
The programmer communicated very well, asked questions and worked with me to make sure he understood what I wanted; and delivered the EA in a professional, courteous and timely manner. Thank you.
Отзыв от исполнителя
A good customer who helped with the job and nicely answered my questions. Gently cooperated with the process. Happy trading buddy.

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

Need a simple EA to Open a Buy order at the start of a new bar if the previous bar closes down.  Open a Sell order if the previous bar closes up.


I'd like to automate a simple counter-trend EA to do the following.

1.  Open a Buy order IF the Previous bar Opens above X.XXXX (price set via input) and Previous bar closes lower.

2.  Open a Sell Order IF the Previous bar Opens below X.XXXX (Price set via input) and Previous bar closes higher.

I'll manager close orders manually.

There is only two Inputs:

Price Level: 1.10900 (example)

Lots: .20 (example)


The order would execute on the first tick of each new bar.  Multiple order could be open.   I'll only be running this on one chart, so no magic number is required for me, unless programming requires it.

Example using above Input samples.

If the previous candle opened at 1.1120 (which is above the Price Level input), and the candle closes at 1.1105 (which would be a down candle), a BUY order for .20 lots would be open.   If the candle would have closed at 1.1125 (an up candle), then no action is taken.  Only buys on down candles.

If the previous candle opened at 1.1070 (which is below the Price Level input), and the candle closes at 1.1095 (an up candle), a SELL order for .20 lots would be opened.  If the candle would have closed at 1.1060 (a down candle), no action would be taken. Only sells on up candles.


It would need to check for currently open orders and only allow trades in the same direction as any open orders.  Only buy when there are 0 orders, or there are currently open buy positions.  Same for sell orders, only sell when no open orders, or currently open sell positions.


I think that covers it clearly, but if you need clarification, please let me know.

Needs to operate on 5 decimal broker.  Open code for editing.





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

1
Разработчик 1
Оценка
(627)
Проекты
989
47%
Арбитраж
33
36% / 36%
Просрочено
98
10%
Работает
Опубликовал: 6 примеров
2
Разработчик 2
Оценка
(772)
Проекты
1039
44%
Арбитраж
50
8% / 50%
Просрочено
116
11%
Свободен
3
Разработчик 3
Оценка
(4)
Проекты
6
33%
Арбитраж
3
0% / 100%
Просрочено
0
Свободен
4
Разработчик 4
Оценка
(2317)
Проекты
2916
63%
Арбитраж
124
44% / 25%
Просрочено
429
15%
Работает
5
Разработчик 5
Оценка
(4)
Проекты
5
0%
Арбитраж
2
0% / 100%
Просрочено
0
Свободен
6
Разработчик 6
Оценка
(71)
Проекты
103
20%
Арбитраж
6
0% / 83%
Просрочено
3
3%
Свободен
Похожие заказы
Criei um Robô para a venda alta precisão que automatiza a estratégia de correção média de Larry Williams. Possui filtros de tendência seletiva, controle de lote por risco percentual e execução rápida. Compatível com contas Hedge e Netting. Configuração simples e otimizada para mercados de alta volatilidade. *55(16) 993786056
SMC ORDER BLOCK 30 - 60 USD
I want already build FULLY AUTOMATED order block MT5 XAUUSD HTF H4 ENTRY LTF M15 - Show result on live account. m15 ob entry in the direction of h4 ob bias the developper to provide source code in the end
I need an MT5 Expert Advisor built as a high-precision volumizer for Forex. Its core purpose is to generate controlled trading volume for rebates, while still maintaining low-risk account growth. I am not looking for aggressive profit chasing. I am looking for a stable, intelligent EA that can produce volume in a disciplined way without damaging the account. The ideal system should trade major currency pairs, avoid
1. IF price forms: - Higher highs + higher lows → TREND = BUY - Lower highs + lower lows → TREND = SELL ELSE → NO TRADE 2. IF: - Trend = BUY - Price retraces to support zone - Bullish engulfing candle forms - TDI green crosses above red (optional) THEN: - Execute BUY 3. IF: - Trend = SELL - Price retraces to resistance - Bearish engulfing forms - TDI confirms THEN: - Execute SELL 4. Risk per trade = 1% of account Lot
I need a high frequency trading robot for gold in one or 5 minute timeframe the robot should have spread filter where it should only open trades below a set spread should have news filter to allow trading during fundal news or not the robot should have input in number of minutes to close all open trades and remove pending orders before fundamental news as part of news filter. It should also have the number of minutes
Hello! I want to programm EA that uses volume profile indicator, but I am not sure if this is possible. Only experienced programmers please, I will not select a programmer who did only few jobs. Before starting I need to make sure you understand everything and that this is for sure technically possible
Hello, I am looking for a professional trading system including: 1- Trading Bot (Expert Advisor): - Good profit performance - High security and strong risk management - Works efficiently during high market volatility (news and strong movements) - Works on all pairs (Forex + Gold) 2- Signal Indicator: - Provides clear Buy and Sell signals - Includes Take Profit and Stop Loss - No repaint (signals must not change or
Hi, I’m looking for a top-tier, profit-optimized EA that has the potential to scale trading returns significantly. My goal is to maximize growth over time. Can you help develop a bespoke EA that could potentially scale to high six or seven figures
Max amount grid 30+ USD
max amount grid step for magic number do keep deleting .only when it is in negative floating .but when it is profit allow to go over the max and replays to grid step

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

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