Find the bar index of the highest value
One step with Twelve Data. We can help you get access.
Look something up
Find the bar index of the highest value
with Twelve Data
Works with AI assistants
Use Twelve Data: its Twelve Data Technical Indicator API lets you find the bar index of the highest value in a single step (GET /maxindex). Twelve Data also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.
- At which bar did the highest value in the window occur?
- Can I get the position of a rolling peak rather than its value?
Say it to your AI assistant
- Get the max index for {symbol} at {interval}.
- Locate where the peak occurs within each {time_period}-bar window for {symbol} at {interval}.
For your developer
GET /maxindex in Twelve Data Technical Indicator API. Full spec on APIs.io.