Skip to content
All library documents

Computing Pivot Levels and Identifying Intraday Swings

Article Quant Q&A · Author: Alex

Summary

The question distinguishes formula-based pivot levels from the multiple turning points a trader may want to mark within an intraday candlestick chart. It mentions conventional variants such as Camarilla, DeMark, and Fibonacci pivots, and asks whether derivatives or machine learning are needed to identify shorter-term highs and lows. The response says pivot formulas are standard calculations and asks which particular definition is intended, since several exist.

This addresses calculated pivot levels but does not explain an algorithm for detecting all intraday swing points, which are a separate concept in the question. The author also notes that prices are stochastic and generally not differentiable, making a smoothed second-derivative approach questionable. No formula, parameter choice, chart example, or performance evidence is included, so the exchange mainly clarifies the need to define the desired kind of pivot before selecting a calculation method.

Key ideas

  • Pivot levels have multiple definitions, including Camarilla, DeMark, and Fibonacci variants.
  • Formula-based pivot levels are calculated using standard arithmetic methods.
  • Intraday swing highs and lows are distinct from conventional formula-based pivot levels.
  • The exchange does not provide a method for detecting all intraday swing points or evidence about its performance.

Tags

Full text
# Compute the intraday pivot points


# Compute the intraday pivot points












I am interested in calculating and identifying the pivot points on a candlestick plot (i.e. stock values) for different time intervals (e.g. 1min, 5mins, 15mins, 1hour, ...). What is the best way to compute them? Do I need to use second derivative to find them? Do I have to implement a machine learning model to identify them. I am a bit confused how to do that.

EDIT

Be aware that I am not just interested by the pivot pivot point as you can see in this picture https://miro.medium.com/max/1200/0*tmD0hyyTxbrP1Se1. I am also interested by the intraday pivot points. I mean all the major pivot points within a trading day

If I use the @patrick's answer, I only have the red circles on the above picture, but I want to add the green circles as well.

EDIT After computing the intraday pivot points, I guess it will look like this on an candlestick plot.

The thing is stock prices is a stochastic process. Most often it is not differentiable. At the beginning, I wanted to smooth the curve and use second derivative to find pivot points. Not a good idea.

## Answer by patrick (score 1)

https://quant.stackexchange.com/a/66200

Pivot points can be calculated using standard linear algebra. Do you have a specific pivot point in mind? There are lots of them actually - Camarilla, DeMark and Fibonacci. You can use Google to find the formulas.

Example with formula: https://www.investopedia.com/terms/p/pivotpoint.asp

Shown in full with attribution under the source's licence. Licence: CC BY-SA 4.0 (Stack Exchange)

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.