Green & red candles routine

MQL5 Asesores Expertos

Trabajo finalizado

Plazo de ejecución 36 minutos

Tarea técnica

Hi.

I want a routine to calculate the below :

Find the two last candles and :

 if candles are green, then take highest price (high1) and lowest price (low1) of two last green candles

  if candles are red, then take lowest price(high2) and highest price (low2) of two last red candles

It doesn't necessary the green or red candles to be continuesly(only to be last red or green candles) 

Han respondido

1
Desarrollador 1
Evaluación
(258)
Proyectos
269
29%
Arbitraje
2
50% / 0%
Caducado
3
1%
Trabaja
Ha publicado: 2 ejemplos
2
Desarrollador 2
Evaluación
(807)
Proyectos
1127
43%
Arbitraje
47
49% / 23%
Caducado
84
7%
Libre
3
Desarrollador 3
Evaluación
(44)
Proyectos
60
5%
Arbitraje
6
0% / 67%
Caducado
5
8%
Libre
4
Desarrollador 4
Evaluación
(5)
Proyectos
6
17%
Arbitraje
2
0% / 100%
Caducado
0
Libre
5
Desarrollador 5
Evaluación
(319)
Proyectos
574
35%
Arbitraje
83
31% / 45%
Caducado
207
36%
Libre
6
Desarrollador 6
Evaluación
(152)
Proyectos
228
80%
Arbitraje
22
27% / 50%
Caducado
11
5%
Libre
Ha publicado: 24 artículos, 1882 ejemplos
7
Desarrollador 7
Evaluación
Proyectos
1
0%
Arbitraje
3
0% / 100%
Caducado
1
100%
Libre
8
Desarrollador 8
Evaluación
(162)
Proyectos
289
35%
Arbitraje
18
22% / 61%
Caducado
43
15%
Libre
9
Desarrollador 9
Evaluación
(206)
Proyectos
333
35%
Arbitraje
66
12% / 58%
Caducado
87
26%
Libre
10
Desarrollador 10
Evaluación
(631)
Proyectos
709
42%
Arbitraje
2
100% / 0%
Caducado
1
0%
Libre
Ha publicado: 9 ejemplos
11
Desarrollador 11
Evaluación
(618)
Proyectos
1429
59%
Arbitraje
31
81% / 0%
Caducado
10
1%
Libre
12
Desarrollador 12
Evaluación
(568)
Proyectos
641
41%
Arbitraje
25
48% / 36%
Caducado
46
7%
Trabaja
Solicitudes similares
I need a robot that will grow small accounts to bigger amounts like this one in this link, https://youtu.be/d38pMbJihew?si=3NeIOVyrlwDr4X_o. Please click the link and watch how this EA grow small accounts. Then create a robot like that. I will test it on demo first then if it does what i want, i will take it. Please it must be simply to use. It must set targets, for example, once it reaches $500 profit, it must
Looking for a Pre-Built Gold Trading Bot (MQL5 / MT5) I am looking for an existing, ready-made Gold (XAUUSD) trading bot for MT5 with Stop Loss (SL) and Take Profit (TP). If you have a pre-built EA, please share: Trading strategy and entry/exit logic. SL, TP, and risk management features. Backtesting results and verified trading history, if available. Price and source code availability. Existing bots are welcome
I am looking for an experienced MQL5 Expert Advisor (EA) developer to analyze an existing trading setup and develop a similar automated trading robot. Project Overview I have access to a demo trading account where trades are being executed automatically. The trading results look very promising, but I do not know exactly what strategy, logic, indicators, or trade-management rules are being used. I will provide access
Espert 30+ USD
I want to create a robot with 10 indicators.All to take a trade and all in stop folowing. Thanks to put in THE PARAMETERS Yes/No for the indicators to entry in position AND to the stop A trade with 2 takes profit and a breakeaven at the first TP. The goal is to be able to try the multiple combinations with these indicators
Staddle 30+ USD
10 * 0.01, 10 * 0.03, 10 * 0.05. Place a limit order one dollar above the market price, a sell-side limit order below the market price, and a trailing stop loss. The goal is to safely book profits incrementally as the market moves." ulti-tiered lot sizing (0.01, 0.03, 0.05 scaled across 10 levels). Place a buy/sell limit order at a $1 offset from the current market price along with a trailing stop loss to secure and
Hello International Developer, I need LIFETIME MT5 EA for XAUUSD Gold. REQUIREMENTS: 1. Lifetime bot - No expiry date, unlimited accounts, unlimited installations 2. Must include source code .mq5 file - This makes it lifetime 3. Every trade MUST have Stop Loss 300 points and Take Profit 600 points 4. No martingale, No grid, No averaging - Clean safe strategy 5. Auto lot size = 1% risk per trade for good margin growth
Expert advisor 150+ USD
Hiring: Forex Strategist & MQL5 Developer for Long-Term EA Development I am looking for an experienced Forex Strategist and MT5 (MQL5) Developer to work with me on an ongoing project to develop, test, improve, and optimize a profitable Forex Expert Advisor (EA). My Message to the Developer My budget is $150 . However, this is not intended to be a one-time payment for a finished product. I want an ongoing working
I am looking for an experienced MQL5 developer who is also a knowledgeable trader to analyze, test, and improve my existing Expert Advisor (EA) on MetaTrader 5. My EA is already well developed and has its core trading logic in place. I am not looking to build a new bot from scratch. The main objective is to identify what is preventing the EA from being consistently profitable and make carefully considered
فيما يخص المتداولين من سلطان التداول وحتى المبتدى والضائع في أكبر سوق عالمي في التداول ااوكد لكم ان الاستشاره البسيطه من من يملك الاستراتيجيه المثلى في التداول والخبره الطويله في مجال التداول قد تغير مستقبلك
i need an expert to develop Bot TO trade using MT5 with a profitable strategy ... work daily with good indicators the price will be negotiable will try the bot first after we can decide

Información sobre el proyecto

Presupuesto
30+ USD
Plazo límite de ejecución
de 1 a 2 día(s)