Skip to main content
All CollectionsAPI and Indicators
How do pattern recognition indicators work and how to use them efficiently
How do pattern recognition indicators work and how to use them efficiently

Understanding Responses from Pattern Recognition Indicators

Updated over a month ago

When you call pattern recognition indicators (e.g., Doji), the response is a numerical value representing the likelihood of that pattern being present in a given candle.

Responses:

  • 100: The pattern is found at this candle.

  • 0: The pattern is NOT found at this candle.

  • -100: bearish variation of the pattern is found at this candle (note: not all patterns have bearish variations).

  • 80 (or any other value): The pattern is found, but with partial accuracy (e.g., 80% match to the perfect form).

Best practices:

For effective use of pattern recognition indicators, it’s recommended to scan multiple past candles using the results parameter. This allows you to identify where the pattern has appeared in a given timeframe.

Example query

The following example demonstrates how to search for a Doji pattern across the last 20 hourly candles using the results=20 parameter:

https://api.taapi.io/doji?secret=APIKEY&symbol=BTC%2FUSDT&interval=1h&exchange=binance&results=20

Response example

This will return a response like clearly showing when did the doji pattern appear:

Tip: Use the addResultTimestamp=true parameter to include a timestamp with each result, making it easy to identify when the pattern occurred.

Did this answer your question?