Skip to main content

Trading Signals widget

An AI trading-signal card for a single instrument: overall sentiment, key support and resistance levels, a candlestick chart with Bollinger Bands, and the current preferred scenario.

You pass only the instrument and display options. The analysis prompt, model, and time window are owned and updated server-side, so the signal quality improves without any change to your embed.

The sentiment pill carries a direction arrow as well as its color (↗ bullish, ↘ bearish), so the bias is still readable if your palette makes the two colors hard to tell apart.

You don't have to set any colours — the defaults adapt to data-theme, so a dark embed stays readable without you touching the palette (see Parameters).

The color knobs are semantic, with the same meaning in light and dark themes:

  • primaryColor: brand accent for section icons, promo, pivot, and links
  • secondaryColor: support levels and the alternative-scenario accent
  • bullishColor: bullish sentiment and the bullish preference
  • bearishColor: bearish sentiment, resistance levels, and the stale marker
  • linkColor: hover states on the share button and inside the share sheet

Bollinger Bands sit outside that palette on purpose: teal for the envelope, purple for the moving average, adapting to light and dark themes on their own. They mark positions on a statistical envelope rather than brand roles, so your sentiment colours don't repaint them. Use bollinger to pick one band, two, or none.

The RSI pane under the price chart works the same way: fixed colours, computed in the browser, and switched off with showRsi.

Sharing​

Every signal carries a Share button. It sends the analysis to WhatsApp, Telegram or X, or copies a link — and on mobile it can attach the card as an image through the OS share sheet.

What the recipient gets:

  • A branded preview card with the instrument, its bias, the pivot, the nearest support and resistance levels, and the publish time. The card is DealSize-branded rather than themed to your palette, since it travels into group chats on its own.
  • A link that opens DealSize, not the embedding site, showing the full analysis that was shared — chart, levels and written scenarios — with a button to generate a current signal for the same instrument.

The card is frozen at the moment it was shared, so a link resurfacing weeks later still shows the signal that was actually sent, clearly labelled with its original publish time.

The full analysis behind the link is kept for a few hours after the signal is generated. Once that instrument produces a newer signal, the link says so plainly and offers the current one instead — so a recipient is never shown stale analysis as though it were live. Either way they land on DealSize with the instrument already in hand.

Sharing is always available and has no configuration flag; linkColor is the only part you can style.

Signals by email​

The card offers readers the DealSize signals email, sent before every market open. Pass your partner id with data-partner and each signal a reader opens from it links back to you. See Parameters.

Next steps​