How to measure the overlap between Fibonacci and pivots: avoiding double counting
When several methods of analysis are displayed on a chart at the same time, levels produced by separate calculations sometimes line up at prices close to one another. This state is called confluence, and in many cases it is spoken of as “a place where several grounds overlap”. There are also explanations that treat such an overlap as a state in which two grounds have come together, but this article does not rule on whether that is right or wrong. There is something to be checked before ruling on it.
The observation that lines are lying close together is, however, a different thing from the assessment that several independent grounds have gathered there. Closeness can be read off the screen, but whether they are independent cannot be known without going back to the formula and the input that produced each line. By the end, you will be able to count again for yourself, for the lines lined up on your screen, how many there are as prices and how many they amount to as independent grounds.
This article does not answer whether a place at which there is confluence is superior to other places. What it can do instead is to fix a way of making records that does not count the same thing twice. Decide before observing what is to be measured and what the tolerance distance is; map each line to its formula family; measure the distance for every pair; and then fold the lines that came from the same family into one. That is the extent of the scope. Whether an overlap carries any superiority is a question of the design of the verification, not of how records are taken.
This article assumes a reader who has already confirmed how the start and end points of a swing are decided, and the formulas of the Traditional pivot themselves, in the articles devoted to each of those subjects. They are not repeated below. All the prices appearing below are synthetic values created for the purpose of explanation. They do not refer to any real currency pair or to the current market. Every level dealt with here is a candidate for observation; it does not determine the direction of the price, and it guarantees neither a rebound nor that the level will be reached. Please make the final judgement yourself.
May two overlapping lines be counted as two grounds?
The conclusion first. Even where the formulas differ, if the input is the same, they do not amount to two independent grounds.
The clearest case is the central level. The P of the Traditional pivot and the balance point BP of the six-zone Fibonacci zone method are both defined as (H + L + C) ÷ 3. Given the same input the difference is 0.0000, which is not “close” but “the same”. Even where two lines with different names and different colours sit side by side on the screen, the information there amounts to one line.
There is also a looser relationship one step down: the state in which the formulas differ but the input is the same. The R1 of the Traditional pivot and the boundary D of the six-zone method do not agree in value itself. Both, however, are calculated from the high (高値), the low (安値) and the closing price (終値) of the previous period. Because both move at the same time when the input is replaced, they remain structurally linked even when the conditions are changed. This, too, is not two independent checks.
What is folded, however, is the number of grounds, not the price. Neither of them is removed from the display, and they are not averaged into a single line. Both are kept as prices, and as independent grounds they are counted as one. Drop this distinction and it is the information that disappears instead.
What follows is the procedure that makes this way of counting work as a record. It proceeds by separating what is decided before observation begins from what is done after observation. If the folding is done before the distances are measured, the fact of which pairs were close disappears from the record, so this order is not reversed.
What should be written out before observation begins?
Pre-registration means writing out and fixing, before observation begins, what is to be measured and under which conditions. The reason for placing this first in the procedure is simple. If what is to be measured can be chosen after observation has begun, a swing or a method that fits the place where the price stopped can be chosen afterwards, and that record then becomes unusable for verification later.
The items to register
The items to register are the following. If even one of them is left blank, the same screen cannot be reproduced afterwards.
| Item | What to register |
|---|---|
| Swing | The prices of the start and end points, the time frame chosen, and whether the wick (ヒゲ) or the closing price was used |
| Pivot method | The name of the method, and the source of the formulas used in it |
| Pivot period | The base period, such as daily or weekly |
| Session boundary | The start and end times of the daily candlestick (日足), the time zone, the treatment of daylight saving time (夏時間), and the period boundary of the week |
| Price series | Which of Bid, Ask, Mid or Last, and the data provider |
| Levels displayed | A list of the levels actually taken as objects of observation |
| Digits displayed and the rounding rule | How many digits are displayed, and where the value before rounding is held |
How a swing is chosen in itself is covered by How to decide the start and end points of a Fibonacci retracement. What is needed here is not whether the choice is good or bad, but that the result of the choice is fixed before observation and left in the record.
The registered content used in this article
The following are all synthetic values for the purpose of explanation. The display is to four decimal places, and no rounding is applied in the intermediate steps.
| Item | Value |
|---|---|
| The high of the previous period, H | 1.3120 |
| The low of the previous period, L | 1.2980 |
| The closing price of the previous period, C | 1.3080 |
| The range of the previous period (H − L) | 0.0140 |
| Swing | The case where the analyst has chosen the same H and L as above |
In this example the high and the low of the swing the analyst decided to measure happened to be the same as the high and the low of the previous period. This setting has been placed deliberately. How far the Fibonacci side and the pivot side share the same data is what comes into play in the folding later on.
The lines registered as objects of observation are the following four.
| Label | Value | How it is produced | Input |
|---|---|---|---|
| F-618 | 1.3033 | Fibonacci drawing, 61.8% | The swing chosen by the analyst, H = 1.3120 / L = 1.2980 |
| F-500 | 1.3050 | Fibonacci drawing, 50% | The same swing |
| P-R1 | 1.3140 | The R1 of the Traditional pivot | The previous period’s H / L / C |
| K-D | 1.3130 | The boundary D of the six-zone method | The previous period’s H / L / C |
To keep the explanation brief, the candidates have been limited to four lines. In practice, displaying the same two methods would also place the central levels side by side, but because that pair always agrees in value, it is treated as one line, as shown in “May two overlapping lines be counted as two grounds?”.
What changes if registration is placed first
Where there is pre-registration, “what was not looked at” remains in the record. Because the list of levels that were displayed is fixed, a different level cannot be brought out afterwards to explain things. Conversely, without registration, only the convenient ones among the lines that were on the screen can be selected and set out after the event, and nothing at all can be confirmed from that record.
How close is close enough to be “the same observation point”?
The tolerance distance is the upper limit of distance at which two levels are judged to be “close enough to be treated as one and the same observation point”. There are three things to decide here: the unit of distance, its value, and how the equality case at the boundary is to be treated.
The unit and the value
For the unit of distance, an absolute price difference, pips, or a ratio to volatility, among others, can be used. Which of them is chosen changes the outcome of the test even in the same market. Where a ratio to volatility is used, the indicator used as the denominator of the ratio, and the period over which it is calculated, must also be fixed before observation.
In the example in this article the unit is an absolute price difference and the value is 0.0010. Whether this value is appropriate is not decided in this article. The wider the tolerance distance, the more cases are judged to be overlaps, and the narrower it is, the fewer. The work of comparing how much the number of qualifying cases changes at which value is a question on the side of the design of the verification, not of how records are taken.
Decide the equality case at the boundary first
In deciding the tolerance distance, what trips people up in practice is not the size of the value but the boundary. Where the distance is exactly equal to the tolerance value, whether to include it or to exclude it has to be decided before observation.
This article proceeds on the basis that “at or within the tolerance distance (the equality case included)” has been adopted. This is not, however, a claim that the including side is correct. A rule on the excluding side is equally acceptable. The requirement is that one or the other be decided first and fixed.
That this point is not merely a formal caution can be seen from the table of distances in “Once the distances have been measured, what is folded and how?”. In the example in this article a pair whose distance is exactly 0.0010 against a tolerance distance of 0.0010 actually appears. If the treatment of the equality case is decided after observation, this pair can be either included or excluded, and the test becomes an explanation of the result.
Use rounding for display only
The comparison of distances is carried out on the values before rounding, not on values rounded to the digits displayed. The F-618 in this article, for example, is 1.3033 as displayed, but 1.303348 as calculated. Near the boundary, the result of subtracting one displayed value from another and the result of subtracting the values before rounding can diverge across the tolerance distance.
In the example in this article the test does not change according to whether rounding is applied. Even so, as a rule, it is decided that rounding is used for display alone and that the test is carried out on the values before rounding. If the rule for the test depends on the display settings, the meaning of past records changes merely because the number of digits displayed has been changed.
Which formula and which input did that line come from?
The formula family is the combination of the formula that produced the line and the input fed into that formula. Before the distances are measured, the formula family is written out for all four registered lines.
| Label | Value | Formula family | Input | When the value is replaced |
|---|---|---|---|---|
| F-618 | 1.3033 | The 61.8% of a Fibonacci drawing | The H and L of the swing chosen by the analyst | When the analyst redraws it |
| F-500 | 1.3050 | The 50% of a Fibonacci drawing | The H and L of the same swing | When the analyst redraws it |
| P-R1 | 1.3140 | The R1 of the Traditional pivot | The previous period’s H / L / C | The changeover of the base period |
| K-D | 1.3130 | The boundary D of the six-zone method | The previous period’s H / L / C | The changeover of the base period |
The value of P-R1 is obtained by first finding the central level as (H + L + C) ÷ 3 = 3.9180 ÷ 3 = 1.3060, and then R1 = 2 × 1.3060 − 1.2980 = 1.3140. 1.3060 is not among the levels displayed, but it is kept in the record as the intermediate value used to produce R1. Without keeping the intermediate value, it is impossible, when the values later fail to agree, to isolate whether it was the input that differed or the formula. The formulas in full, and how the previous period’s H / L / C themselves change according to where the daily candlestick is divided, are covered by The formulas of the daily pivot and the daily candlestick boundary.
The level of detail in which the input is written
Writing only “the previous period” in the input column is not enough. The previous period refers to a different period according to how the session boundary is defined. If the time at which the period is divided and the time zone differ, H / L / C change even for the same date, and every level produced from them changes too. The same applies to whether the price series is Bid or Mid. The input column is written so as to include the identification of the pre-registered session boundary and price series.
How to label
If the label on the screen shows only R1, the work of tracing the formula family has to be started again every time. Standardising on a way of writing from which the method, the period and the family can be read off makes the checking of records faster. Writing F-618, P-R1 and K-D as this article does is one example of such a convention.
A line whose family cannot be written out is not made a candidate
For a line whose formula cannot be reproduced at your own hand — the output of a distributed indicator, for example — the formula family column cannot be filled in. In that case the line is either removed from the candidates or held over until the same value can be reproduced by hand. Because it cannot be determined whether a line of unknown family is an independent ground, such a line cannot be carried into the folding procedure that follows.
Once the distances have been measured, what is folded and how?
The work divides into two stages. First the distance is measured for every pair; then the formula family is traced and the folding is done. Do not reverse the order. If the folding is done before the distances are measured, the very fact of which pairs were close disappears from the record.
Measure the distance for every pair
Six pairs can be made from the four registered lines. The distances are calculated on the values before rounding, and only the display is rounded to four decimal places.
| Pair | Distance | The test against the tolerance distance of 0.0010 |
|---|---|---|
| P-R1 and K-D | 0.0010 | Qualifies (exactly the tolerance value; included because it was decided in advance that the equality case is included) |
| F-618 and F-500 | 0.0017 | Does not qualify |
| F-500 and K-D | 0.0080 | Does not qualify |
| F-500 and P-R1 | 0.0090 | Does not qualify |
| F-618 and K-D | 0.0097 | Does not qualify |
| F-618 and P-R1 | 0.0107 | Does not qualify |
Only one pair falls within the tolerance distance. What the screen looks like at this point is “two lines sitting side by side at 1.3130 and 1.3140”.
Trace the family, and the two lines become one ground
P-R1 and K-D come from entirely different formulas. One is the formula for the R1 of the Traditional pivot, the other the formula for a boundary of the six-zone method. Their names differ too, and they are normally displayed as separate indicators in separate colours.
Look at the input column of the formula family table, however, and both are the previous period’s H / L / C. So long as the input is the same, these two lines are not two independent checks. There is one set of data for the previous period, and two numbers have simply been produced from it by two different formulas. Only one check has been carried out.
Even where the formulas differ, if the input is the same, they do not amount to two independent grounds. P-R1 and K-D are precisely two lines standing in this relationship.
What is folded is the number of grounds, not the price. 1.3130 and 1.3140 are both kept as different prices, and as independent grounds they are counted as one.
| Observation point | Lines displayed | Price | Relationship of the inputs | Number of independent grounds |
|---|---|---|---|---|
| 1.3130 to 1.3140 | P-R1, K-D | Both kept as they are | The input is identical (the previous period’s H / L / C). Dependent | 1 |
The two stages of folding
Folding has two stages that differ in nature.
Stage 1 is the case of algebraic identity. Where both the formula and the input are the same, the values always agree. The central level raised in “May two overlapping lines be counted as two grounds?” is of this kind, and with the input used in this article both come out as 1.3060. It is one line without the distance even needing to be measured, and it holds irrespective of how the tolerance distance is set. Please check the formulas of the implementation you are using in that implementation’s official materials. Whether the same formula is being executed under nothing more than a different name can be determined by looking at those materials.
Stage 2 is the case of a shared input. This is the state in which the formulas differ but the input is the same, and the relationship between P-R1 and K-D is of this kind. On this occasion they happen to sit close together at a distance of 0.0010, but what matters is not the closeness. If the previous period’s H / L / C, which are the input, change, both move at the same time. Because they are structurally linked even when the conditions are changed, they cannot be counted as two independent grounds.
What is left in the record differs between stage 1 and stage 2. In stage 1 the values always agree, so the price itself is one. In stage 2 the values differ, so two prices are kept, the shared input is noted, and they are shown as dependent. What is folded is the number of grounds alone.
The two lines on the Fibonacci side are also of stage 2. F-618 and F-500 are nothing more than a change of ratio applied to the same swing. The distance on this occasion is 0.0017, which exceeds the tolerance distance, so they do not become the same observation point in the first place. Even if, however, these two lines were to fall within the tolerance distance through the choice of ratios or the size of the range, they would still not amount to two independent grounds. They are two numbers derived from a single swing as their input. Here too the prices are kept as two, and only the number of grounds is counted as one.
Where the input is only partly shared
The example in this article contains one further state. The input on the Fibonacci side is the H and L chosen by the analyst, and in this example those agree with the H and L of the previous period. The input on the pivot side, on the other hand, is the three values H / L / C. The two therefore share their input in part.
In this case the number of grounds is not folded. Because the behaviour changes according to whether C enters into it, they cannot be said always to move together. Neither, however, is “independent” written in the record. The fact that part of the input is shared is left as a note, and independence and partial sharing are distinguished as separate states.
The same applies where no input at all is shared. It can be said that the formula families are separate, but that alone does not make them statistically independent, because levels built from the same period of the same market can move together through the price action. That the families are separate and that they are statistically independent are two matters to be confirmed separately. On this occasion there is no pair between the Fibonacci side and the pivot side that falls within the tolerance distance, so no such test has become necessary, but with other choices of swing it would.
The limits where a rule is made from the number of lines
Using the number of independent grounds left after folding, a rule such as “leave it in the record only where the number is 2 or more” can be made. That, however, is a descriptive rule you have laid down yourself, and not a calibrated probability. Whether observation points with larger numbers show a higher proportion of reactions is something about which nothing at all is known at the point at which the rule is made.
To treat the number of lines as a probability or a likelihood, separate verification is required. This article does not assert that the price is more likely to react the greater the number of overlapping lines. What is being done here is only to count correctly how many pieces of independent information you are looking at. The idea of overlap itself, and how the independence of the elements is to be understood, are covered by A practical guide to Fibonacci zones and confluence. What this article covers is only the procedure on the recording side: tracing the family and folding.
How are reaching a level and the reaction recorded separately?
Once the folding is finished, a list of observation points is produced. From here on the work is to record what happened at those observation points. Four things are recorded: when the level was reached, from which side it was reached, by what route it was reached, and which of the categories decided in advance it fell into. None of the items below indicates any judgement about an order or a trade.
The items to record
| Item recorded | Content | When it is decided |
|---|---|---|
| The identifier of the observation point | The symbol given to the observation point after folding | Before observation |
| The price or the range | The value after folding, or the range the folded lines enclose | Before observation |
| The definition of reaching the level | Whether it is the point at which a wick touches it, or whether the closing price is on that side; and on which price series the test is made | Before observation |
| The observation window | How many candlesticks, or how many hours, after the level is reached are taken as the object of observation | Before observation |
| The categories of reaction | The list of categories into which what happened within the observation window is classified | Before observation |
| The point at which the level was reached | The time at which the definition of reaching the level was first satisfied | At the time of observation |
| The direction from which the level was reached | Whether it was reached by falling from above or by rising from below | At the time of observation |
| The route by which the level was reached | Whether it came through several levels in succession in a large candlestick, approached gradually, or jumped over the level across a market closure | At the time of observation |
| The outcome within the observation window | One of the categories decided in advance | At the time of observation |
The observation window and the categories of reaction are always decided before observation. If “how far to look” can be chosen after the level has been reached, the same price action can be recorded either as a reaction or as a pass-through, and the conclusion is settled by the choice of observation window.
Reaching a level shows nothing in itself
A record that the price reached an observation point shows only the fact that the price came to that place. It does not determine the direction, and it does not mean either that a rebound has occurred or that one is about to occur. Reaching a level and the reaction are recorded separately, as separate items.
The direction from which the level was reached and the route are recorded because the circumstances differ even at the same price. Where the level was reached by falling from above and where it was reached by rising from below, the meaning of the price action observed afterwards differs. This distinction, however, is for the classification of records; it does not indicate what should be done in either case.
Fix the format
Records are kept one case to a line, in the same format. If only the cases that went well are written up in detail and the others are omitted, the character of the collection of cases cannot be made out when it is looked at later. Fixing the format keeps the judgement made at the time the record was created from finding its way into the later aggregation.
The above is a procedure concerning the format of records; it does not indicate how to enter a position or where to place an order.
When should observation be broken off, and how should the cases that did not react be kept?
Invalidation is the condition on which it is decided that an observation point will no longer be treated as an object of observation. It is a different thing from cutting losses in trading: it refers not to a price level but to a state in which the premise of the observation has been lost.
Three kinds of invalidation
The first is invalidation through the updating of the input. When the base period changes over, the previous period’s H / L / C are replaced. In terms of the example in this article, P-R1 and K-D are recalculated from the new input, and the old values lose their grounds as observation points. This invalidation occurs by the clock, irrespective of what the price has done.
The second is invalidation through the discarding of the premise. The levels on the Fibonacci side are a measurement of the swing chosen by the analyst. If the price goes beyond the start point of that swing, the range that was being measured is itself no longer what a pullback or a return move is measured against, and the levels produced from its ratios lose their premise.
The third is the expiry of the observation window. If, after the level has been reached, none of the categories of reaction applies within the number of candlesticks or the time decided in advance, the case is finalised as “did not satisfy the definition of a reaction within the observation window”. Putting the determination off makes it possible to choose a convenient point in time after the event.
These conditions, too, are registered before observation. An observation point for which the conditions of invalidation have not been written down in advance remains indefinitely as “a case on which no conclusion has yet been reached”, and quietly drops out of the aggregation.
Why the cases that did not react are kept
The cases that should be kept in the record fall into the following four categories.
| Category | Content |
|---|---|
| 1 | The level was reached, and the definition of a reaction was satisfied within the observation window |
| 2 | The level was reached, but the definition of a reaction was not satisfied within the observation window (including the case where the price simply passed through and the case where it moved back and forth within the range) |
| 3 | The period of observation ended without the level being reached |
| 4 | It lapsed before the level was reached, through the updating of the input or the discarding of the premise |
A record that keeps only category 1 is not a collection of cases but a selection of cases. Try to calculate a proportion and there is no denominator. Drop categories 2 and 3 and the most basic figure of all — how many of the cases in which the level was reached satisfied the definition of a reaction — can no longer be produced. Category 4 serves to keep in the record the length of the period over which an observation point existed.
Where a line comes to the same price band in the following period as well, it is registered as a separate case. So long as the input has been replaced, it is a new observation point and not a continuation of the previous case. Treat it as a continuation and one case ends up being counted several times, so that double counting of cases finds its way into a record that was supposed to have avoided double counting of lines.
What this procedure settles, and what it does not
What this article settles is the procedure for measurement and for the elimination of duplication. Specifically: registering before observation what is to be measured; deciding first on the tolerance distance and the treatment of its boundary; mapping each line to its formula family; folding those that are algebraically identical and those that share an input; recording reaching a level and the reaction separately; and defining invalidation so that the cases that did not react are kept as well.
What is not settled is also stated plainly. Whether a place at which there is an overlap carries any superiority; what value it is appropriate to set the tolerance distance at; how it is appropriate to frame the definition of a reaction; and what is left once trading costs have been deducted. None of these is answered by the procedure in this article. What is required is a design for the verification, including the setting of what is to be compared against, the size of the sample, the division of the period, and the treatment of the fact that several conditions were tried.
The procedure in this article becomes the input to that verification. If the formula family column and the number of independent grounds after folding are not left in the record, the calculation at the aggregation stage will be carried out with lines that came from the same input still counted twice, and it will not be possible to tell what the resulting figures measured. Put the other way round, the purpose of eliminating duplication is not to find a good place, but to put the record in order so that the later verification has meaning.
Articles to read next
This article has narrowed its focus to how records are made when lines are counted. From here, the following routes are available according to your purpose.
- If you want to start from how the swing to be measured is chosen in itself, go to How to decide the start and end points of a Fibonacci retracement. It covers which high and which low to take, whether to measure with the wick or the closing price, and how to align the time frames.
- If you want to fix the values of the previous period themselves in order to fill in the input column of the formula family table, go to The formulas of the daily pivot and the daily candlestick boundary. It covers how the daily, weekly and monthly period boundaries are determined, and the formulas of the Traditional method.
- The idea itself of bringing several levels that lie close together into a single price band is covered by A practical guide to Fibonacci zones and confluence. This article has taken as its scope the stage before that: which lines are folded into one.
- If you want to confirm whether an overlap carries any superiority, go to How to verify the effectiveness of Fibonacci and pivots. It starts from the design that separates which of the four stages — reaction, relative reaction, trading profit and reproducibility — is being measured.
- If you want to start from which question each of the three tools is used for in the first place, that is covered by How to choose between Fibonacci drawing, Fibonacci zones and pivots
What to check before you use it
This article provides general information on technical analysis; it does not recommend any particular product, currency pair or method of trading. All the prices carried are synthetic values for the purpose of explanation. The levels dealt with here are candidates for observation; they do not determine the direction of the price, and they guarantee neither a rebound nor that a level will be reached. Actual judgements should be made on your own responsibility.
The settings for trading — the decision to enter or to exit, where to place an order, the size, and the values for cutting losses or taking profits — are not covered. Nor is any assessment made of which pivot method or which ratio is superior. Nor is buying and selling something that can be decided on a single indicator alone.
Information referred to
Because the subject of this article is the procedure for measurement and recording, the sources of the individual formulas are not reproduced here. The definitions of the formulas and where they come from can be confirmed in the articles devoted to each of them.
- The values carried were calculated from the common inputs H = 1.3120, L = 1.2980, C = 1.3080 and a range of 0.0140, as follows. F-618 is 1.3120 − 0.0140 × 0.618 = 1.303348; F-500 is 1.3120 − 0.0140 × 0.5 = 1.3050; the central level is (1.3120 + 1.2980 + 1.3080) ÷ 3 = 1.3060; and P-R1 is 2 × 1.3060 − 1.2980 = 1.3140. The 1.3130 of K-D is a value obtained as one of the boundaries of the six-zone method from the same high, low and closing price of the previous period (1.3130, being the central level of 1.3060 plus 50% of the previous period’s range of 0.0140). The composition of each boundary of the six-zone method and its original text are covered by the article devoted to that method. The display is to four decimal places, and no rounding is applied in the intermediate steps.
- All the distances were calculated on the values before rounding, and only the display is rounded to four decimal places. The distance of 0.0010 between P-R1 and K-D is a boundary case equal to the tolerance distance laid down in advance.
- That the central level P and the balance point BP of the six-zone method always agree follows from the fact that their defining formulas agree as (H + L + C) ÷ 3. The difference for the same input is 0.0000. The account of the individual formulas of the six-zone method and of their original text is covered, with its sources, in the article devoted to that method.
- Please check the formulas of each implementation in the official materials of the tool you use. Even under the same name, the formula may differ according to the implementation, and that difference has a direct effect on what is entered in the formula family table in this article.
Always check the latest trading conditions, fees and campaigns on each company’s official site. The information on this page is as at the time it was written.