# Stock Analyzer: Bullish or Bearish, Support & Resistance (`tacps126/stock-analyzer`) Actor

Ask about any stock, ETF, index or crypto and get a direct answer: bullish, neutral or bearish with confidence, the reasons, support and resistance, a volatility stop, the likely 5-day range, trend on three timeframes, risk and next earnings. US, Europe, Japan. No API key.

- **URL**: https://apify.com/tacps126/stock-analyzer.md
- **Developed by:** [Tapaswai Choudhary](https://apify.com/tacps126) (community)
- **Categories:** Business, AI, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.60 / 1,000 stock answers

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Stock Analyzer: Bullish or Bearish, Support & Resistance

Paste tickers and get a **direct answer** for each one, not a wall of indicators: is the chart bullish, neutral or
bearish, how sure is that read, why, and which price levels matter. Stocks, ETFs, indices and crypto in the US, Europe
and Japan. No API key, no account. Works well from AI agents and chatbots: one short row per ticker.

### What you get

| Field | What it says |
|---|---|
| `verdict`, `confidence` | bullish, leaning bullish, neutral, leaning bearish or bearish, with high / medium / low confidence |
| `answer` | one sentence, e.g. "TSLA is bearish technically (high confidence): trend down short term, down medium term, down long term; momentum negative; support 339.82 USD (-1.7%), resistance 353.06 USD (+2.1%)." |
| `why`, `against` | the main reasons in plain words, and which pieces disagree with the verdict |
| `trend` | up / down on the short (20-day), medium (50-day) and long (200-day) term, and trend strength |
| `momentum`, `rsi14` | overbought, positive, neutral, negative or oversold |
| `support`, `resistance` | the nearest levels from past swing highs and lows, with distance in percent |
| `stopIfLong`, `stopIfShort` | volatility stops two average daily ranges away |
| `range5Days` | where about 68% of past 5-day moves would put the price |
| `risk`, `volatilityNow` | low / medium / high from one-year volatility; whether volatility is calm, normal or elevated now |
| `signalsToday` | classic signals that fired on the latest bar, with how often they worked on this ticker before |
| `sentiment`, `analystConsensus`, `analystUpsidePct`, `nextEarningsDate` | news and crowd mood, analysts' view and target, next earnings |
| `today` | where the day stands: pre-market move and volume, the gap, how often gaps like it filled the same day or kept going on this stock, VWAP, the opening range, pre-market and previous-day high and low, and one sentence, e.g. "Pre-market +8.84% on 11.5M shares (2.63% of an average day); past gaps up of 5%+ on this ticker filled the same day 33.3% of the time and kept going 16.7% (6 cases)." |

Optional: add checks, and each answer says whether they are true now and how they worked on that stock before. Turn
on "only tickers where a rule is true now" to use it as a screener.

- **Ready-made rules**: tick `golden-cross`, `oversold-bounce`, `breakout-on-volume`, `pullback-in-uptrend` and 12
  more. No writing needed.
- **Your own rules**: one line of plain text, `[Name =] [bearish:] condition`. The name is only a label you choose;
  `bearish:` means you expect a fall afterwards. Examples:

  - `rsi_14 crosses above 30`: RSI climbs back above 30.
  - `Dip = close > sma_200 and rsi_2 < 10`: a sharp dip inside a long uptrend, shown as "Dip".
  - `bearish: close < sma_50 and volume > 2 * volume[1]`: breaking down on double volume.

  Conditions use `open`, `high`, `low`, `close`, `volume`, indicator columns named with their settings (`rsi_14`,
  `sma_200`, `ema_50`, `macd_12_26_9`, `bb_lower_20_2`, `highest_20`, `relvol_20`, 35+ in all), `< > <= >= ==`, `and`,
  `or`, `not`, `crosses above`, `crosses below`, `is rising`, `is falling`, `+ - * /` and `x[n]` for n bars ago. The
  full list is in Stock Market Data & Technical Analysis under "Writing rules".

Optional: turn on **Visual report** for one page with charts (the year for every ticker, today's moves, each stock's
price with its averages, support and resistance with their prices, and today's session), linked from the run's Output tab.
Charts zoom 2x or 4x and scroll sideways; the switch sits right under the tickers.

### How to use

1. Add tickers as on Yahoo Finance (`AAPL`, `SPY`, `7203.T`, `SAP.DE`, `HSBA.L`, `BTC-USD`) or TradingView
   (`NASDAQ:AAPL`).
2. Press **Start**. Export to JSON, CSV or Excel, or send to Google Sheets, Slack or a webhook. Schedule it daily for a
   watchlist.

#### Example input

```json
{
  "tickers": ["AAPL", "NVDA", "SPY", "7203.T", "BTC-USD"]
}
```

#### Example (shortened)

```json
{
  "type": "answer",
  "symbol": "AAPL",
  "price": 342.56,
  "verdict": "neutral",
  "confidence": "low",
  "answer": "AAPL is neutral technically (low confidence): trend down short term, up medium term, up long term; momentum neutral; support 336.85 USD (-1.7%), resistance 346.02 USD (+1.0%).",
  "why": ["Technical rating sell (-0.19): moving averages sell, oscillators sell.", "Uptrend: price above SMA50 and SMA200; trend weak or ranging."],
  "support": 336.85,
  "resistance": 346.02,
  "stopIfLong": 326.2,
  "range5Days": { "low": 331.85, "high": 353.61 },
  "risk": "low",
  "nextEarningsDate": "2027-02-04"
}
```

### Pricing

| Event | Price |
|---|---|
| Stock answer (one row per ticker) | $0.002 |
| Visual report (optional) | $0.05 per 25 tickers |
| Run start | $0.005 |

A daily answer for 20 tickers costs about $0.045.

### Good to know

- The verdict is a technical read of the chart, with news and crowd mood as one input. It is not investment advice,
  and past patterns do not promise future moves.
- Confidence says how much the pieces agree (rating, trend on three timeframes, momentum, sentiment); a "leaning"
  verdict is never high confidence.
- Prices can be delayed by up to 15-20 minutes during market hours.

### FAQ

**I want every indicator and the full backtests.** Use Stock Market Data & Technical Analysis: the same engine with
all the data, your own indicators and rules, flat output for spreadsheets.

**I want alerts for a watchlist with insider trades and filings.** Use Market Pulse.

# Actor input Schema

## `tickers` (type: `array`):

Stocks, ETFs, indices, crypto or FX as on Yahoo Finance (AAPL, SPY, ^GSPC, 7203.T, SAP.DE, HSBA.L, MC.PA, BTC-USD, EURUSD=X) or TradingView (NASDAQ:AAPL, TSE:7203). Up to 500.

## `report` (type: `boolean`):

Also save one page with charts and tables built from this run's data: performance of every ticker over the last year, the latest day's moves, an overview table, factor scores, and per ticker a price chart with the 50 and 200-day averages, support and resistance, today's session and your rules. Open it from the run's Output tab. Charged per 25 tickers in the report (a run with up to 25 is charged once).

## `range` (type: `string`):

How much history the answer reads (2 years by default). The 200-day trend needs at least 1 year.

## `rulePresets` (type: `array`):

Pick ready-made rules instead of writing them; each is tested like your own and shows up under rules with its name. Both can be used together.

## `rules` (type: `array`):

Write a rule as plain text, one per line. Shape: \[Name =] \[bearish:] condition. Name is optional and is only the label you will see in the output ("Oversold bounce = ..." names the rule "Oversold bounce"). Rules are bullish by default (tested for a rise afterwards); start with bearish: to test for a fall instead. The condition compares columns: open, high, low, close, volume, or any indicator column written name_settings, e.g. rsi_14, sma_200, ema_50, macd_12_26_9, macd_signal_12_26_9, bb_lower_20_2, highest_20, relvol_20, supertrend_dir_10_3 (you do not need to add them under Your indicators first). Words you can use: < > <= >= == !=, and, or, not, crosses above, crosses below, is rising, is falling, + - \* /, abs(x), min(a, b), max(a, b), brackets, and x\[n] for the value n bars ago. Examples: rsi_14 crosses above 30 (RSI leaves oversold) | bearish: close < sma_200 and rsi_14 > 60 (weak stock bouncing into resistance) | Breakout = close > highest_20\[1] and relvol_20 > 1.5 (new 20-bar high on 1.5x usual volume). Each rule returns: how often it fired, how often the price then rose (fell for bearish) after each horizon, the average move, the base rate, the edge over it, and whether it is true now. Full list of indicators and columns in the README under Writing rules.

## `onlyMatching` (type: `boolean`):

Screener use: skip tickers where none of your rules is true on the latest bar. You pay only for tickers returned.

## `fields` (type: `array`):

Optional. Return only these fields, e.g. verdict, confidence, answer, support, resistance. Ticker and type are always kept.

## `proxyConfiguration` (type: `object`):

Apify proxy on by default. Leave it as is unless you want to use your own proxy.

## `debug` (type: `boolean`):

Verbose logs.

## Actor input object example

```json
{
  "tickers": [
    "AAPL",
    "NVDA",
    "TSLA",
    "SPY",
    "7203.T",
    "SAP.DE",
    "BTC-USD"
  ],
  "report": false,
  "range": "2y",
  "onlyMatching": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "debug": false
}
```

# Actor output Schema

## `results` (type: `string`):

One answer per ticker: verdict, confidence, reasons, levels, stop, range, trend, risk.

## `report` (type: `string`):

Charts and tables for the whole run, when Visual report is on.

## `summary` (type: `string`):

Counts, warnings, and whether the run stopped early.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "tickers": [
        "AAPL",
        "NVDA",
        "TSLA",
        "SPY",
        "7203.T",
        "SAP.DE",
        "BTC-USD"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("tacps126/stock-analyzer").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "tickers": [
        "AAPL",
        "NVDA",
        "TSLA",
        "SPY",
        "7203.T",
        "SAP.DE",
        "BTC-USD",
    ],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("tacps126/stock-analyzer").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "tickers": [
    "AAPL",
    "NVDA",
    "TSLA",
    "SPY",
    "7203.T",
    "SAP.DE",
    "BTC-USD"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call tacps126/stock-analyzer --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tacps126/stock-analyzer"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/H9EC2oEGmzXY5Vuy2/builds/zQtHobSrR1NgvmyIJ/openapi.json
