Green & red candles routine

MQL5 Experts

Job finished

Execution time 36 minutes

Specification

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) 

Responded

1
Developer 1
Rating
(196)
Projects
200
28%
Arbitration
0
Overdue
3
2%
Working
2
Developer 2
Rating
(721)
Projects
1040
39%
Arbitration
47
49% / 23%
Overdue
84
8%
Free
3
Developer 3
Rating
(41)
Projects
54
4%
Arbitration
5
0% / 60%
Overdue
4
7%
Free
4
Developer 4
Rating
(5)
Projects
6
17%
Arbitration
2
0% / 100%
Overdue
0
Free
5
Developer 5
Rating
(236)
Projects
418
34%
Arbitration
53
36% / 40%
Overdue
153
37%
Busy
6
Developer 6
Rating
(140)
Projects
203
80%
Arbitration
17
29% / 47%
Overdue
10
5%
Working
7
Developer 7
Rating
Projects
1
0%
Arbitration
3
0% / 100%
Overdue
1
100%
Free
8
Developer 8
Rating
(143)
Projects
255
35%
Arbitration
12
25% / 58%
Overdue
42
16%
Free
9
Developer 9
Rating
(196)
Projects
318
35%
Arbitration
64
13% / 56%
Overdue
82
26%
Free
10
Developer 10
Rating
(328)
Projects
387
33%
Arbitration
2
100% / 0%
Overdue
0
Working
11
Developer 11
Rating
(548)
Projects
1330
59%
Arbitration
28
82% / 0%
Overdue
10
1%
Free
12
Developer 12
Rating
(568)
Projects
641
41%
Arbitration
21
57% / 29%
Overdue
47
7%
Working
Similar orders
I installed the E.A. into the Experts folder in MT4. When I double click on it nothing happens. When I right click and "attach to chart" nothing happens. The E.A. is not grayed out, it simply will not attach. Any help would be greatly Appreciated
I have an EA and want to add few new logic to fetch profit taking factors and other values from an external master data and use it in existing EA
Hello Every one, Good day, I want from someone professional to create an EA is working on Mt5, This EA is working by depend on some indicators, and all those indicators must be working on MACD window, not on the chart, for more details please read my attached pdf file carefully. Many Thanks
I'm looking for an expert MQL5 developer that can create an EA that's based on my price action trading strategy with no indicators. The EA must analyze trades based on my price action rules, enter trades based on my price action rules, manage trades based on my price action rules and exit trades based on my price action rules
hi hi there i have an strategy on tradingview and i want to automate it like metatrader EA so i want the strategy to open and close trade automaticlly on tradingview
We are looking for an experienced Expert Advisor Developer who can build a customized MT5 Expert Advisor for us. The Expert Advisor would use two built-in indicators as entry/exit signals and our own risk management strategy with customizable inputs. The goal is to create a reliable and efficient trading tool that can automate our trading process on the MT5 platform. Skills required: - Strong understanding of
I need stochastic div (hidden &regular ea) that should perform task in all tf's ..divergence is a repaint stly so i want to use it with candlestick flips .. so bet for it
Hello, I have an indicator from a friend and I'd like to replicate it on my own TradingView or MT5 platform. Could you assist me with that?. Here is the link
so basically I have an EA(mql5), AI script(python), flask server and socket server both on python. Now this is an experimental script as I am trying to learn. However the EA is not entering any trades. How much would it cost for you to troubleshoot this for me? Thank you in advance
NEW FUNCTION 50+ USD
La idea es la siguiente, sería un EA semi automático. Yo como trader opero en zonas. En adelante las vamos a denominar ``zonas calientes´´. El EA debe que necesito debe operar conforme a 4 zonas calientes que yo configure en el mismo. ¿Qué hará el EA en cada una de esas zonas calientes que yo he configurado? En cada una de estas zonas el EA debe realizar hedging (crear un rango en el cual el EA entrara en sell o en

Project information

Budget
30+ USD
VAT (24%): 7.2 USD
Total: 37.2 USD
For the developer
27 USD
Deadline
from 1 to 2 day(s)