Get started

Get alerts

When a script's alert() condition is met on a closed bar, you get told.
Signed in, the server checks every bar for you, so the alert comes even with the browser closed.

Turn one on

  1. Put alert(condition, 'message') in your script. Up to 10 per script.
  2. In the app's script editor, open Automation › Get alerts in the bottom panel. It first shows how many times it would have rung on the chart's bars.
  3. Pick the market and timeframe, then press Get alerts on …. It watches from the next bar.
  4. To get it with the browser closed, turn on Get alerts with the browser closed once on each device. It's right below the button.
ema-cross-alert.js
//@version=2
indicator({ name: 'EMA cross alert', overlay: true })
const fast = ta.ema(close, 12)
const slow = ta.ema(close, 26)
plot('Fast EMA', fast, { color: color.orange })
plot('Slow EMA', slow, { color: color.blue })
alert(ta.crossover(fast, slow), '{symbol} golden cross at {close}')
alert(ta.crossunder(fast, slow), '{symbol} death cross at {close}')

Open the app →

What a message can hold

WordBecomes
{name}The indicator’s name
{symbol}The market’s name
{close}That bar’s close
{time}That bar’s time
Scripts from the Pine Script® converter work too: alertcondition and alert become alerts, and {{close}} {{ticker}} {{time}} become the words above.

Server alerts and on-screen alerts

An alert that meets all of these is checked by the server, so it rings with the browser closed.
Otherwise it rings only in this browser, while the terminal is open.

Server alert
AccountSigned in
MarketKorean stocks, Upbit and Bithumb KRW, Binance futures, Hyperliquid
Timeframe1 to 1440 minutes, days, weeks, months (no seconds or tick bars)
DataOnly the chart market's own bars. A script with request.bars, request.data or request.financial (Pine's request.security and currency rates included) stays an on-screen alert.

Turn on “Get alerts with the browser closed”

Turning an alert on isn’t enough to get it with the browser closed.
Each device that should get it needs this switch on once.

DeviceInstall the app?
PC (Chrome, Edge, Firefox, Safari on Mac)No
AndroidNo
iPhone · iPadYes (iOS 16.4 or later): iPhones only push to apps added to the Home Screen

PC · Android

  1. Open funnest.xyz/trade and sign in.
  2. Open one of these. They all have the same switch.
    · The 🔔 at the top right › ⚙ Notification settings
    · The Alerts tab under the chart (on a phone, the 🔔 above the chart)
    · Script editor › Automation › Get alerts
  3. Turn on Get alerts with the browser closed.
  4. When the browser asks whether to show notifications, press Allow. The switch stays on: done.

iPhone · iPad

  1. Open funnest.xyz/trade in Safari.
  2. Press ⋯ at the bottom right › Share › Add to Home Screen, keep Open as Web App on, then Add.
  3. Open Funnest from its Home Screen icon and sign in again.
    The app keeps its own sign-in, apart from Safari.
  4. Turn the switch on as in steps 2 to 4 above, and allow notifications.
Each device is separate.
To get alerts on both your PC and your phone, turn the switch on in both.

When it doesn't come

  • It says notifications are blocked: allow them in the site settings next to the address bar, then reload.
    iPhone: Settings › Notifications › Funnest.
  • If the browser program is fully closed, the alert arrives the next time it opens.
    In Chrome, Settings › System › keep background apps running lets it arrive with the window closed.
  • Windows: in Settings › System › Notifications, check that the browser is allowed and Do not disturb is off.
  • Mac: allow the browser in System Settings › Notifications.

Managing alerts

  • Alerts you turned on gather in the terminal’s bottom Strategies tab: on and off, delete, how many times each rang, and the history.
  • Several alert()s true on the same bar come as one message.
  • One alert rings up to 20 times an hour.
    Past that, it rests until the hour has passed.
  • Five failures in a row (over 2 seconds, too much memory, a script error) turn it off, with the reason shown.
  • If a check comes late (the server was briefly down), it says so.
    A bar over for longer than a bar isn’t rung.