Indicator analyzing candle length for MT5

MQL5 Indicators Forex

Job finished

Execution time 1 hour
Feedback from customer
Excellent job! Great performance and communication
Feedback from employee
Great customer. Thanks for your order

Specification

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.



Responded

1
Developer 1
Rating
(29)
Projects
34
26%
Arbitration
0
Overdue
4
12%
Free
2
Developer 2
Rating
(7)
Projects
8
50%
Arbitration
0
Overdue
0
Free
3
Developer 3
Rating
(145)
Projects
162
41%
Arbitration
5
0% / 80%
Overdue
8
5%
Working
4
Developer 4
Rating
(558)
Projects
925
48%
Arbitration
301
59% / 25%
Overdue
123
13%
Loaded
5
Developer 5
Rating
(273)
Projects
410
63%
Arbitration
5
40% / 0%
Overdue
4
1%
Loaded
6
Developer 6
Rating
(7)
Projects
12
25%
Arbitration
1
100% / 0%
Overdue
0
Free
7
Developer 7
Rating
(422)
Projects
479
33%
Arbitration
24
42% / 46%
Overdue
6
1%
Busy
Similar orders
I have ex4 file that I want recreating into new indicator with source code If possible I want it to be non repaint so the signal do non redraw pls and thank you
Requirements All features of indicators, plus enter into trades (buy, sell) TP and SL according to the indicator [TP1 and TP2] Can make MT5 from MT4 indicator? Add trailing stop loss trading hours trading days Max spread Possibility of Multiple charts through one window Daily profit Target [yes/no]
hello... saya menginginkan EA GRID?AVERAGING dengan kondisi : > bisa meletakan sell&buy Limit pada nilai tertentu > bisa meletakkan sell&buy stop pada nilai tertentu > bisa melakukan order sell/buy limit/stop (sesuai setting) berdasarkan Nilai RSI > bisa membatasi jumlah order > ada fungsi TP dan SL > rangkuman hasil kerja EA selama mingguan terimakasih, semoga bisa bekerjasama dengan baik
I already have the EA completed. I just need to add 2 params and fix the feature (GV) to make sure that no order is missed for any reason. Maybe GV is not enough and need to add another feature
I want the trade to trigger anytime it sees the opportunity on all time frames, sl tp should be automated and all trades should be trigger anytime on cpi news and etc
Добрый день. Мне нужно создать сигнального бота. У меня есть индикатор на Trading View, который выделяет точку интереса - спрос/предложение. (но я в нем не уверен, подойдет ли он для робота, возможно такой индикатор нужно будет написать). Нужно чтоб все зоны были экстримальные, то есть, если произойдет пробитие зоны то менялся тренд. Как я торгую? Индикатор выделяет зону. Мне нужно увидеть подтверждение в пределах
hello. I want 12 csvs file contains the trading view historial candles data from 2000 to now in 1M timeframe for this symbols: Xagusd - OANDA Wticousd - OANDA Nas100usd - OANDA Spx500usd - OANDA Us30usd - OANDA Xptusd - OANDA J225usd - OANDA Btcusd - OANDA Ethusd - OANDA Uk100gbp - OANDA De30eur - OANDA Eu50eur - OANDA Collected data should be the exact data that trading view candles reports. not from
I need a trading bot 30 - 40 USD
I'm in need of a trading bot, based on 3 mt4 indicators, which are semafor alert, reversals and bluever.I want the signals produced by the indicators to be automated and run on mt5 platform, trade anything including synthetic indices and works on any time frame
Hi Dear Expert Developer, I want to make a Indicator as Candle pattern as below; 1.Inverted Hammer (Must as per My Drawing) with notification ( only H1,H4,DAY,WEEK time frame) if match with my drawing pattern 2.Hanging Man ( Must as per Drawing) with notification ( Only H1,H4, Day, Week time frame ) if match with my drawing pattern Example, I will apply this indicator on EURUSD H1 time frame and I have open only H1
I need someone to help me convert my tradingview pinescript to mt4, I only got $20 for this and I am gonna be giving you more works ahead, Also I will be paying with cryptocurrency cause my PayPal os not working here, Don't know why

Project information

Budget
40 - 70 USD
For the developer
36 - 63 USD
Deadline
from 1 to 10 day(s)