Indicator analyzing candle length for MT5

MQL5 Indicadores Fórex

Trabajo finalizado

Plazo de ejecución 1 hora
Comentario del Cliente
Excellent job! Great performance and communication
Comentario del Ejecutor
Great customer. Thanks for your order

Tarea técnica

Indicator creates a chart and changes the color of candles

 

The way indicator works

 

1.       The length of a candle, let’s call it a signal candle, is X% more than length of the largest of X previous candles (number of previous candles is an input parameter). Indicator changes the color of this signal candle and creates a tick on the chart.

2.       The length of the signal candle is X% more than the average length of X previous candles (number of previous candles is an input parameter). Indicator changes the color of this signal candle and creates a tick on the chart.

 

Once signal candle has been formed the indicator changes its color as well as color of previous candles that have been analyzed.

 

Indicator’s chart has levels 1, 0 and -1.

If the signal candle is bullish than indicator’s chart takes the value of 1

If the signal candle is bearish than indicator’s chart takes the value of -1

Indicator’s chart takes the value of 0 with other candles that are not signal.

 

Indicator’s chart should look like the one on the following picture. Thin vertical lines. The indicator will only have 3 values: 1, 0, -1.



Input indicator’s parameters

 

There are two tabs.

 

General

 

1.       Mode - bodies/shades.

·       Indicator takes into account open and close prices if mode is bodies.

·       Indicator takes into account high and low prices if mode is shades.

2.       Number of candles – number of previous candles that indicator analyzes.

3.       Average % - shows by how many percent the signal candle length should be larger than the average length of the previous candles.

4.       Max % - shows by how many percent the signal candle length should be larger than the length of the largest of previous candles.

 

Color

 

1.       Signal candle color - The color is the same both for bearish and bullish candles.

2.       Previous candles color

3.       Chart color

 

Example

 

 

General

1.       Mode = bodies

2.       Number of candles = 3

3.       Average % = 50

4.       Max % = 50

Color

1.       Signal candle color = Orange

2.       Previous candles color = Blue

3.       Chart color = Red

 

Mode = bodies. So we take into account open and close prices.

Let’s calculate the average length of 3 previous candles.

Candle 1.   1.10709 - 1.10697 = 0.00012

Candle 2.    1.10696 - 1.10687 = 0.00009

Candle 3.   1.10720 - 1.10692 = 0.00028

If candle is bullish than its length = close price – open price

If candle is bearish than its length = open price - close price

Now the signal candle 1.10831 – 1.10725 = 0.00106

Average = 50%. So the signal candle should be larger at least by 50% than the average length of the previous candles.

(12+9+28)/3 = 16.3. If 16.3 points = 100% than 106 points = 650.3 %

The requirements are met. The signal candle is much larger than average length of previous candles.

Max = 50%. So the signal candle should be larger at least by 50% than the largest of the previous candles.

If 28 points = 100% than 106 points = 387.6 %

The requirements are met. The signal candle is much larger than max length of previous candles.

 

Once signal candle has been formed the indicator changes its color as well as color of previous candles that have been analyzed (3 previous candles in this case) and creates a tick on the chart. 3 candles that were analyzed and all other candles that are not signal candles are reflected on the chart as 0.



Han respondido

1
Desarrollador 1
Evaluación
(29)
Proyectos
34
26%
Arbitraje
0
Caducado
4
12%
Libre
2
Desarrollador 2
Evaluación
(7)
Proyectos
8
50%
Arbitraje
0
Caducado
0
Libre
3
Desarrollador 3
Evaluación
(149)
Proyectos
165
41%
Arbitraje
5
0% / 80%
Caducado
8
5%
Trabaja
4
Desarrollador 4
Evaluación
(562)
Proyectos
929
48%
Arbitraje
301
59% / 25%
Caducado
123
13%
Trabajando
5
Desarrollador 5
Evaluación
(281)
Proyectos
421
63%
Arbitraje
5
40% / 0%
Caducado
4
1%
Libre
6
Desarrollador 6
Evaluación
(7)
Proyectos
12
25%
Arbitraje
1
100% / 0%
Caducado
0
Libre
7
Desarrollador 7
Evaluación
(433)
Proyectos
491
33%
Arbitraje
25
40% / 48%
Caducado
7
1%
Trabajando
Solicitudes similares
Hi Dear developpers, I've an EA that was working very well with the previous versions of MT4. But since, they have updated their platforms, my EA it's not working anymore. I've tried to use those old MT4 versions but there are just temporary. So i've decided to updated this EA so i can use it on the newest version of MT4 (1420) and those who will come after it. I also want to implement new inputs in it. I also want
I will like the indicator to send notification to mobile when the indicator changes color and is increase upward when positive and decreasing downwards when negative including fisplaying arrows on the chart ,red for negative and green for positive
Hey greetings My pleasure to met you all .I would like to convert a public tradingview pinescript indicator to MT5 Expert Advisor based on my. Requirements/specification.Kindly bid and let discuss about the project
Please convert the Pine Script below into MQL4 Indicator: // @version= 5 // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © KivancOzbilgic //created by: @Anil_Ozeksi //developer: ANIL ÖZEKŞİ //author: @kivancozbilgic strategy ( 'Twin Optimized Trend Tracker' , 'TOTT' , overlay = true ) src = input ( close , title = 'Source' ) length = input.int ( 40
A robot 30 - 65 USD
Hi I am looking for developer who can make me Mt4 Ea i have 2types of analysis methods i want to add and also want to attach image with Ea like when i attach my to any currency pair the chart changes to my picture Of robot which i attached to my Ea and for proper all settings i want add i will tell u message me
hi.. i have a pin script (TV) but some lines in the code needs to be fixed,,, i will attach the file thanks very much in advance, Also there will be more project in front, so I need a very dedicated developer
I need an Expert Advisor that can read trade signals from a Telegram Channel and then execute those trades. My telegram bot has admin access to the Telegram Channel The EA needs the following functionality: Position Size: Auto: + Have fixed lot size set in settings. + Have lot size by % of account (set in settings) Manual: + From lot size set in trade signals message. + From lot size by % of account from trade
The ZONE RECOVERY/HEDGING STRATEGY will be on a timeframe where each strategy is independent and pending orders should be placed at the high and low of the candlestick. If it is a buy, then the pending order at the high of the candlestick will be triggered, and if it is a sell, then the pending order at the low of the candlestick will be triggered. If the market breaks the high of the candlestick, then the pending
Hi I have a script in Tradingview that looks good which shows the buy and sell automation. I wanted to see if that can be used in ninja Trader so I converted it for Ninja Trader. But it is not triggering the buy or sell trade like it shows in the tradingview script. Please let me know if you can help me with the script that will work in Ninja Trader just like the one in Trading View. I have the buy and sell signals
Hi, I have one indicator shows buystop/sellstop price with tp 1 to tp 5. Please read carefully following conditions for EA. For trading, these following function is required; 1. Indicator parameters should be implemented on EA as parameters. 2. Automatically place the orders below/above certain points on Buystop and on sellstop at the sametime) with adjustable SL and TP1 based on indicator shows. 3. Even if one side

Información sobre el proyecto

Presupuesto
40 - 70 USD
Para el ejecutor
36 - 63 USD
Plazo límite de ejecución
de 1 a 10 día(s)