Simple MT5 Expert Advisor action based on the previous candle

MQL5 Experts C++ Forex

Job finished

Execution time 3 days
Feedback from customer
Very fast and responsive coder. 5 stars!
Feedback from employee
Dear customer, Thank you for the interesting order! I wish you happiness and good luck!

Specification

Hi,

I would like simple EA- robot for MT5 platform.

 

On the selected time frame and currency pair I would like for the positions to open regarding the last candle. Meaning if the last candle was red, then at the beginning of the new candle we open SELL position and if the candle at the end of the time frame is green, then the buy is executed at the beginning of the new candle at selected time frame.

So in theory if we use robot on H1 time frame of the selected currency pair, robot would open max 24 trade positions in a day.

 

Opened position is closed :

At take profit –OR-

Trailing stop –OR-

Stop loss –OR-

At the end of the traded candle (selected time frame);

 

Double down strategy

If the closed trade was in loss at the closing the next position that opens doubles the size of lots for the next trade. For example we opened sell position (0,01 LOT) and it hit the selected stop loss. Then on the next position opening we would trade with 0,02 LOT and if that lost again we open at next candle 0,04 LOT, and so on until the opening position is a winner and then the new trade will again use the minimum LOT selected in the EA settings.

 

EA settings:

Lot - Fix lot

Double down strategy on/off

Time to Start Hour - Start hour to open trades

Time to Finish Hour - End hour to open trades

Magic - Magic number

Trailing On Off - Trailing stop on/off

Trailing Start - Trailing start in points

Trailing From - Trailing from in points

Trailing Step  - Trailing step in points

TakeProfit - Take Profit in points

StopLoss - Stop Loss in points

 

Please deliver nicely structured and well commented code, as this is first phase of the robot.

 

Supply also the source code.

 

Thank you for your time.


Responded

1
Developer 1
Rating
(162)
Projects
218
30%
Arbitration
4
50% / 25%
Overdue
5
2%
Free
Published: 1 code
2
Developer 2
Rating
(38)
Projects
50
10%
Arbitration
1
0% / 0%
Overdue
8
16%
Free
3
Developer 3
Rating
(2314)
Projects
2914
63%
Arbitration
122
44% / 25%
Overdue
429
15%
Working
4
Developer 4
Rating
(132)
Projects
178
39%
Arbitration
4
25% / 50%
Overdue
14
8%
Free
5
Developer 5
Rating
(1156)
Projects
1462
63%
Arbitration
21
57% / 10%
Overdue
43
3%
Free
6
Developer 6
Rating
(208)
Projects
297
54%
Arbitration
0
Overdue
1
0%
Free
Published: 6 codes
7
Developer 7
Rating
(7)
Projects
12
42%
Arbitration
1
0% / 100%
Overdue
2
17%
Free
8
Developer 8
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
9
Developer 9
Rating
(137)
Projects
167
35%
Arbitration
11
91% / 0%
Overdue
0
Free
10
Developer 10
Rating
(69)
Projects
146
34%
Arbitration
13
8% / 62%
Overdue
26
18%
Free
Published: 6 codes
11
Developer 11
Rating
(87)
Projects
114
26%
Arbitration
7
29% / 57%
Overdue
5
4%
Free
Similar orders
I am looking for an experienced MQL5 developer to improve an existing forex EA, not build a completely new robot from zero. Important note: I use GPT to help me write because my English is limited. The wording may be assisted by GPT, but the trading issues, testing observations, and improvement goals are real from my side. I need a developer who is patient, understands strategy logic well, and can explain the
Fair Value Gap Expert , Optimize the core logic for live chart . [Filters are working] Lets ace the trailing stop . Change points to pip . Project will start from next week
==== GENERAL SETTINGS ==== Buy trades = true Sell trades = true Upper Band period = 20 Lower Band period = 10 Timeframe = 1 Hour Next signal bars= 5 Order Comment = Donchian Channel EA Magic number = 123 Maximum allowed spread = 20 Maximum allowed slippage = 20 ====TRADE SETTINGS ==== Trade volume = VOLUME_FIXED / VOLUME_PERCENT Fixed Lots = 0.01 Risk percent of Balance = 5 TP Points (0 to No TP) = 100 SL Points (0
I hope to acquire a profitable and existing expert advisor (EA) from the gold market, with complete source code, to add to our client portfolio. you can WECHAT: Faca7898 Please note EA when adding friends. It should be clarified that this does not require you to formulate or design new strategies. If you already have a verified, consistent, and production-ready EA, I am willing to purchase it immediately and engage
I’m looking for an experienced developer to help build a trading bot for Polymarket , focused on short-term crypto prediction markets (e.g. 5–15 minute intervals). The strategy is fully rule-based and operates on binary outcome markets (YES/NO shares). The bot should be able to: monitor live market prices and probabilities, execute trades based on predefined conditions, manage positions dynamically before market
Eu preciso disso. A linha central do TMA (17,5,1.5) será a principal referência. Outra linha de média móvel (AVG) de 3 períodos decrescentes 2. As ordens serão as seguintes: abaixo, somente compra de TMA; acima, somente venda de TMA. O sinal de entrada será o seguinte: se o preço estiver acima da Média Móvel Tarifária (TMA), será apenas para venda; quando o preço se mantiver abaixo da Média Móvel Tarifária (AVG)
Hola, estoy buscando un desarrollador MQL5 con experiencia real en trading algorítmico. Necesito un EA para XAUUSD con: Control de Drawdown filtro de mercado (tendencia vs rango) gestión de riesgo dinámica optimización para sesiones específicas Antes de avanzar quisiera saber: ¿Qué experiencia tienes con EAs en MT5? ¿Has trabajado con estrategias de oro (XAUUSD)? ¿Cómo gestionas el drawdown en un bot? ¿Puedes mostrar
Double ma 30+ USD
Create an EA on moving averages. The EA will open a trade when the price is above the averages. It will open another when it is below the averages. Ability to work on any timeframe. Ability to use a news filter and a martingale...or to work on a grid
There is a programming god without EA here. I want to find someone to make an EA to operate gold and silver. There is a model, but it can't run. So I want to find someone to make professional improvements to make my EA run. If you are interested, you can WECHAT: 15113958263. Please note EA when adding friends
Iam seeking for a good trade robot/indicator debugging developer to finalize and close profits for me,in both my exneas blocker and MT5,for expert advisor for trading both gold xausd and sliver xagusd,l really want a perfect robot that can herence and risk management principles,not to leave out am a beginner

Project information

Budget
30+ USD
Deadline
from 3 to 10 day(s)