> ## Documentation Index
> Fetch the complete documentation index at: https://docs.streamwizard.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Predictions

> Your Twitch prediction on stream with live channel points, a countdown until it locks, and the winner when you call it.

The prediction widget shows the prediction you're running on Twitch: the
outcomes, how channel points are stacking up, a countdown until betting closes,
and the winner once you pick one.

![A prediction overlay showing two outcomes and their channel point totals.](https://mintcdn.com/streamwizard/BNQY8cJEbkTpk4aP/images/overlays/prediction-widget.png?fit=max\&auto=format\&n=BNQY8cJEbkTpk4aP\&q=85\&s=fb27861d3f0004164b9bbe4c69dacfc8)

A prediction with channel points on both outcomes.

## Before you start

* You have an overlay. [Make one first](https://docs.streamwizard.org/overlays/quickstart.md) if you don't.
* You start predictions on Twitch, not in StreamWizard. Twitch doesn't let
  other apps create them.

## Add the prediction widget

**1. Add the widget**

In the overlay editor, open **Widgets → Polls & predictions** and pick
**Prediction**.

**2. Check what the panel says**

The top of the settings tells you what Twitch is reporting right now,
whether that's a prediction in progress or **No prediction running**.

**3. Start one to try it**

Select **Start a prediction on Twitch** to jump to your Stream Manager, or
use the **Test** buttons to fake one without touching your channel.

## Designs

**Design** has five, shared with the [poll widget](https://docs.streamwizard.org/overlays/polls.md). Picking one
resizes the widget to suit it.

| Design | What it looks like |
| - | - |
| **Bars** | Horizontal bars that fill up. The all-rounder. |
| **Columns** | Vertical bars side by side. |
| **Donut** | A ring split by share. |
| **Strip** | One thin line. Good along the top of a screen. |
| **Race** | Outcomes running at each other. |

## What happens as the prediction plays out

A prediction has more stages than a poll, and the widget follows all of them:

1. **Open.** Viewers spend points. The countdown shows how long is left.
2. **Locked.** Betting has closed and you haven't called it yet. The countdown
   spot reads `Locked`.
3. **Resolved.** You picked the winner. The winning outcome celebrates and the
   result stays up for **Show the result for** seconds, then the widget hides.

**Stay up while locked** controls the middle stage and is on by default.

> [!WARNING]
>
> Turn **Stay up while locked** off and the widget vanishes for the whole locked
> stretch. If you lock a prediction and then play a twenty-minute match before
> calling it, your viewers see nothing for twenty minutes. Leave it on unless you
> have a reason.

A refund never celebrates, whatever **When you pick the winner** is set to.

## Settings

**Prediction**

| Setting | Default | Notes |
| - | - | - |
| **Title** | Empty | Uses the question from Twitch when empty. |
| **Stay up while locked** | On | See the warning above. |
| **Show the result for** | 10 s | 3 to 60. |

**Show** toggles **Title**, **Percentage**, **Channel points** and
**Countdown**. Channel points is the one that's off by default.

**Colors** has **Each outcome**, giving all ten outcome slots their own colour,
or **Leader only**, which highlights whichever outcome is winning and greys the
rest. Twitch allows up to ten outcomes, though most predictions use two.

**Motion** covers **Flash on points**, which blinks an outcome each time
viewers back it, and **When you pick the winner**, which is **None**, **Glow**
or **Confetti**.

## See it before you go live

You don't need a real follower to see a widget work. In the overlay editor,
select **Demo** in the toolbar to open the demo panel, pick an event and
select **Fire**.

The **Local** and **Live** switch decides where those events go:

| Mode | Where the event lands |
| - | - |
| **Local** | This canvas only. Nothing leaves the editor. |
| **Live** | Through the overlay server, so this canvas and every overlay you have open get the same event. |

Live stays greyed out until the editor is connected to live events. Local is
the safe default while you're still building: nothing reaches a stream you
happen to have running.

The mode covers every test in the editor, including the **Test** buttons inside
the alert box settings.

Testing the same alert for an hour? Select the speaker button in the editor
toolbar to mute the editor. It silences alerts, clips and custom widgets on the
canvas, and stays muted the next time you open the editor. Your overlay in OBS
still plays sound.

> [!TIP]
>
> Simulators keep running after you close the demo panel, which is what you want
> when you're dragging a widget around and need events arriving the whole time.
> The **Demo** button shows a count while any are running.

The **Test** row walks the whole lifecycle: **Start**, **Points**,
**Close call**, **Lock**, **Pick winner** and **Refund**. Select
**Back to your Twitch prediction** when you're done to drop back to real data.

## If it doesn't work

> [accordion] The widget shows nothing on stream
>
> That's deliberate when there's no prediction running. In the editor you get
> a dashed box telling you why instead, so you can still place it.

> [accordion] StreamWizard needs permission to read your predictions
>
> StreamWizard asks Twitch for a set of permissions when you sign in. That set
> grows when new widgets need new data. If your account is older than a widget,
> your Twitch token predates the permission it needs, and the widget can't load.
>
> You'll see a **Connect Twitch** button in the widget's settings when this
> happens. One trip to Twitch and back fixes it for every widget at once.
>
> > [!NOTE]
> >
> > StreamWizard checks your permissions on a schedule rather than on every page
> > load, so the button can take a little while to appear after a new widget ships.
> > Signing in again always works, whether or not the button is showing.

> [accordion] The result was gone when I reloaded the overlay
>
> Twitch only reports a finished prediction for 60 seconds after it ends.
> Reload later than that and there's nothing left to show, even with
> **Show the result for** turned up.

> [accordion] Corner radius does nothing
>
> **Donut** and **Race** don't have corners to round, so the control is hidden
> for those two. A value you set on another design is kept and ignored.

## Next steps

> [card] [Polls](https://docs.streamwizard.org/overlays/polls.md)
>
> The same five designs, for Twitch polls.

> [card] [Goals](https://docs.streamwizard.org/overlays/goals.md)
>
> Follower, sub and Bits goals as progress bars.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.