REAL RANGE

MQL5 Indicators

Specification

The idea is to create a range when a doji, pinbar or candle forms with more than 50% shadow in relation to its body. This range will be formed through the maximum and minimum of the "candle generator", there will be a horizontal line.Examples

#
2024.05.28 17:55
EN
responder
#
2024.05.28 17:55
EN
responder

Regarding expansion:

The range will be expanded every time there is a false breakout (shadows above/below  the range). Then the new high/low of the initial range will be expanded for these false  breakouts. Examples:

#
2024.05.28 17:56
EN
responder


#
2024.05.28 17:56
EN
responder
Another way to expand is if a candle closes above/below the range but that candle has less than 30% of its body outside the range. (in this case the body of the candle must be calculated as - Bullish Candle = minimum at closing / Bearish Candle = maximum at closing, that is, we do not consider the shadow opposing the movement). Same calculation method as we did for that indicator
#
2024.05.28 17:58
EN
responder
 
#
2024.05.28 17:58
EN
responder

About breaking the range:

The range will be broken when there is a candle closing above/below its lines with 30% or more of its body (body calculation is the same as described above). Once broken with this candle, the range disappears and the next one will only appear if there is a new configuration for it, that is, there will always be a single range on the chart.

#
2024.05.28 17:59
EN
responder
#
2024.05.28 17:59
EN
responder
It is essential that when breaking the range with a candle closing above/below with 30% or more of its body the range disappears "validating the break". A small signal appears on the broken candle
#
2024.05.28 18:00
EN
responder
But after the formation of a new range this signal disappears
#
2024.05.28 18:07
EN
responder
Gabriel De Araujo Lobo:

The idea is to create a range when a doji, pinbar or candle forms with more than 50% shadow in relation to its body. This range will be formed through the maximum and minimum of the "candle generator", there will be a horizontal line.Examples

This 50% is in relation to maximum to minimum, different from other calculations, but in this case the candle as a whole is considered. If this candle has shadows greater than 50% of its total size, the range is formed (doji, pinbar and any other candle that enters this configuration)
#
2024.05.28 19:11
EN
responder
Gabriel De Araujo Lobo:It is essential that when breaking the range with a candle closing above/below with 30% or more of its body the range disappears "validating the break". A small signal appears on the broken candle
Then the breakout criterion would be a candle closing with more than 30% of its body above/below the range and with its excess shadow less than 20% of the total size, other than that it doesn't break.. it continues expanding in the same way that a false breakout expands

Responded

1
Developer 1
Rating
(253)
Projects
408
38%
Arbitration
86
43% / 19%
Overdue
70
17%
Loaded

Project information

Budget
60 - 80 USD
Deadline
from 1 to 3 day(s)

Customer

(6)
Placed orders8
Arbitrage count0