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
(204)
Proyectos
209
28%
Arbitraje
0
Caducado
3
1%
Libre
2
Desarrollador 2
Evaluación
(732)
Proyectos
1053
40%
Arbitraje
47
49% / 23%
Caducado
84
8%
Libre
3
Desarrollador 3
Evaluación
(41)
Proyectos
54
4%
Arbitraje
5
0% / 60%
Caducado
4
7%
Libre
4
Desarrollador 4
Evaluación
(5)
Proyectos
6
17%
Arbitraje
2
0% / 100%
Caducado
0
Libre
5
Desarrollador 5
Evaluación
(248)
Proyectos
444
34%
Arbitraje
56
36% / 38%
Caducado
163
37%
Trabajando
6
Desarrollador 6
Evaluación
(141)
Proyectos
207
80%
Arbitraje
18
33% / 44%
Caducado
10
5%
Trabaja
7
Desarrollador 7
Evaluación
Proyectos
1
0%
Arbitraje
3
0% / 100%
Caducado
1
100%
Libre
8
Desarrollador 8
Evaluación
(145)
Proyectos
258
35%
Arbitraje
12
25% / 58%
Caducado
42
16%
Libre
9
Desarrollador 9
Evaluación
(197)
Proyectos
320
35%
Arbitraje
64
13% / 56%
Caducado
83
26%
Libre
10
Desarrollador 10
Evaluación
(359)
Proyectos
422
35%
Arbitraje
2
100% / 0%
Caducado
0
Trabaja
11
Desarrollador 11
Evaluación
(554)
Proyectos
1342
59%
Arbitraje
28
82% / 0%
Caducado
10
1%
Trabaja
12
Desarrollador 12
Evaluación
(568)
Proyectos
641
41%
Arbitraje
21
57% / 29%
Caducado
47
7%
Trabaja
Solicitudes similares
Zzz 30+ USD
// กำหนดค่าตัวแปรพื้นฐาน input double lotSize = 0.1; // ขนาดล็อตที่ต้องการ input int takeProfit = 50; // ระยะ Take Profit (จุด) input int stopLoss = 50; // ระยะ Stop Loss (จุด) input int magicNumber = 123456; // หมายเลข Magic Number input int smaPeriod = 14; // ช่วงเวลา Simple Moving Average (SMA) // เวลาที่ออเดอร์ล่าสุดถูกเปิด datetime lastOrderTime = 0; // ฟังก์ชั่นหลักของ EA void OnTick() { //
Mobile robot 50 - 100 USD
I want a profitable scalping EA robot for mt5 and mobile phones (licence key should be provided).the video link attached below indicates how the EA robot should operate it.it analyses the market before taking trades and it trades candle to candle .also coding samples are provided on the video .it should be applicable to all timeframes.it should trade indices(Nas100,US30,S&p500,GER30,)
I use the translator I hope to make myself understood. I'm looking for a cyclical indicator. mt5. I attach videos to understand how it works. to be inserted at any point of the graph. It is possible to change the color and thickness of the line
This EA must have the following functions together: BE: place BE when the price reach a certain gain in PIPS and you can choose the offset too, so, for example it activates after 10 pips with 1 pip of offset so you can have profit with BE too Auto SL and TP Can manage the trades made by phone when MT5 is open in the PC or VPS Trailing stop (step by step): I can decide at what number of pips the trailing stop get
This is a strategy based on crossing two trend indicators on the second timeframe (1s, for example). We work not only with the market but with the limit orders as well (robot must "read" an order book). Read the whole instruction please for more details. Speak Russian, English
Martingale EA for MT5 30 - 100 USD
Criteria: Only one trade at a time. Cannot open another trade if one is running Trade on EURUSD only, once job is completed I will be happy to schedule more for other pairs You choose entry strategy and criteria win rate must be above 50% in long term backtest of EURUSD Every trade has got TP and SL Trades to last about a day, few trades a week, at least 10 pips gain per trade, so that it can be launched on normal
I have a indicator, mql file. The signals are seen below on a EURNZD H1 chart. Very important to get accurate entries. The signal to trade is the first tic after the the indicator signal paints. I've tried to demonstrate that below. Other than that the EA will have a lot size escalation, an on-screen pip counter, a button to stop taking new trades, SL/TP, and magic number. I would like the indicator to be within the
I would like to create an EA based on the Shved Supply and Demand indicator. you can find the Shved Supply and Demand v1.7 indicator in the following link https://www.mql5.com/en/code/29395 NB: Checks the trading robot must pass before publication in the Market ( https://www.mql5.com/en/articles/2555 ) MQ5 file to be provided
Im looking for an coder to code an EA: Trade management 1. opening trades according to the indicator 2. trades settings to choose from like: open all trades according to the signal open only trade 1,2,3 or 4 % per trade ( example 50/30/20 of the lot settings, with 4 trades it would be for example 50/30/10/10) 3. SL/Trailing settings: Move SL to entry after hitting TP1/TP2 or TP3 moving SL by % keep the original SL
Hi I'm looking to have 2 of my pinescript strategies converted to MQL5 and was wondering if you could first give me a quote for the more simple strategy and then for both the simple and complex strategy together. The simple strategy is a MACD crossover type thing that uses a special EMA script that filters out some ranging price action and also fractal candles for the stop loss. The second strategy is market

Información sobre el proyecto

Presupuesto
30+ USD
IVA (24%): 7.2 USD
Total: 37.2 USD
Para el ejecutor
27 USD
Plazo límite de ejecución
de 1 a 2 día(s)