How to test whether Fibonacci and pivots are effective: reaction rates, expected value and over-optimisation
The questions “does Fibonacci work?” and “do pivots function?” cannot be tested in the form in which they are put, because at least four separate questions are folded into them. Did the price react at that level? Did it react more readily than at other price bands? When that reaction was converted into trades, was anything left after costs were subtracted? And did the same thing happen in a period that was not used in deciding the conditions? These four make progressively stronger claims as one moves down them, and being able to answer “yes” to the earlier question does not settle the answer to the next. To sum the four stages up in a single word is to say that they are “effective” or “ineffective” without holding evidence at any of the stages.
By the end, you will be able to judge, for an aggregation of your own or for someone else’s test results, which of the four stages it is evidence for, and to point out which of the following is missing: the comparison, how the denominator is placed, the fixing of the definitions, the estimation of costs, how the sample is divided, the recording of the number of trials, and the width of the estimate. Two existing empirical studies are also cited, and what each of them establishes and does not establish is set out, down to the subject, the period and the comparison group.
This article does not answer whether Fibonacci or pivots are effective. Nor does it reach a conclusion as to which ratio or which level is effective. What it can do instead is to fix the design side: when one sets out to answer that question, what is to be measured and how, so that the figure which comes out has meaning.
Trading settings such as entry and exit, where orders are placed, and size are not covered. Apart from the figures reported by the academic studies cited, every figure that appears in this article is a synthetic value created for the purpose of explanation. They are not the results of any actual instrument or period, nor do they indicate future results. Further, because the two empirical studies cited in this article differ from each other in design, they are not bundled together in the form “according to the empirical research”. The levels dealt with here are all 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. Please make actual decisions on your own responsibility.
What does each of the four questions take as its denominator?
The reaction at the first stage counts whether the price reached the observation point under conditions decided in advance, and then moved in the opposite direction under conditions decided in advance. What this yields is only a proportion under that definition. The relative reaction at the second stage looks at whether the proportion for the target group is higher than for a comparison group constructed under the same definition and the same conditions. Only here does one touch on the question whether there is something specific to that level. The trading profit at the third stage converts the reaction into trades and calculates the average per trade, incorporating the average profit, the average loss and transaction costs. Only here does the discussion become one of amounts of money. The reproducibility at the fourth stage looks at whether applying the conditions, without changing them, to a period that was not used in deciding them produces a result in the same direction.
The reaction rate takes reaching a level as its denominator
Here is an example. The figures below are synthetic values.
Reaching a level (cases meeting the reach condition defined in advance) 400 occurrences
Reaction (cases meeting the reaction condition defined in advance) 236 occurrences
Reaction rate = 236 ÷ 400 = 0.590 = 59.0%
All this 59.0% states is a single sentence: that of the 400 cases which met the reach condition decided in advance, 236 met the reaction condition decided in advance.
The win rate and the expected value take trades as their denominator
Here is another example. The unit is a price range (pips and the like), and no currency or instrument is specified.
Win rate 0.40
Average profit 20
Average loss 10
Expected value before costs are deducted
E = 0.40 × 20 − 0.60 × 10 = 8.0 − 6.0 = 2.0
Deducting a round-trip cost of 1.0
E_net = 2.0 − 1.0 = 1.0
The average profit of 20 and the average loss of 10 are an example of a framework placed there to show the structure of the expected-value formula; they are not values the reader should use. In this example the average after costs are deducted is positive even with a win rate of 40%, whereas even with a win rate of 70% the expected value turns negative if the average loss greatly exceeds the average profit. The win rate is only one part of the expected value.
59.0% and 40% cannot be compared: the indicators and their denominators side by side
A reaction rate of 59.0% and a win rate of 40% cannot be compared, even where they deal with the same observation point, because both the denominator and the event differ.
On the side of the denominator, the 400 cases that reached the level do not become 400 trades as they stand. Cases that reached the level but did not meet the entry condition, cases where entry was made but neither the profit target nor the width set for limiting the loss was reached within the observation window, and cases where the period covered by the record ended first, drop out somewhere along the way. On the side of the event, whereas the test for a reaction is applied to the price movement itself, the test for a win is applied to the result of a trade, which includes costs and execution (約定). It is a perfectly ordinary occurrence for a case that met the definition of a reaction to end in a loss, because of the relationship between the entry price and costs.
A high reaction rate therefore does not mean a high win rate, a high win rate does not mean that the expected value is positive, and a positive expected value does not mean that it is still positive after costs are deducted.
| Indicator | Numerator | Denominator | The event being counted | What this figure alone cannot tell you |
|---|---|---|---|---|
| Reaction rate | Cases meeting the definition of a reaction (236 in the example) | Cases meeting the definition of reaching a level (400 in the example) | Whether, after reaching the observation point, the definition of a reaction was met within the observation window | Whether reactions occur more readily than at other price bands. Whether a reaction becomes a profit or a loss on a trade |
| Relative reaction | The difference between the reaction rate of the target group and that of the comparison group | The occurrences of reaching a level, counted separately for each group | The difference against a comparison group constructed under the same definition and the same conditions | Whether that difference remains as an amount of money. Whether the same difference appears in other markets or on other time frames |
| Win rate | The number of trades that ended in profit | The number of trades concluded | Among trades taken through from entry to settlement, the proportion that ended in profit | Whether the expected value is positive. How much is left per trade |
| Expected value | The total profit and loss across all trades | The number of trades | The average per trade, bringing together the win rate, the average profit and the average loss | Whether it is still positive after costs are deducted. How much width there is in the estimate |
| Expected value after costs are deducted | The total profit and loss across all trades, less transaction costs | The number of trades | The average per trade, including the expenses actually paid | Whether the assumed cost matches the actual one. Whether the value will be the same in future |
| Reproducibility | The results obtained in a period not used in deciding the conditions | The number of trades in that period | The result of applying the conditions, without changing them, to a period left unused | Future results. That the same result will be obtained in the next period |
Only the last row is of a different nature. Reproducibility is not an indicator in its own right but a condition under which the indicators above are recalculated for a different period.
What do the two empirical studies report, and what do they not report?
The two studies below are reports that hold only inside their respective designs. Neither reaches the conclusion that Fibonacci or pivots are generally effective, or that they are ineffective. The framework for assessing how figures look when many conditions have been tried is covered in “What happens if you do not count how many variations you tried?”.
Osler (2000)
The subject is three currency pairs in foreign exchange spot: the Deutsche Mark, the Japanese yen and the pound sterling against the US dollar. Equities are not covered. The frequency is the one-minute time frame, and the hours covered run from 9:00 to 16:00 New York time. The period is January 1996 to March 1998, which the paper itself describes as a 28-month sample. Counting plainly gives 27 months, but the wording of the original paper is followed here. The data are Reuters quotes (気配値).
What is tested is the support and resistance lines that six firms actually distributed to their customers. The origins of these levels are a mixture of visual judgement, numerical rules, information about orders, and market psychology. It is not a test of Fibonacci levels. The paper touches on Fibonacci in one place only, where it is listed as one example of the inputs analysts use. Nor is it a test of pivots obtained from a formula. The comparison consists of artificial support and resistance lines generated from uniform random numbers, 10,000 sets per day, and the statistical method is a binomial test.
What is established is the following. In the market, time frame and period set out above, the frequency of rebounds at the published levels was 60.8% and at the artificial levels 56.2%, and the published levels came out higher in all 16 combinations of firm × currency. 13 of the combinations were significant at the 5% level. Because not every firm distributed all three currencies, the number of combinations is 16 rather than 18.
At the same time, there are things that are not established. First, the absolute value of 60.8% does not indicate the level of how readily rebounds occur. The author’s own explanation is that a random walk too would in theory produce about 50%, and that the asymmetry in the definition, together with negative autocorrelation in the data, creates a structure that exceeds 50%. What carries meaning is the difference against the artificial levels, about 4.6 points.
Second, the result depends on the period. When the sample is divided into two in chronological order, almost all the combinations were significant in the first half, where volatility had been low, whereas in the second half, after volatility had returned to its usual level, significance disappeared in half the cases. That is to say, even in the same market and with the same method, dividing the period changed the conclusion.
Third, it does not deal with transaction costs and does not test profitability. In the concluding section the author states explicitly that it would be natural to investigate whether profits can be earned on a continuing basis, but that this is a subject for future research.
Tsinaslanidis, Guijarro & Voukelatos (2022)
The subject is 160 individual listed companies in equities (Dow 30, NASDAQ 100, DAX 30). Foreign exchange is not covered. The frequency is the four prices (4本値) of the daily candlestick, the period is January 1968 to March 2019, over 50 years, and the data are from Bloomberg.
What is tested is four Fibonacci retracement levels generated automatically by an algorithm (100%, 61.80%, 38.20%, 23.61%). The rules for identifying local highs (高値) and lows (安値), and the definition of the preceding trend, are set out in full, so that the design leaves no room for discretionary redrawing. Each level is given a width ζ to turn it into a zone, and ζ is tried at 0%, 2%, 4% and 6%. The comparison consists of random non-Fibonacci zones placed at positions sufficiently far from the Fibonacci levels, assessed with logit regression and a bootstrap with 500 repetitions.
What is established is the following. At ζ of 0%, 2% and 4% alike, no statistically significant difference was confirmed in the probability of a rebound between the Fibonacci zones and the non-Fibonacci zones, and the confidence intervals consistently included zero. At ζ = 6% the coefficient became significantly negative, and the authors interpret this as meaning that, with wide zones, it is if anything in the non-Fibonacci zones that rebounds occur more readily. As a trading rule too, over holdings of 1 to 21 days and on a basis before costs are deducted, it did not outperform the non-Fibonacci benchmark. And although widening the zone raises the probability of a rebound monotonically for the Dow stocks, from 49.08% (ζ = 0) to 73.23% (ζ = 6%), the authors themselves state explicitly that this is a mechanical effect of the asymmetry in the definitions of a rebound and a failure, and that it does not translate into an improvement in profitability.
What is not established is equally clear. This result concerns the daily time frame in equities; foreign exchange, intraday time frames, use in combination with other indicators, and different rules for judging highs and lows have not been tested. The authors’ conclusion carries a qualification: it concerns use as a single, standalone technical trading tool. Transaction costs are not dealt with, and the word for them does not appear in the body of the paper.
Do not bundle the two into a single sentence
It follows from the above that the two studies cannot be summed up in a single sentence of the form “according to the empirical research”. The markets differ, the time frames differ, the periods differ, what is tested differs, and so do the way the comparison groups are constructed and the statistical methods.
A result for equities on the daily time frame therefore cannot be generalised to foreign exchange or to other time frames. Conversely, a result obtained on the one-minute time frame in foreign exchange cannot be carried over to equities on the daily time frame. And neither study reaches a universal conclusion that “Fibonacci and pivots are effective” or that they are “ineffective”. The claims of each remain inside their respective designs.
Without something to compare against, what does that proportion mean?
A proportion on its own cannot be interpreted
A reaction rate of 59.0% asserts nothing without something to compare it against. Price does not keep advancing in one direction; it moves while going up and down. An observation that the reaction rate at some level exceeded 50% does not necessarily indicate a property specific to that level, because both the laxity of the test and the properties of the price series itself are pushing that figure up. How laxity in the test takes effect is covered in “Laxity in the test pushes the figures up”. What carries meaning is not the absolute value but the difference against a comparison group constructed under the same definition and the same conditions.
The items to align with the comparison group
For the comparison, one can use levels generated at random, ratios that are not Fibonacci ratios, or other prices that satisfy the same distance condition. Whichever is used, there are items that should be aligned with the target group: the period of the sample, the hours observed, the width of the zone, the definition of reaching a level, the definition of a reaction, the treatment of a first touch and of a subsequent touch, the distance from the current price, and the method by which the levels are generated. If even one of these is out of line, the possibility remains that the difference observed reflects the difference in that item.
Without alignment, what you measure is distance
A pivot’s R2 generally sits further from the current price than R1. If one simply compares the rate at which the levels are reached, R1 comes out higher, but this is not a property specific to R1; it is the property of being close. The same thing happens on the Fibonacci side. Levels at a shallow retracement are reached at a higher rate than deeper ones. If what one wants to see is the property of the ratio itself, it is necessary to prepare a comparison group in which conditions such as the distance from that day’s opening price (始値), the distance relative to volatility, and the time taken to reach the level have been aligned. A difference obtained without such alignment is information about distance, not about the level.
There are concrete examples of how to construct a comparison in the existing empirical research: a method that creates artificial support and resistance lines in bulk from uniform random numbers, and a method that places random zones at positions sufficiently far from the Fibonacci levels. The two studies differ from each other in subject, in period and in statistical method. A full description of the two designs and of the figures they report, and of what each establishes and does not establish, is given under “What do the two empirical studies report, and what do they not report?”
If the definitions are not decided first, what do the figures end up measuring?
The definitions make the figures
It is not the market alone that determines the figure called the reaction rate. The definitions of reaching a level and of a reaction; the length of the observation window; up to which touch is counted. Change these and a different reaction rate comes out of the same price series. That is precisely why the definitions are fixed before the results are seen. Where one is in a position to choose the definitions after seeing the results, the figure that comes out measures not a property of the market but the way the definitions were chosen.
Laxity in the test pushes the figures up
On this point there is primary evidence, seen under “What do the two empirical studies report, and what do they not report?” Tsinaslanidis and colleagues give the Fibonacci retracement levels a width ζ to turn them into zones, and show that the wider ζ is, the more the probability of being judged a rebound rises, monotonically. For the Dow stocks it is 49.08% at ζ = 0% and 73.23% at ζ = 6%. What matters is that the authors themselves deny this rise any significance. They state explicitly that it is a mechanical effect arising from the asymmetry in the definitions of a rebound and a failure that they themselves used, and that it does not translate into an improvement in profitability.
Osler’s study shows the same structure. The frequency of rebounds at the support and resistance lines published by the firms is reported as 60.8%, but a footnote by the author explains that, because the definition of a rebound is asymmetric, this value does not indicate a property of the levels. Details of the subject and the period are under “What do the two empirical studies report, and what do they not report?” In both examples, what carries meaning is not the absolute value but the difference against the artificial levels.
What pre-registration means in the design of a test
Pre-registration means writing out and fixing, before observation begins, what is to be measured and the conditions of the test. This is not a matter of etiquette but a necessary condition for establishing what the figures measured. What has to be fixed includes the method by which the levels were generated. A record saying that the price reached R1 cannot be reproduced unless it states the R1 of which calculation method. A different method produces a different price from the same input, and in some methods R3 and beyond are not defined. The differences in the inputs and in when the values become final from method to method — that is, the reason why a level of the same name becomes a different price depending on the method — are covered by why pivot values differ by method.
The measurement procedure itself — the items to register, the treatment of the permitted distance, and the work of folding lines that came from the same input into one — is covered by the procedure for measuring the overlap of Fibonacci and pivot levels without double counting. The one thing that can be said from the side of this article is that if the reaction rate is calculated while two lines produced from the same input are still counted twice, the denominator reflects the number of lines rather than the number of cases.
By how much do costs move the win rate that is required?
Costs push up the win rate required
Transaction costs do not merely subtract a fixed amount from the expected value; they move the win rate at which profit and loss break even.
Break-even win rate (where costs are ignored)
p = Lo ÷ (W + Lo) = 10 ÷ 30 = 0.3333 = 33.33%
Break-even win rate (where a round-trip cost of 1.0 is included)
p = (Lo + c) ÷ (W + Lo) = 11 ÷ 30 = 0.3667 = 36.67%
The difference between the displayed values is 3.34 points; before rounding, the difference is 1 ÷ 30, which is in the 3.33-point range. A cost of 1.0 for the round trip — no more than one twentieth of the average profit — pushes the required win rate up by more than 3 points. The smaller the price range aimed at, the larger this ratio becomes.
The range of expenses, and the sensitivity to a change in the assumption
What should be counted as cost is not the spread alone: it includes trading commissions, the divergence in the execution price (slippage), the interest-equivalent amount where a position is carried over, the delay between the order and its execution, the effect of partial execution and of rejected execution, and the widening of the spread by time of day and around the release of indicators. In a test using past data, some of these cannot be reproduced structurally. An aggregation premised on a fixed spread assesses trades in the hours when the spread was in fact wider as more favourable than they actually were.
An expected value calculated on a single cost assumption therefore cannot be made the conclusion. One confirms, alongside it, what is left when costs are multiplied by 1.5 and by 2. In the earlier example, if the round-trip cost becomes 2.0 the expected value is exactly 0. A result that reverses merely because the cost assumption doubles depends entirely on the accuracy of the cost estimate.
The two studies cited do not deal with costs
Neither of the two empirical studies cited in this article deals with transaction costs, and Osler does not test profitability in the first place. The subject, the period and the reported figures of each study are set out under “What do the two empirical studies report, and what do they not report?” Neither of them, therefore, allows one to read off what is left after costs are deducted.
How the fact that costs are not dealt with takes effect on the conclusion depends on the conditions. If two rules have the same number of trades and the same turnover, costs are subtracted equally from both, so the sign of the difference does not change. But if one of them is designed to trade more than the other, more is subtracted from the side that trades more, and the difference itself moves. Because the study by Tsinaslanidis and colleagues does not state that the number of trades and the turnover were aligned between the comparison groups, what happens after costs are deducted cannot be known from that paper. When making a comparison, confirm, in addition to the cost assumption, whether the number of trades and the turnover of the two sides being compared are aligned.
What counts as “a period not used in deciding the conditions”?
Dividing in chronological order: a one-off split and walk-forward
The period used to decide the conditions and the period in which the decided conditions are tried are kept separate. The figures below are likewise synthetic values used for explanation.
All 1,000 business days divided in chronological order
In-sample (IS) 700 days (70%)
Out-of-sample (OOS) 300 days (30%)
The division is made in chronological order, and random sampling is not used. If the dates are allocated at random, information from the later period is mixed into the decision on the conditions. Because the state of the market is continuous, a period loses its meaning as an unused one even where no more than a part of the same phase falls on both sides. For the same reason, bringing an aggregate value calculated from the whole period into a test of a part of that period is also avoided.
A one-off split cannot assess a design that is operated while the conditions are updated. Walk-forward is used in that case.
Decide the conditions on period 1 → apply them to period 2
Re-decide the conditions on periods 1 and 2 → apply them to period 3
Re-decide the conditions on periods 1 to 3 → apply them to period 4
At each point in time, only the past data that was available up to that point is used. The frequency of updating, the length of each interval, and the assessment criterion used in re-deciding are, however, all items chosen by the designer.
An unused period can only be used once
The property of being out-of-sample is conferred by the procedure, not by any statistical treatment. Accordingly, the moment the conditions are amended after the results have been seen, that period has been used in deciding the conditions and is no longer unused. The size of the amendment is immaterial. So long as the grounds for the change are the results in that period, that period has been used in development. The same applies where the updating frequency or the interval length for walk-forward is chosen while looking at the results: the whole becomes a single optimisation.
Nor does dividing the period make the effect of having tried many conditions disappear. The division of the sample and the treatment of multiple testing, described next, are two problems to be addressed separately.
What happens if you do not count how many variations you tried?
Once the number of trials rises, a false positive becomes close to certain
If the significance level is set at 5%, then even for a condition that in truth bears no relation at all, a significant result will come out once in every 20 attempts. The more trials are accumulated, the more rapidly the probability of at least one “significant” result rises.
Significance level 5%, 20 independent trials
Probability of at least one false positive = 1 − 0.95^20 = 0.642 = 64.2%
100 independent trials under the same conditions
1 − 0.95^100 = 0.994 = 99.4%
Level under the Bonferroni adjustment
0.05 ÷ 20 = 0.0025
This calculation assumes that each trial is independent, and because conditions that lie close to one another are strongly correlated the figures are no more than a rough guide; the direction, however, does not change — the more trials there are, the harder a false positive becomes to avoid. In testing Fibonacci and pivots, combining the ratio, the zone width, the width for a rebound and the width for a failure, the observation window, the pivot method, the base period, the time frame and the instrument covered makes it possible to construct anywhere from thousands to tens of thousands of conditions. The best one among them is the condition that fitted past price movement most closely; it is not a result that shows a property of the level.
The treatment of data snooping
The primary source that addresses this problem head-on is White (2000). That paper defines data snooping as the use of a given set of data more than once for purposes of inference or model selection, and it frames the null hypothesis to be tested as the proposition that the best model encountered within a particular search has no predictive superiority over a given benchmark. In notation it is written as max_k E(f_k*) ≤ 0. As a procedure, the series of the relative performance of the models against the benchmark is resampled by the stationary bootstrap, and the statistic for the best model is compared with that distribution. As a worked example, the paper presents one-day-ahead prediction of the daily returns of the S&P500. It constructs 3,654 linear models that select three out of 29 indicators, with the benchmark taken to be a model with only a constant term.
Where the criterion is the directional hit rate
Best model 54.75%
Benchmark 50.79%
Naively calculated p value 0.0036
Reality Check p value 0.2040
Where the criterion is prediction error
Naively calculated p value 0.1068
Reality Check p value 0.3674
Seen in terms of the directional hit rate, the best model exceeds the benchmark by close to 4 points and the naive p value is 0.0036; but the Reality Check p value, which takes the scale of the search into account, is 0.2040, and the null hypothesis cannot be rejected. The author states that anyone relying on the naive p value is seriously misled, and explains that the difference between the two gives a direct estimate of the bias arising from data mining.
One point about the premises is readily misunderstood, and is set out here. That paper does not require that the set of models be fixed in advance. On the contrary, it states as an advantage of the method that it can be applied to a search in which models are added one after another. What it does state expressly as premises are that the models are finite in number, that the benchmark be specified in advance, and conditions of stationarity and mixing on the series. The understanding that “it cannot be used unless every candidate is written out before the search begins” therefore differs from what this paper requires.
The probability of over-optimisation (PBO) and its limits
Another primary source is the probability of backtest over-optimisation (PBO) of Bailey, Borwein, López de Prado & Zhu. PBO is defined as the probability that the configuration selected as best in sample falls below the median of the N configurations out of sample. The section of the original paper that gives the definition uses the median, and only the concluding part shows a variation in wording, using the mean; the definition section is followed here.
A procedure called CSCV is used for the estimation. The series of profit and loss is divided into an even number S of blocks; S/2 of them are allocated to training and the remainder to validation, and every possible combination is run. The characteristics of this construction are that training and validation are of equal size and symmetric, that the chronological order is preserved, and that, because the same input always returns the same result, a third party can reproduce it.
The original paper sets out the limits of this method as a chapter of its own.
- This method does not evaluate the correctness of the backtest at all. The original paper states expressly that, if the setting of transaction costs is wrong, or if data that was not obtainable at the time of the decision has been used, it merely returns an evaluation based on distorted information.
- Every trial attempted must be disclosed. Calculating while concealing some of them results in understating the degree of over-optimisation.
- This method must not be used as a tool for searching out the best strategy. The original paper treats that as a serious misuse, and states that any measure against over-optimisation will, if made the objective function for selecting a strategy, give rise to over-optimisation against that very metric.
It may be added that a statement to the effect that models whose PBO exceeds 0.05 are to be rejected is in wide circulation, but the original paper goes no further than to state this in the conditional, as what would conventionally be done. It is not asserted as a norm. This article likewise does not present it as a criterion for judgement.
Record the whole set of conditions tried
From the above, a practical requirement follows. It is to record and disclose not only the condition finally adopted, but the whole set of conditions listed above, the conditions that were excluded, and the criterion used in choosing the best. This article does not present any conversion for calculating the required length of the sample from the number of trials.
It may be added that the exercise of seeing whether performance collapses when a parameter is moved slightly is useful as a way of reading the record. A result in which one single point stands out as good and the points on either side of it collapse is a clue that invites suspicion of a fit to past price movement. This is not, however, a rule of judgement.
How much width is there around that point estimate?
A point estimate has a width
The figure of 1.0 for the expected value after deduction of costs is a point estimate. Apply the same rule to another 100 trades and a different value will come out. Unless a width is stated alongside it, therefore, nothing has been said at all.
Expected value per trade after deduction of costs E_net = 1.0 (the value obtained in "The win rate and the expected value take trades as their denominator")
Standard deviation per trade 15
Number of trades 100
Standard error = 15 ÷ √100 = 1.50
95% interval = 1.0 ± 1.96 × 1.50 = [ −1.94, 3.94 ]
The interval straddles zero. On a record of 100 trades, it is not possible to conclude that this expected value is positive. The number of trades at which the interval ceases to straddle zero is worked back from the same standard deviation.
The smallest n satisfying 1.96 × 15 ÷ √n < 1.0
At n = 864 1.96 × 15 ÷ √864 = 1.00021 (does not satisfy the condition)
At n = 865 satisfies the condition
Even for the same mean of 1.0, a record of 100 trades and a record of 865 trades mean different things. This calculation, however, rests on the approximation that the profit or loss on each trade is independent, follows the same distribution and has finite variance, and the standard deviation of 15 is itself an estimate from the sample. An actual trading record may have a skewed distribution and may be correlated over time. This n is a rough guide, not a boundary at which reaching it settles the conclusion.
A proportion has a width too
The same applies to the reaction rate. 236 ÷ 400 = 59.0% is likewise a point estimate, and it carries a width. The more finely the conditions are divided, the smaller the denominator becomes: divide by year, by time of day and by direction, and the 400 cases there were in the whole become a few dozen in each division, so that the width widens rapidly.
Methods of interval estimation, the design of the denominator for a conditional proportion, and the calculation of how the denominator changes between reaching a level and support or resistance are dealt with by the conditional rate at which Fibonacci zones are reached and the design of the denominator. All this article can settle is the point that a proportion must always be stated together with its denominator and its width.
Once this is taken into account, the form of the report settles itself naturally. Rather than “the expected value was 1.0”, write “in this sample of 100 trades the mean per trade after deduction of costs was 1.0 and the 95% interval was [ −1.94, 3.94 ], so the sample is insufficient to conclude that it is positive”. Rather than “the reaction rate was 59.0%”, write “of the 400 cases of reaching a level as defined in advance, 236 satisfied the condition for a reaction, a proportion of 59.0%”. Take the figure alone and it looks like a strong claim; attach the denominator and the width and it looks like a weak one — but the latter is what the sample actually supports.
What are the methodology papers cited here a source for?
In addition to the empirical studies, this article cites three papers. These are a source on how to evaluate, not an evaluation of the subject itself. Because the two are readily confused, the scope of their use is delimited here.
White (2000) and the paper by Bailey and others are not evidence about Fibonacci or pivots. They are a source on method — on how results are to be evaluated when a large number of conditions has been tried. The S&P500 example shown by the Reality Check p value is not a conclusion about the effectiveness of technical indicators in general; it is an illustration of how misleading an evaluation that does not take the scale of the search into account can be. PBO and CSCV are likewise a framework for evaluation, not an evaluation of the subject itself.
There is one further tool, which becomes necessary only where a design that issues statements of probability is adopted. Brier (1950) is a paper on weather forecasting that gave the earliest definition of it. The score is defined as P = (1/n) Σ_j Σ_i (f_ij − E_ij)², where n is the number of occasions forecast, f_ij the probability forecast, and E_ij takes 1 where the event occurred and 0 where it did not. The range of values in the original paper is 0 to 2, where smaller is better and 0 is a perfect forecast. The range of 0 to 1 explained in modern practice comes from a later variant which, in the binary case, sums only one of the classes; its range differs from the definition in the original text.
The author states expressly two conditions of application: that the forecast be expressed as a statement of probability, and that the classes be mutually exclusive and exhaustive, so that the probabilities sum to 1. This is a paper about weather forecasting, and conditions for applying it to financial markets are not discussed at all.
This article therefore goes no further than to place this tool as “something that becomes usable only once a statement of probability has actually been issued”.
What has been settled, and what has not
What this article has settled is the design of how to measure. There are seven points: separating the four stages of metrics and attaching to each its denominator and the event it counts; constructing the comparison target under the same conditions; fixing the definitions before looking at the results; estimating costs across their full range and examining the sensitivity; dividing the sample in chronological order; recording the whole set of trials and taking the scale of the search into account; and stating a width alongside a point estimate.
What has not been settled is stated expressly as well. Whether any particular ratio or level has a property that exceeds other price bands; what values it is appropriate to set for the tolerance width and the definition of a reaction; what remains after costs have been deducted. None of these is a question this article answers. What has been set out is only the design side — what to measure, and how, for an answer to these to carry meaning.
Lastly, one point only on the relation to the tools. A platform may be equipped with a function that applies a trading rule to past data and aggregates the performance automatically. What such a function returns is the result of aggregation under the conditions the user specified. That the aggregation is automated does not mean that the design of that aggregation is sound. Whether a comparison group was set; whether the definition of the event was fixed before the results were seen; whether the number of variations tried is being counted; whether the sample was divided in chronological order; how costs were estimated; how the dependence between observations was treated. Each of these is a matter the user decides, and none is something the automatic calculation covers. What this article deals with is only this design side.
And even a verification result that satisfies every one of the procedures set out so far is an evaluation of a past record. It does not indicate future performance, nor can it be presented as future performance.
Articles to read next
- If you wish to identify the object of the test itself, please proceed to Why pivot values differ according to the method. It deals with the causes by which even the same “R1” comes to a different price from implementation to implementation, separated into four: the source, the inputs, when the values become final, and rounding.
- If you wish to start from how to keep the record, please proceed to the procedure for measuring overlaps between Fibonacci and pivots without double-counting. It deals with the procedure for folding two lines that came from the same input into one.
- If you are proceeding to the design of the denominator and to interval estimation, please proceed to the conditional rate at which Fibonacci zones are reached and the design of the denominator. It deals, with worked examples, with how the denominator changes between reaching a level and support or resistance, and how far the interval widens when the sample is thin.
What to check before you use it
This article provides general information on the design of verification in technical analysis; it does not recommend any particular product, currency pair, method of trading, company, platform or automated trading program. Apart from the figures reported by the studies cited, all the figures carried here are synthetic values for the purpose of explanation. The levels dealt with here are all candidates for observation; they neither determine the direction of the price nor guarantee a rebound or that a level will be reached. A verification result based on past data does not indicate future performance. Please make the actual decision on your own responsibility.
No conclusion is reached as to which ratio or which level is effective, and it is stated neither that Fibonacci or pivots are effective nor that they are ineffective. Nor are any recommendations made as to the settings for trading — entry, exit, where orders are placed and size — or as to any particular indicator itself.
Information referred to
The subject, the period, the comparison group and the reported figures of each paper are set out in the body text. What is given here is the bibliographic information and the boundaries of use in this article.
- Carol Osler, Support for Resistance: Technical Analysis and Intraday Exchange Rates. FRBNY Economic Policy Review, Vol.6 No.2, July 2000, pp.53-68. This article uses this paper as grounds for the items set out in “What do the two empirical studies report, and what do they not report?” — the market, the time frame, the period, the object tested, the comparison group, the reported figures and the dependence on the period. It is not used as grounds for the effectiveness of Fibonacci levels, for the effectiveness of pivots obtained from a formula, for profitability after deduction of transaction costs, or for generalisation to other markets or other time frames. That paper does not test profitability, and the author states in the concluding part that this is a subject for future research.
- Tsinaslanidis, Guijarro & Voukelatos, Automatic identification and evaluation of Fibonacci retracements: Empirical evidence from three equity markets. Expert Systems with Applications, Vol.187, 2022, article 115893. DOI 10.1016/j.eswa.2021.115893 This article uses this paper as grounds for the subject, the period, the object tested, the comparison group, the statistical method and the reported figures set out in the same section, and for the authors’ own reservations. It is not used as grounds for foreign exchange, for time frames other than the daily, for use in combination with other indicators, or for different rules for identifying highs and lows. That paper does not deal with transaction costs, and no word to that effect appears in its body text. What this article states about how costs bear on the conclusion is only the conditional statement that it changes according to whether the number of trades and the turnover of the two sides being compared are aligned. That is this site’s own organisation of the point, not an argument made by the authors.
- Halbert White, A Reality Check for Data Snooping. Econometrica, Vol.68 No.5, September 2000, pp.1097-1126. DOI 10.1111/1468-0262.00152 The version whose body text this article checked is not the publisher’s version but a version of the same paper hosted on a university course page. The formal citation is by the DOI given above. This article uses this paper as grounds for the definition of data snooping, the form of the null hypothesis, the procedure, each of the figures in the worked example set out in the body text, and the premises. It is not used as grounds for the effectiveness of Fibonacci or pivots. That paper does not require the set of models to be fixed in advance, and states its application to a search in which models are added one after another as an advantage.
- Bailey, Borwein, López de Prado & Zhu, The Probability of Backtest Overfitting. The Journal of Computational Finance. DOI 10.21314/JCF.2016.322 This article uses this paper as grounds for the definition of PBO, the construction of CSCV, and the limits that the original paper sets out expressly as a chapter of its own. It is not used as grounds for presenting a threshold for PBO as a criterion for judgement, or for any quantitative relationship between the number of trials and the required length of the sample. The threshold of 0.05 is something the original paper states in the conditional, as what would conventionally be done.
- Glenn W. Brier, Verification of Forecasts Expressed in Terms of Probability. Monthly Weather Review, Vol.78 No.1, January 1950, pp.1-3. This article uses this paper as grounds for the defining formula of the score for verifying probability forecasts, for the fact that the range of values in the original paper is 0 to 2, and for the two conditions of application the author states expressly. It is not used as grounds for the applicability to financial markets or for the effectiveness of technical levels. That paper takes weather forecasting as its subject and does not discuss conditions for applying it to finance.
Apart from the figures reported by the academic studies cited, the numerical examples in this article are all synthetic values created for the purpose of explanation. The calculations are carried out on the values before rounding, and only the display is rounded. They are not the performance of an actual instrument or period, nor do they indicate future performance.
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.