# Wintrading documentation > Real-time crypto screener terminal: aggregated order book densities across every major exchange, liquidity heatmap, trend and arbitrage screeners, footprint charts and alerts. Source: https://wintrading.live/app/docs/welcome ## Getting Started URL: https://wintrading.live/app/docs/getting-started New to Wintrading? This short guide explains what the platform does, the tools you get, and where the data comes from — so you can find the right tool in seconds. ### What is Wintrading Wintrading is an all-in-one platform for crypto traders. It brings together the screeners, charts and order-flow tools you need to watch the market — in real time, across all the top exchanges — in one place. _The Wintrading dashboard_ Instead of jumping between exchange websites, you get a single dashboard that continuously analyses the market and surfaces what matters: where the big orders are, which coins are moving, and when something worth your attention happens. > **Note:** This documentation is organised by tool. Use the menu on the left, or the search box at the top, to jump straight to what you need. The **home screen** lists every tool with a one-line description (paid-tier tools are marked **Pro** / **Pro+**) and a coin search on top — press **Ctrl+K** anywhere in the terminal to jump straight to any coin's chart or heatmap. ### The tools at a glance Each tool answers a different question. Here's when to reach for each one: - **Order Book Screener** — find large limit orders (big buy/sell walls) across the whole market. - **Order Book Heatmap** — see how those orders build up and disappear over time, drawn on the price chart. - **Order Book** — inspect the live buy and sell orders for a single coin in detail. - **Trend Screener** — scan many coins at once and sort them by what's happening right now. - **Coins** — browse the market in a sortable table and keep favourites in watchlists. - **Indicators** — add layers to any chart: momentum, volume, order flow and more. - **Arbitrage** — spot price differences for the same coin between exchanges. - **Alerts** — get notified the moment your conditions are met. - **Listings** — catch newly listed coins as soon as they appear. **On a phone** every section is in the ☰ menu at the top right: screeners, charts and the rest, with the open one highlighted. The menu closes when you open a section, with ✕, or with a tap outside it. > **Tip:** New here? Start with the **Order Book Screener** or **Trend Screener** — they give the fastest overview of what the market is doing. ### The start page The start page — the one the app opens on — shows what every tool sees right now, so you can go straight to the coin that matters instead of opening the tools one by one. A tile's title opens the tool; a row opens its coin. - **Search and recent coins** — the search field opens the coin search (the same one as the magnifier in the header and its hotkey). Next to it are the coins you opened last on the Coins chart or on the heatmap: a click reopens the coin where it was. - **Liquidity Screener** — the large orders nearest to the price, through the filters you set in the screener: the coin, Long or Short, the size, the distance to the price and how long the order has lived. Coins with a NATR (5m/14) below 0.3 are left out, so fiat and stablecoin pairs do not fill the list. A row opens the coin's heatmap. - **Order Book Heatmap** — a live miniature of the heatmap, with your own heatmap settings, for the coin you had open last (BTCUSDT on Binance spot until you open one). - **Trend Screener** — the three biggest gainers and the three biggest losers of the last hour, among coins traded for more than $3M a day on the markets you selected in the Trend Screener and in Coins. - **Coins** — your watchlist with the price, the 1-hour change and the 24-hour volume; while the watchlist is empty, the most traded coins. - **Arbitrage Screener** — each coin's best spread after fees, in the screener's own ranking. - **Alerts** — the alerts that fired last; a dot marks the ones you have not seen. - **Listings** — the newest listings. - **Constructor** — your workspaces; a row opens that workspace. > **Note:** A tile of a tool above your plan (Alerts and Constructor start at Pro, Arbitrage at Pro+) says what the tool does instead of showing data. Logged out, only Listings is live. On a phone the start page is the **Menu** tab: the same tools as a list (see _On your phone_). ### Exchanges & data Wintrading connects to the leading crypto exchanges, for both spot and futures markets: Our servers collect and analyse market data continuously, so the numbers you see update live without refreshing anything. Most tools let you watch one exchange or several at the same time. ### Accounts & plans Wintrading comes in three tiers: - **Trial — 3 days**: a free preview of the core toolset — real-time screeners, order-book heatmap and charts on **Binance Spot**, with up to **2 indicators** per chart. Other exchanges, second timeframes, alerts, the constructor and the arbitrage screener require a paid plan. - **Pro**: real-time screeners, order-book heatmap, charts, alerts, unlimited indicators, second timeframes and every connected exchange. The constructor is limited to 2 workspaces. - **Pro+**: everything in Pro, plus the **arbitrage screener** (futures-to-futures spreads and funding), the **market simulator** (replay the market candle by candle), an **unlimited constructor** and **no limit on your own indicators** (Pro: up to 3). When you open a Pro or Pro+ feature on a lower tier, you'll be prompted to upgrade. Upgrading from Pro to Pro+ is prorated — the value of your remaining Pro days is carried over. > **Tip:** You can also get Pro **for free** by trading through a broker partner — see [Get Premium for free](https://wintrading.live/app/docs/free-premium). ### On your phone On a phone or a narrow window Wintrading works like a mobile app: there is no site header, and a tab bar at the bottom holds the five main sections — **Screeners** (Densities and Trend screener), **Coins**, **Arbitrage**, **Alerts** (with the count of unread notifications) and **Menu**. - Each tab remembers where you left it: the coin open on Coins, Densities or Trend screener on Screeners. - Tapping the tab you are on takes you back to its own page, and on that page scrolls it to the top. - **Menu** is the Wintrading products page: from it open the pages without a tab — the heatmap, Orderbook, Constructor, Listings, Updates, Account, Premium — and the theme and language. Those pages have a bar at the top with **‹ Menu** and the page's name. Coins on a phone - The chart takes the screen; under it, by your thumb, is one row: ≡ (the list of coins), the coin drum, the watchlist mark, the timeframe, ƒx (indicators) and ⋯ (market, chart type, chart settings, only the chart, screenshot and more). - The coin drum shows the open coin with its neighbours from your list (its sorting, filters and watchlist): **turn it left or right** to flick through the list, tap a neighbour to open it, tap the coin in the middle or ≡ for the whole list. The exchanges and the page settings are at the top of that list. - **⋯ → Only the chart** leaves only the chart: the row and the tab bar step aside until you tap the button on the chart. The brush button opens the drawing tools; they stay hidden otherwise. Screeners on a phone - **Densities, list**: each density with its coin, Long or Short, size, distance to the price and lifetime; sort by distance, size, lifetime or time to eat through. - **Densities, map**: distance to the price runs down the middle, Long walls are on the left, Short on the right; the further from the middle, the longer a wall has lived, and the bigger the bubble, the bigger the order. - Tap a density to see it in detail and open its chart, heatmap or order book, or hide the coin. - **Trend screener**: a feed of chart cards, ten to a page (the pages are under the feed). Each card has its header always shown — the coin, the watchlist mark, the timeframe, the heatmap and the order book; the sort and the cards' timeframe are the chips at the top, the rest of the settings are under the sliders button. Arbitrage on a phone - Each pair is two lines: the coin and the spread after fees; where to buy → where to sell, the size that fits at that spread and how long the spread has held. - The chips choose the exchanges and the filters; the sort (best first, spread, size, volume, lifetime, funding, NATR) is on the right; the magnifier finds a coin (Enter shows all its routes). - Tap a pair for its screen: the spread, the buy and the sell side with their prices, available size and a link to each contract, the spread's history, the volume, NATR, funding per day and fees; the star adds the pair to the watchlist. Other pages on a phone - **Dialogs** (settings, filters, creating an alert, the chart settings…) open as sheets from the bottom: drag the grabber down, tap outside or use the system Back to close them. - **Alerts**: your alerts first (tap one for its notifications and actions); the notification settings (Telegram, terminal, pop-ups) are folded under the list. A fired alert shows as a banner at the top of the screen: tap it to open the coin; it goes away by itself, flick it up to put it away sooner — the notification stays in Alerts. - **The heatmap**: one row under the chart — the market, F | S, the timeframe, the chart type, ƒx, the heatmap's resolution, colors and size filter, settings, screenshot, ⤢ (the row scrolls sideways). The drawing tools open with the brush button, as on Coins. - **Orderbook**: one market at a time on the full screen, swipe sideways for the next. - **Listings**: the feed first; the month calendar opens with the Calendar button. - **Account**: a list of settings — Telegram, notifications, integrations, the rest, resetting settings, bonus exchanges and Log out. Install and push - **Menu → Install the app** adds Wintrading to the home screen (on Android the browser's install dialog, on an iPhone the steps for Safari). It then opens without the address bar. - Push notifications for alerts: **Alerts** offers to turn them on; the switch is in the alerts' notification settings. On an iPhone they need the installed app. > Add Wintrading to your home screen: it opens without the browser's address bar, like an installed app. ## Order Book Screener URL: https://wintrading.live/app/docs/orderbook-screener Spot large limit orders — the big buy and sell walls — across the entire market in real time. ### Overview The **Densities Screener** watches the order books of every tracked coin and highlights the largest limit orders (densities) near the current price. These big orders often act as **support and resistance levels** — places where you can catch a bounce, or a breakout/impulse when price consolidates against them. _Densities Screener — table view_ Pick one or several exchanges at the top, then switch between the **Table** view (a sortable list of coins) and the **Map** view (a heat-style picture of where the densities sit). Everything refreshes automatically every few seconds. > **Tip:** Watching several exchanges at once? Click a row to expand it and see the same coin broken down per exchange. > **Binance** and **Bybit** spot can be picked whole or in halves — coins with futures and coins without. They are the same coins, so it is one or the other: picking the whole spot unticks the halves and vice versa (otherwise every coin would show twice, each copy under its own filter). ### Reading the table Each row is one coin. The table is split into a sell side and a buy side so you can compare pressure at a glance: - **Symbol** — the coin/pair (e.g. BTCUSDT). When watching several exchanges, an icon shows where the order is. - **Short (asks)**: sell walls above the price, the wall's sum large over a hairline as long as the wall is big. - **Long (bids)**: buy walls below the price, shown the same way in green. - **Corrosion time (⚡)** — roughly how long the wall would take to be eaten at the current pace of trading; long corrosion times mark the walls that matter. - **Imbalance bar & Volume** — optional columns: a single diverging bar showing the balance of buyers vs sellers (asks in red on the left, bids in green on the right), and recent trading volume. - **Trend**: the last 10 candles as a heat strip, green rising and red falling, the bigger the candle the brighter its cell. Hover it for a full candlestick chart with the limit orders drawn as price levels. Click any row to expand it and see the same coin broken down per exchange. A price cell briefly flashes green or red when it changes, so movement catches your eye. **Click a wall's price** to copy it to the clipboard ("Price copied" confirms it) and paste it into your order on the exchange. ### Filtering for opportunities The screener has two kinds of filters — one set narrows down the **coins**, the other narrows down the **densities** (the limit orders themselves). **Composite (coin) filters** — stack as many as you like to keep only the coins that fit your strategy: - Ranges for **volume**, **price change**, **correlation**, **NATR**, **trades** and more, over a chosen time window. - A **coins to ignore** list and a minimum 24-hour volume. **Density filters** — control which limit orders show up: - **Minimum size** — hide small orders, keep the big walls (e.g. above $100k). - **Corrosion time** — the key one: roughly how long an order would take to be eaten at the current pace of trading. - **Lifetime** — how long the order has already been resting. - **Distance from price** — only orders within a chosen % of the current price. - **TradFi assets** (tokenized stocks, indices, commodities) are hidden by default — untick "hide TradFi assets" to include them. > **Tip:** Corrosion time is the most important density metric — a large wall with a long corrosion time is far more significant than a big order that would fill in seconds. > Density filters are set **per selected exchange**. An exchange without a filter of its own uses the default — from $100k, within 5% of the price, resting for at least 5 minutes; that is also what its settings window shows. ### Excluding coins & copying tickers Remove noisy coins from the screener in one click, and copy a ticker straight from its card: - **Copy ticker** — click the coin name or the copy icon next to it (in a table row, on the density map or in the densities widget). The icon briefly turns into a check mark once copied. The ticker is copied with USDT in one unified format (e.g. `KASUSDT`) whatever the exchange format is (KAS_USDT, KAS-USDT…), ready to paste into your terminal. Clicking the rest of the card still opens the chart. - **Exclude coin** (✕) — by default the coin is hidden **on every exchange at once**. - **Shift + ✕** — exclude the coin only on the exchange of that density. Bring excluded coins back in the filter settings: the **“Coins excluded on all exchanges”** list sits above the exchange settings, and per-exchange exclusions are in the “Coins to ignore” field of each exchange. The same works in the mini screener on the Coins page and in Constructor widgets. > **Tip:** A coin excluded on all exchanges also disappears from the densities widget — handy for hiding “permanent” walls on coins you don't trade. ### Sorting results In Table view, choose how the list is ordered so the most interesting coins float to the top: - **Bids/Asks ratio** — coins with the most buying pressure (or the most selling pressure). - **Distance to order** — coins whose big orders are closest to the current price. - **Order size** — coins with the largest walls. - **Lifetime** — coins with the longest-standing orders. - **Alphabetically** — simple A–Z. Turn on watchlist pinning to keep your favourite coins at the top whatever the sort. ### Customising the view Make the screener comfortable to read and tailored to your screen: - **Columns layout** — show 1 to 4 tables side by side to watch more coins at once. - **Density & font size** — compact, comfortable or spacious rows. - **Colours** — set your own buy (bid) and sell (ask) colours. - **Optional columns** — toggle the volume and buy/sell balance columns. - **Voice alerts** — have the screener read out events aloud, with adjustable volume, speed and pitch. ## Order Book Heatmap URL: https://wintrading.live/app/docs/orderbook-heatmap See where liquidity builds up and disappears over time, painted directly onto the price chart. ### Overview The **Order Book Heatmap** takes the same limit-order data as the screener and draws its _history_ on the chart. Price runs up the side, time runs across the bottom, and colour shows how big the orders were at each price. This makes it easy to see **liquidity walls** — bright horizontal bands where many orders pile up — and to watch how they move, grow or vanish as price approaches them. ### Reading the heatmap Think of colour as **order size**: - **Dim areas** — little or no resting liquidity. - **Bright / warm areas** — large orders stacked at that price (a wall). The brighter it is, the stronger the density/liquidity. _Bright bands mark liquidity walls (support & resistance)_ What to look for: - **Horizontal bright bands** mark strong support or resistance. - **Bands that persist** across many candles suggest serious, committed orders. - **Gaps** (no colour) mean thin liquidity, where price can move quickly. > **Tip:** When price **consolidates** against a density, wait for a breakout/impulse; when price **approaches it sharply**, expect a bounce off the density. The brighter the band, the stronger the density. The mouse wheel zooms time. The chart settings' Scale and scroll tab has two switches. **Wheel zooms time and price** zooms the price under the pointer as well; with Shift the wheel still zooms only time. **Smooth mouse wheel zoom** animates the zoom. Both are common settings: they apply to every chart at once — Coins, the heatmap, the trend screener, the constructor. In the order book on the right the spread row stays in the middle, even when the filter left only a couple of densities. **Hatched strips.** A strip hatched across the whole chart height marks time the heatmap has no data for (the data service was not recording then). Time when the book simply had no orders above your size filter is not hatched: it stays empty. ### Filtering orders To keep the picture clean, filter out smaller orders: - **Minimum size** — hide everything below a dollar threshold. Quick presets: 50k, 100k, 250k, 1M, 5M and 10M. - **Manual input** — type any value, including shorthand: `500k`, `5kk`, `1.5m`, `10M`. The value isn't limited by the slider range. - **Slider** — logarithmic: the left half gives fine control over small thresholds, the right half goes up to 10M (up to 100M for BTC, ETH, BNB, XRP and SOL). A built-in per-market minimum always applies on top of your setting, so tiny orders never clutter the heatmap even at the lowest preset. ### Exchange aggregation The heatmap can merge the order books of several exchanges so you see every large density on a coin in one place. Open the picker with the exchange-icons button and the **N/6** counter in the chart header. - **Up to 6 exchanges** — the chart's own exchange included. It is always part of the aggregation and marked as “chart”. Once the limit is reached, the other exchanges are disabled until you remove one of the selected ones. - **Reset all** — removes every added exchange, leaving only the chart's exchange. - **Applying** — changes are applied in one go with **Apply** or when the panel closes, so the chart rebuilds once instead of on every click. - **Selected exchanges** are shown as chips at the top of the panel; remove any with its ✕. Aggregation works for coins in any ticker format (BTCUSDT, BTC-USDT, BTC_USDT, BTC-USDT-SWAP): the ticker is converted to each exchange's format automatically. > **Plan:** Merging several exchanges is part of the Pro plan. On other plans you can add one exchange to the chart's own. ### Colour themes & sensitivity Choose a colour scale that suits your eyes and screen — there are many built-in themes (for example a red/green/gold scheme, plus options like Viridis, Fire and Cyberpunk). A two-pin **sensitivity** slider sets which part of the volume range the palette covers. The pins are percentages of the coin's typical order volume: orders below the left pin render in the coldest colour, orders above the right pin saturate to the hottest one. Drag the right pin left to make the map brighter (smaller orders reach full colour), or right to reserve the hottest colour for the very largest orders; the left pin mutes the noise floor. The Reset button returns the default 0–100% window. **Resolution (4K / HD):** 4K renders every price level as its own cell for maximum detail; HD groups nearby price levels into larger cells for a cleaner, lighter read. Switch it from the 4K / HD toggle in the chart toolbar. HD is the default; **4K is a Pro feature** — on Trial the button shows a lock and prompts an upgrade. ### Layouts & tools Extra controls help you study the market your way: - **Highlight & magnifier modes** — track a single price level across time, or zoom in to inspect nearby levels. - **Multi-chart layouts** — view one, two or four charts at once. - **Aggregate exchanges** — combine up to 6 exchanges into one heatmap (see “Exchange aggregation” above). - **Time frames** — switch between 1m, 5m, 1h and longer candles to zoom in or out. - **Drawing & screenshots** — annotate levels and copy the chart as an image to share. - **Order book panel** — the ladder beside the heatmap lists the current densities. Each row shows the density's volume, its **distance from the spread in %**, the exchange icon with an **S** (spot) / **F** (futures) badge, and the price. Spot rows are extra easy to spot: their **volume is shown in gold**, futures volume in the regular text colour. Hovering a level highlights it on the heatmap; when no densities pass the current filter, the panel says so instead of loading forever. ### The new chart The order book heatmap runs on the new chart engine: the book's history and the live column are drawn on the GPU, and scrolling or zooming does not recompute the map. Everything is still there: aggregation of up to six exchanges, filters, themes and sensitivity, HD and 4K, size labels, the highlight and the magnifier under the pointer, layouts of 1, 2 and 4 windows, the order book ladder. - **Click a level** to open the density table: size, lots, distance, price, lifetime, corrosion, exchange. Hovering a ladder row shows the same table and the price line on the chart. - **Sensitivity** narrows the colour scale: levels weaker than its low end take the coldest colour, stronger than its high end the brightest. The theme's exponent keeps weak levels dark and walls bright. - **Clusters and TPO** (Binance) — a footprint over the candles from the history's clusters and live trades. - **Drawing and indicators** — the same toolbar, legend and object tree as on the Coins page, and the same bar over a selected drawing (color, width, text, ⚙ settings of a volume profile or Fibonacci levels); drawings and alerts are shared. - **Alt+click** copies the ticker of the selected window. **The header** works as on the Coins page: the coin with its search, the exchanges summed into the book, timeframes, chart type, indicators and layout. On the right: what the pointer shows (the level highlight or the magnifier), 4K or HD, the theme, the density filter, the order book, the watchlist, settings and the screenshot. On a narrow screen the header tightens: the labels go first, then the rarer buttons; a phone has no order book and watchlist buttons, as it has no side panels. The watchlist mark next to the ticker stays at every width, in a constructor widget too. **Chart type:** eight candle styles and clusters over the candles — bid × ask volume, candle profile or delta (from Binance trades). When the bars are wide enough for the clusters, the map dims and drops its labels so the cluster numbers read. With clusters, the magnifier shows the candle and each cell's traded volume in $. **Cluster numbers are in dollars:** a row's volume × its price ("122K$"), in the delta mode the delta in $. ## Order Book URL: https://wintrading.live/app/docs/orderbook A live, detailed view of every buy and sell order for a single coin. ### Overview The **Order Book** shows the live depth of market for one coin: every active buy and sell order, level by level, updating in real time. It's the most detailed view of where people are willing to trade right now. You can show several exchanges side by side to compare their liquidity and spreads for the same coin. ### Bids, asks & the spread - **Asks (red, on top)** — sell orders, listed from the cheapest upward. - **Bids (green, below)** — buy orders, listed from the highest downward. - **The spread** — the gap between the best buy and best sell price, shown in the middle with the current mid-price and a small 60-second trend line. _Asks on top, bids below, spread in the middle_ A coloured bar at the top shows the **imbalance** — whether buyers or sellers currently dominate near the price. ### Reading sizes & depth Each line shows a price and the size of orders at that price. The dollar value on the left tells you how much money is committed there, and a background bar shows the relative size — wider means more liquidity. **Large orders stand out** with bolder text and a stronger bar, so you can immediately spot the big walls that may slow price down. ### Grouping & comparing exchanges By default, orders are grouped into price buckets to keep the view readable. The **step** control sets how wide those buckets are — a smaller step shows fine detail, a larger step gives a cleaner overview. Set it for all panels at once or per exchange (tip: hold Ctrl and scroll to change it quickly). Turn exchanges on or off to compare order books across venues for the same coin. ### Merged order book The **Merge into one** toggle in the toolbar collapses the separate per-exchange panels into a single combined order book. Liquidity from every enabled exchange is aligned to a common mid price (spot and futures trade at slightly different levels), summed at each price level and updates in real time — so a wall that's split across several venues shows up as one big density instead of being hidden across panels. Only the exchanges you've turned on are merged; toggling an exchange off removes its liquidity from the combined book instantly. > **Tip:** Each row shows the icons of the exchanges that make up that level — up to two, with a **+N** badge when more contribute. Spot liquidity is easy to tell apart: its volume value is shown in **gold** (futures volume in the regular text colour), and every exchange icon carries a small **S** / **F** badge for spot vs futures. Hover a row to see the exact volume each exchange holds at that price. The merged view is available both on the Order Book page and as an Order Book panel widget in the Constructor — the widget has its own **Merge into one** toggle and exchange picker. ### Price alerts from the book You can create a price alert straight from the order book: click a large order or a thick liquidity level to set an alert at that price. A bell icon marks levels that already have an alert; click it again to remove the alert. These alerts work across the whole platform. ### Trades tape The **Trades tape** is a live, tick-by-tick stream of executions to the left of the ladder. Each bubble is one trade, appearing **right next to the book at the price row where it executed** — **green = buy**, **red = sell** — sized by its **$ value**, with the value written inside the larger ones (e.g. `$12K`). As new prints arrive the stream glides smoothly leftward away from the book, bubbles never overlap, and a faint line through them traces the path the price took. Rapid bursts at one price merge into a single growing bubble. Toggle it with the tape button in the panel's header (on by default) — it appears on panels with a live tick stream. Drag the divider between the tape and the ladder to make either side wider; the width is remembered. The same tape also runs on the order-book ladder of the **liquidity chart (heatmap)** — there the toggle floats in the ladder's top-left corner and shares the same saved preference. > **Note:** The tape is fed by each venue's public trade stream and works on **Binance**, **Bybit**, **OKX**, **Gate (spot)**, **Bitget**, **AsterDex** and **Hyperliquid**. On venues without a reachable tick stream (e.g. MEXC) the ladder simply fills the full width. ## Trend Screener URL: https://wintrading.live/app/docs/trend-screener Scan the whole market at once and let the movers rise to the top. ### Overview The **Trend Screener** shows many coins as a grid of mini-charts and ranks them by whatever you care about right now — volatility, volume, big price moves and more. It's the fastest way to answer "what's moving?" _Trend Screener — grid of live mini-charts_ Everything updates live, and you can page through the results or narrow them with filters. ### Sorting types **Sorting** decides how coins are ranked. Pick a sorting type and, for most of them, a time window (5m, 1h, 24h, …). The available sortings include: - **Volatility / NATR** — how much a coin is swinging. - **Volume & unusual volume** — total trading, or sudden spikes above normal. - **Trades & unusual trades** — how many trades, and bursts above normal. - **Top gainers / losers / price change** — the biggest movers over your window. - **Correlation** — how closely a coin follows Bitcoin. - **Open interest & funding** — futures positioning and sentiment. - **Densities** — sort by the order-book liquidity itself: total size, distance to price, corrosion time and lifetime. - **Algo executions** — keep only coins where a trading algorithm is running right now, ranked by active count, signature rate, realized volume or cadence regularity. Detection runs on Binance Futures. - **Trend & horizontal levels** — coins approaching key support or resistance. - **Watchlist** — show your watchlisted coins; or **alphabetically**. ### Building custom filters Filters keep only the coins that fit your strategy. Stack as many rules as you like — they all have to be true: - Minimum / maximum **volume**, **price change**, **trades**, **correlation** or **volatility** over a chosen time range. - **Ignore** specific coins, or include / exclude whole exchanges. - Hide **TradFi assets** (tokenized stocks, indices, commodities) with a single checkbox. ### Charts & indicators Tune how the grid looks and what each chart shows: - **Layout** — choose the grid size (for example 4×3) and spacing. - **Time frame** — set the default candle interval for every mini-chart. - **Indicators** — overlay popular indicators (RSI, MACD, Bollinger Bands) and a coin-data summary. - **Refresh mode** — real-time, once a minute, or manual. Hovering a chart pauses it so you can study it. - **Level colours** — the auto-detected horizontal and trend levels (turned on in the screener settings, **Horizontal levels** tab) take their colours from chart settings: click the gear button, open the **Canvas** tab and pick **Horizontal levels** and **Trend levels**. Trend levels have two colours: one for lines below the price (support) and one for lines above it (resistance). If the levels are hard to see, pick a brighter colour. The same colours apply on watchlist charts. "Price scale on the right" in the trend screener's chart settings shows the prices on the cards — on the page and in its constructor widget. ### Saving presets Once you've set up exchanges, a sorting, filters and layout, save it all as a named **preset**. Switch presets to jump between strategies in one click — for example a "breakout hunt" preset and a "quiet market" preset. ### The new chart The screener's mini charts run on the same engine as the Coins chart: every chart of the grid is drawn on the GPU (WebGPU or WebGL2) by one device, so a 6×6 grid no longer hits the browser's limit of WebGL contexts. - **Header on hover.** Hover a chart and the header slides in: the coin (click to open it large), the watchlist mark, timeframes, the heatmap, close. - **The large chart** opens in a popup with the legend, the drawing toolbar, the bar over a selected drawing, the object tree and every tool of the Coins page. Drawings and alerts are shared with Coins. - **Levels and limit orders** — horizontal and trend levels, limit orders labelled at the right edge — as before. - **Zoom area** — box a stretch to open it on a lower timeframe; "Reset zoom" goes back. - **A new coin** in the list blinks its border and, when enabled, plays a sound. The same chart runs in the constructor's trend screener widget and in the candle preview when you hover a row of the order book screener. **Header.** On the left: exchanges and the preset, the sort with coins of a watchlist color and with alerts pinned first, pages (Space and the arrows turn them). On the right: refresh, the timeframe of every chart, indicators, chart and screener settings. **Refresh** is one control: on the left the "refresh now" button (none in real time: nothing to refresh), on the right how often — in real time, every minute or by hand. **Coin data** on the mini charts is one line at the bottom: price change, volume and NATR. The full card is on the large chart. The screener's charts hide the price axis by default, leaving the candles more room; turn it on in the chart settings ("Price axis on the right"). Pane heights set by dragging a divider apply to every chart of the grid and stay as you page through the screener. ## Coins URL: https://wintrading.live/app/docs/coins Browse the market in a fast, sortable table and keep your favourite coins close. ### Overview The **Coins** view pairs a large price chart with a sortable table of the whole market. Click any coin to load its chart; use the arrow keys (or swipe on mobile) to move through the list quickly. The **F**/**S** buttons in the chart header switch the chart between the coin's futures and spot market — the coin list keeps its own exchange selection. _Coins — chart on the left, sortable table on the right_ > **Tip:** Press the arrow keys to step through coins without taking your hands off the keyboard. ### The coins table The table shows the data you choose, in the order you choose. Click a column header to sort by it; click again to reverse. You can pick which columns appear — price change, volume, volatility, correlation, trades, levels, open interest, algo executions and more — and drag headers to reorder them. Use the density toggle to fit more rows on screen, and the copy button to copy a coin's symbol. ### Algo executions Large participants rarely buy or sell in one click — a bot works the order for them, printing near-identical sizes at a near-regular pace (for example, 500 lots every 10 seconds). The platform watches the live trade tape of every coin and detects these **algo executions** as they happen. Three columns in the **Algo** group surface them: - **ALGO** — how many algos are running right now. Green means buyers dominate, red means sellers. - **A.SIG** — the **algo signature** of the strongest one: size/interval, e.g. `1.5K/10s` = ~1,500 lots every ~10 seconds. Colour shows its side. - **A.VOL** — how much volume (in quote currency) the strongest algo has already executed in its current run. Sort by any of these columns to find where algos are working right now. A signature stays in the table while its bot keeps printing and disappears shortly after it stops. To see where algos started and ended on the chart, add the **Algo history** indicator. Each run is drawn as a direction triangle (▲ buy below the candle, ▼ sell above it) sized by its strength, with a bar connecting the start to the end so you can see how long it lasted — active runs pulse and dash off to the right. Hover a marker to read the full breakdown (side, size/interval, volume, strength, regularity and duration); it keeps a 7-day history. > **Tip:** A strong, clean signature (high A.VOL) that keeps printing is a large order being worked — many scalpers trade in the same direction while it stays active and exit when it stops. > **Note:** Detection currently runs on Binance Futures, where the raw trade stream is available, so the Algo columns are only offered — and only shown in the table — when Binance Futures is the selected exchange. ### Watchlists & colours Click the coloured dot next to a coin to add it to your **watchlist** with one of several colours — handy for grouping coins by strategy or bias. Switch on "show watchlist only" to hide everything else, or enable **"always show watchlist coins"** in the filter settings to keep them visible even when they don't pass the active filters (the same setting exists in the Trend screener filters). Coins with an **active alert** are marked with a bell icon, and the bell toggle in the header pins them to the top of the list. Picking a coin in the global search highlights it in the list and scrolls it into view. Your watchlist is shared across the whole platform. ### Presets Save your exchanges, sorting, visible columns and settings as a named **preset**, then load it any time. You can rename or delete presets as your setups evolve. ### Filters & exchanges Add filters to show only coins that meet your rules (minimum volume, a price-change range, volatility, and so on), and choose which exchanges to include. You can even require a coin to exist on several exchanges at once. A separate checkbox hides **TradFi assets** (tokenized stocks, indices and commodities). If filters hide everything, you'll get a hint to loosen them. ### Market Simulator The **Market Simulator** rewinds the chart to any moment in the past and plays the market forward candle by candle — practice setups and strategies on real historical data. Click the **Market simulator** button in the chart header, then click a candle on the chart to pick the starting point. The floating simulator bar controls playback: - **Play / Pause** — advance automatically at the chosen speed (0.5×–10×). - **Step** — reveal exactly one candle, for bar-by-bar analysis. - **Speed** — how many candles are revealed per second. - **Timeline slider** — scrub back and forth through time; dragging left hides candles again. - **Exit** — leave the simulator and return to the live chart. The panel itself can be dragged anywhere over the chart by its handle. The simulator works in the single-chart layout (1×1) — with several chart windows open the button is disabled. The timeframe and layout are fixed while the simulation is running, and only candles fully closed at the cursor are shown, so the chart never leaks future price action. **Paper trading.** The simulator bar includes a simulated trading panel: set an order size in USDT and press **Buy** or **Sell**. Orders execute at the close of the last revealed candle; an opposite order closes the position. Entries and exits are marked with arrows on the chart, and the panel tracks your open position, unrealized PnL and the full trades log. The paper trades reset when you exit the simulator. > **Availability:** The Market Simulator is a **Pro+** feature and currently works on **Binance** markets. Indicators that need live order-flow data (open interest, liquidations, clusters, order-book indicators) are hidden during the simulation and come back when you exit. > **Tip:** Pick a formation you want to master, replay the days around it at 1× and log every entry — reviewing the trades list afterwards is the fastest way to see whether the setup actually works for you. ### The new chart The Coins chart runs on the new engine: candles, indicators and drawings are drawn on the GPU (WebGPU or WebGL2), so scrolling and zooming stay smooth even with dozens of indicators and a six-window layout. Everything the chart had is still there: indicators, levels, limit orders, alerts, the Market Simulator, Zoom area and screenshots. **Header.** On the left: the ticker (click to copy it), the watchlist mark and the futures / spot switch. Then the timeframes: favorites are shown inline, all of them in the menu, where the star adds one to favorites. Next the chart type (candles, hollow candles, bars, columns, line, step line, area, baseline), indicators, the window layout and the Market Simulator. On the right: the heatmap and order book popups, my trades, Tiger.Trade and MetaScalp, settings and the screenshot. When the header narrows, button labels hide and the tooltips stay. **Drawing.** The left toolbar has every tool of the engine — lines and channels, pitchforks, Fibonacci and Gann, patterns and Elliott waves, positions, volume profiles and anchored VWAP, the ruler and ranges, shapes, brushes, arrows, text and notes. A group's button remembers the tool you last used; the arrow next to it opens the whole group, and the star pins a tool to the toolbar. Below: the magnet (off, weak, strong), stay in drawing mode, hide all drawings, remove all, undo and redo, the alert bell and the object tree. - Click a drawing to open the bar above it: color, fill, width, line style, text (edit it right on the chart), extend the line, the bell, bring to front or send to back, lock, clone, delete. A volume profile and the Fibonacci tools have ⚙ there (or double-click the drawing) for their settings. The color and width you pick become the style of the next drawing of that type. - Holding Ctrl (Cmd on macOS) turns the magnet on for as long as you hold it. Right-click places a horizontal ray, Shift+click or the middle button starts the ruler, Ctrl+Z / Ctrl+Shift+Z undo and redo drawings and alerts, Delete removes the selected drawing, Esc drops the tool. - Drawings are kept per coin as before and show on the other chart pages; tools those pages lack stay on Coins only. **Alerts.** The “+” at the right edge of the crosshair line creates a price alert; drag it to move it, remove it with the cross. The bell on a trend line sets an alert on crossing it. **Legend.** Hovering an indicator's row shows its buttons: hide, settings, remove. Indicator panes can be collapsed, maximized and reordered with the buttons on their right. The arrow under a pane's legend folds it away, as in TradingView: the price pane keeps the coin's row, an indicator pane keeps only the arrow, and the number next to it says how many rows are folded. An indicator pane's fold is kept with the indicator; the price pane's applies to every chart in this browser. **Settings → View.** Chart type, price scale (linear, logarithmic, percent), time zone, volume, the last price line, the legend and its buttons, a synchronized crosshair across the layout's windows, scroll inertia, the default magnet and drawing mode. In Canvas, the candle countdown and the background gradient now work. **Indicators.** One list on every page. Categories on the left: "On the chart" (what is on, with settings and removal), trend and channels, oscillators, volume and book, open interest, liquidations, coin and signals, my trades. The search looks through every category at once. Open interest is picked by exchange right in the list. When a coin has no data for an indicator, its pane says "no data". **Chart settings.** A live preview on top: the chart type, colors, scale, grid and levels change in it at once, before you save. Options turn on and off with the usual checkboxes. **Densities as lines.** Each density is a line from when the order appeared (a ▶ there) to a plate at the right edge: the exchange and market ("BI/F"), the amount and the distance to the price. The line is thicker for larger amounts and dashed for an order standing over two hours. Plates of nearby densities never overlap: a moved one is joined to its line by an elbow. Changing the timeframe keeps the chart on the same moment when you were not looking at the last bars. The "Coins to ignore" field takes a whole pasted list (Ctrl+V: commas, spaces or one per line), copies it (Ctrl+C) and clears it with the ✕ button. The chart settings' "Candles and volume" tab has "Buys and sells in the volume": turn it off for single-colored volume bars, as before. In a grid of several windows the header's timeframe changes the selected window, or the first one when none is selected. **Double click.** On the price scale — autoscale; on the time scale — the default bar width. A double click on the chart itself keeps the zoom and position; on a text drawing it edits the text. **Price scale.** Drag the price scale up or down to compress or stretch the prices; how fast is **Price scale stretch speed** in chart settings → Zoom and scroll (1 by default, lower is slower). With **Price axis on the right** off, the indicator panes hide their scale too, and the chart takes the whole width. **Pane heights and each coin's view.** Drag the divider between panes, or collapse a pane with its button: the heights stay with the indicators — they come back after a reload and on every chart of the page that shows those indicators. Flipping through coins does not move the chart: every coin opens at its latest candles with the right offset from the **chart settings** (the **Chart** tab, **Chart offset**), keeps the zoom of the previous one and scales its prices itself. **On a phone.** The chart header keeps the ticker, the watchlist mark, F/S, the timeframe, the chart type, indicators and settings. The window layout, the market simulator, the heatmap, the order book, My trades and the screenshot are in the **⋯** menu on the right. The drawing toolbar has larger buttons, a tool group opens with a tap on its button, and the bar of a selected drawing sits along the chart's bottom edge. ## Chart Indicators URL: https://wintrading.live/app/docs/indicators Add extra layers to any price chart — momentum, volume, order flow, open interest, liquidations and more — to understand what's driving a move. ### Overview Indicators are extra layers you switch on from the indicators menu on a chart. They come in two kinds: - **Overlays** sit on top of the price candles (for example moving averages, VWAP, session zones). - **Panes** open in a separate strip below the chart (for example RSI, MACD, open interest). Each indicator has its own settings: colors, periods, the data source. The settings window shows **Inputs** (what is computed) first, then **Style** (how it looks): a checkbox with its own color or interval in one row, a line's color and thickness in one row, rising and falling colors as a pair. Cancel and × close the window without changes; Reset brings back the defaults. Some indicators apply only to certain markets, as noted below. > **Note:** A few indicators are **Binance-only** or **futures-only** because they rely on data those markets provide — they simply don't appear when they don't apply. > **Tip:** On a Trial you can add up to **2** indicators per chart; Pro removes the limit. ### Clusters & footprints Footprint charts (clusters) break each candle down into the **buy and sell volume traded at each price** inside it — far more detail than a normal candle. They show who was in control: aggressive buyers or aggressive sellers. - **Footprint cluster** — numeric market-buy versus market-sell volume at each price within the candle. - **Candle profile** — each candle drawn as a horizontal volume histogram: bar length shows the volume traded at that price, color shows the dominant side, and the POC (highest-volume level) is outlined. > **Note:** Footprint clusters are available on **Binance** markets. ### Order flow & delta Delta tools measure the tug-of-war between aggressive buyers and sellers: - **Volume delta** — for each bar, buy volume minus sell volume (which side pushed harder). - **Cumulative delta** — the running total of that delta over time, to spot sustained buying or selling. It starts over every **period** candles, at boundaries fixed in time like VWAP's, or runs over all loaded candles. - **Order book bars delta** — the difference between resting buy and sell limit orders in a range, shown as bars. - **Order book overlay delta** — the same difference drawn as a cloud over the chart. - **Order book pressure** — highlights zones above and below the price (at configurable % distances) where resting limit order liquidity is concentrated: red zones above are ask pressure, green zones below are bid pressure, and brighter fill means more volume in the zone. > **Note:** Volume delta and cumulative delta are available on **Binance**. The **Algo history** indicator (Binance Futures) marks detected algo executions right on the candles: a filled circle where a run of repeated similar-size prints at a regular cadence started (green — buying, red — selling; an extra ring means it is still active), and a cross where it ended. Labels show the signature — size/interval and realized volume — and the crosshair legend shows details of the hovered candle’s markers. In the indicator settings you can filter by side, activity and minimum strength rating. **Order book (DOM)**: the chart exchange's live order book at the right edge. Rows sit at the chart's own prices: bids below the current price, asks above, the bar's length the level's size (or the cumulative size from the best price). Zooming in on the price makes the rows finer, zooming out coarser (a row's price step follows its height). The candles end left of the book so it never covers them. Sizes are in dollars by default; the settings hold the width, the row height, the numbers, the cumulative size and the colors. During a bar replay the book is hidden: it is now's, the candles are the past's. MEXC has no live book on the chart. ### Open interest Open interest shows how much money is committed to futures positions. Rising open interest means new positions are opening; falling means they are closing. - **Open interest** — the total outstanding contracts for the coin. - **Aggregated open interest** — open interest in US dollars, combined across the futures exchanges you select. - **Open interest delta** — the change in aggregated open interest per bar. > **Note:** Open-interest indicators apply to **futures** markets. Your own scripts read the coin's open interest per bar too — `oi.close`, `oi.delta`, `oi.usd` (see **My scripts → Data**): for example, a marker where price rises while open interest falls (short covering). ### Liquidations Liquidations are forced closures of leveraged positions. Bursts of them often mark capitulation or a squeeze — useful turning-point clues. - **Liquidation bars** — liquidation volume as a histogram below the chart. - **Liquidation bubbles** — individual liquidations as bubbles on the chart; a bigger bubble means a bigger liquidation. > **Note:** Liquidation indicators apply to **futures** markets. ### Moving averages & bands These smooth the price to show trend and how stretched it is: - **Simple Moving Average (SMA)** — the average price over a chosen number of candles. - **Exponential Moving Average (EMA)** — like the SMA but gives recent prices more weight, so it reacts faster. - **VWAP** — the volume-weighted average price; where most of the volume actually traded. - **VWAP bands** — VWAP with upper and lower bands at a chosen standard deviation. - **Bollinger Bands** — a moving average with bands that widen when volatility rises and tighten when it falls. Both VWAPs start over every **period** candles. These sessions are fixed in time: a new candle continues the current session, and the line stays the same after a reload, a timeframe switch there and back, or when older history loads. With **from all loaded candles** on, there is one session from the first loaded candle. **Key levels**: the current day's, week's and month's opens (dashed) and the previous ones' highs and lows: PDH/PDL, PWH/PWL, PMH/PML. Labels with the price at the right edge; the periods and colors are in the indicator's settings. ### Oscillators & volatility - **RSI** — Relative Strength Index; flags when a coin may be overbought or oversold. - **MACD** — Moving Average Convergence/Divergence; a popular momentum and trend-change indicator. - **ATR** — Average True Range; measures volatility, including price gaps (shown as a pane below the chart). - **Accumulation/Distribution Line** — combines price and volume to gauge whether a coin is being quietly accumulated or sold off. - **Awesome Oscillator (AO)** — Bill Williams' momentum histogram: the 5-period minus the 34-period SMA of the bar midpoint, drawn around a zero line in a pane below the chart. Green bars rise versus the previous bar, red bars fall; crossings of the zero line signal momentum shifts. ### Context overlays These add helpful context rather than a single indicator: - **Coin data** — an at-a-glance overlay of volume, correlation to Bitcoin, trades, volatility, funding and open interest across ranges. The badges stack up from the bottom-left corner; on a short chart, once the column reaches the legend it continues in a new column to the right. - **Exchange volumes** — 24h traded volume of the coin on every exchange that lists it, ranked largest first, with a bar behind each row showing its share of the total. Spot and futures venues can be shown separately. The panel can be pinned to any corner of the chart; in the left corners it makes room for the **Coin data** badges, sitting above them or, when there is no space, to their right. The figures are recalculated on the server every ten minutes. - **Trading session zones** — shades the chart by market session (Sydney, Tokyo, London, New York; DST-aware) and draws each session’s high/low levels; opacity, labels and session-open lines are configurable. - **Volume profile** — a horizontal histogram showing how much volume traded at each price level. - **Notifications story** — plots your past alert triggers on the chart for context. - **Williams Fractal** — marks confirmed swing highs (triangle above the bar) and swing lows (triangle below) using Bill Williams' fractal rule: a high/low that stands out against a configurable number of bars on each side. A fractal appears only after that many bars close past the pivot, so markers never repaint; traders use them as local support/resistance and breakout reference points. **Bitcoin on the background**: BTC's price as a line behind the candles, on a scale of its own without an axis, so you see whether the coin moves with the market or against it. Color, opacity and width are in the indicator's settings. In small windows (a grid, the trend screener, the constructor) the coin data and the exchange volumes shrink to a strip — hover it for the whole card; it closes as soon as the pointer moves off it. Both indicators' settings have "Full view in small windows". ### My trades The **My trades** indicator draws your own Binance trades directly on the chart: an entry and an exit marker per position, and — after a click on a marker — every individual fill, dashed average-price lines and the position's PnL. > Available on Binance markets (spot and futures). Trades are fetched with read-only API keys — the app can never trade or withdraw on your behalf. **Setup** - Create a read-only Binance API key: only the _Enable Reading_ permission, no IP restriction. - Connect it on the **profile page** in the "Exchange connection" block — the key is validated on connect and rejected if it has any extra permissions. - Add the **My trades** indicator to the chart from the indicators dialog. - Press the **load trades** (arrow) button in the indicator's legend — the last 7 days of trades appear on the chart. Scrolling further back loads older history automatically. Clicking an entry/exit marker expands the position: every fill is drawn at its actual price, dashed lines track the running average entry (and exit) price, and the label shows the closed PnL — or live PnL for a still-open position. New fills stream in live while the chart is open. > Buy and sell marker colors are configurable in the indicator settings (the gear in the legend). ### New indicators (Navy) Besides the indicators above, the Coins indicators menu has a **New indicators** section — indicators written in Navy (a language close to TradingView's Pine): - **Trend:** Trend Cloud (a cloud between EMAs whose color follows the trend's strength), Ichimoku Cloud, Supertrend Cloud, EMA Ribbon, ATR Trailing Stop, Parabolic SAR, VWAP Bands. - **Volatility:** Bollinger Bands that glow on a squeeze, Keltner Channels, Donchian Channels. - **Oscillators:** RSI Pro with gradient zones, MACD 4C (a four-color histogram), WaveTrend Pro, Squeeze Momentum, ADX & DI, Stochastic RSI, Momentum Oracle. - **Volume:** Relative Volume, OBV Cloud. Oscillators take a pane of their own, overlays sit on the price. The legend's gear opens their inputs (periods, multipliers, colors); they are saved with the other indicators. Scripts run in the background and update on every tick. You can write your own indicators in the same language — or have ChatGPT or Claude write them: see [Your own indicators (scripts)](https://wintrading.live/app/docs/scripts) and the language guide, [Navy: getting started](https://wintrading.live/app/docs/navy-getting-started). ### Crosshair and cursor distance Move the cursor over the price chart and the crosshair shows how far your cursor is from the current price, as a percentage — for example **+3.32%** above the last price, or **-1.05%** below it. The label sits next to the crosshair and follows the cursor, so you can size a move without measuring it by hand. The value is measured against the last price of the main series (the one the price line tracks), so it updates as the market moves. It is only drawn on the price pane — indicator panes hold values rather than prices, where a percentage distance would be meaningless. - **Where** — the price charts: the terminal, the order-book heatmap chart and watchlist charts. Arbitrage charts never show it. - **Colour** — the label's border follows your crosshair colour, so recolouring the crosshair recolours the label with it. - **Turning it off** — open **chart settings** (the gear button), go to the **Chart** tab and clear **Cursor distance to price**. It is on by default. > Use it to check a target or a stop at a glance: park the cursor on the level and read the percentage instead of doing the arithmetic. ### Drawing tools and colours The drawing panel on the left of every price chart holds trend lines, rays, rectangles, brush, text, Fibonacci, position tools, the measure tool and Drill down (a range on a lower timeframe). Draw an object, then click it once: a floating toolbar appears with its **colour**, **line width**, **text** and a delete button. A horizontal line or ray, a price label and a cross line also get a **copy the price** button: the level's exact price goes to the clipboard, ready for an order on the exchange. The toolbar can be dragged anywhere on the chart and stays where you put it. - **Palette** — fifteen ready colours, including a full grey ramp (white, light grey, grey, dark grey, black) for discreet levels that do not fight with the candles. - **Custom colour** — type a hex value in the field under the palette. The colour is applied when the value is complete, or as soon as you press **Enter** or click away; an unfinished value is simply discarded, so half-typed colours never reach your drawings. - **Recently used** — every custom colour you apply is kept in a short list under the palette, so a hand-picked shade is one click away next time. The list lives in the browser you use. - **Line width** — 1 to 4 px. - **Text** — trend lines, rays, rectangles and the text tool carry a label with its own colour and size. The colour and width you pick also become the default for the **next** object of that type, so a series of levels comes out consistent without setting each one. > Typing in the colour field or in the text box never triggers chart shortcuts — digits stay digits there instead of switching the timeframe. **Magnet.** While Ctrl (Cmd on macOS) is held, the points of drawings and levels snap to the bar's prices (open, high, low, close) and to levels already near the pointer. The magnet button on the drawing bar keeps it on. Its strength (weak: near the pointer only; strong: always) is in the chart settings. The right mouse button places a horizontal level, with Ctrl snapped by the magnet; no style bar opens after it. **Fibonacci levels.** A selected retracement, extension, channel, time zones, fans, circles or arcs has a ⚙ button on the bar above it (a double click on the drawing does the same): the levels' settings — each level on or off, its value and color (TradingView's list of 24; a retracement starts with 0–1, 1.618 and 2.618 on). There too: extend left and right, the fill between levels, reverse, the labels (ratio and price, ratio, price or percent; left or right) and one color for every level. With "For new drawings" the tool's next drawings get the same levels. **Price on the scale.** A horizontal line or ray shows its price on the price scale, in its color, as on the old chart. The price-tag button on the bar of a selected line turns it off and on; your choice becomes the default for the next lines of that kind. The automatic horizontal levels do not put their prices on the scale. **Volume profile.** A fixed range or anchored volume profile has a ⚙ button on its bar (or double-click the profile): the settings, as in TradingView. _Inputs_: the rows — their number over the range, or ticks per row; what a row shows — buys and sells (Up/Down), their total or their delta; the value area volume (70% by default); extend the POC and the value area's lines to the chart's right edge. _Style_: the histogram's width (a share of the range) and side (left or right); the colors and opacity of buys and sells inside the value area and outside it; the volume written on rows; the POC line (color, width, style); the value area high and low (VAH, VAL); price labels; the range's background and border. With "For new drawings" the tool's next profiles get the same settings. **On a phone.** The drawing toolbar's buttons and icons are larger, sized for a finger. A tool group opens with a tap on its button (the corner arrow only marks it), and its list has tall rows with the ★ at the end. The bar of a selected drawing sits along the chart's bottom edge (along the top when the drawing is low), with large buttons; when it is wider than the chart, swipe it sideways. The shortcuts button is hidden there. Measurement plates (the ruler, the ranges) stay inside the chart: at the top edge the plate goes under the point. ### Chart shortcuts and screenshots A few gestures work on any price chart: - **1 … 6** — switch the timeframe: **1** = 1m, **2** = 5m, **3** = 15m, **4** = 1h, **5** = 4h, **6** = 1d. The digits are ignored while you are typing in a field (a colour, a tool's text, a search box), and while a market replay session is running. In the trend screener the grid's charts follow the timeframe in its toolbar; the digits switch a chart opened in a popup (the same in a chart opened from a notification). - **Ctrl (Cmd on macOS) held while drawing** — the magnet: drawing points snap to the nearest candle high or low. Ctrl does nothing else on the chart, so it never moves you off the timeframe you are working on. - **Alt+click** — copy the ticker of the chart to the clipboard. - **Ctrl+C** (**Cmd+C** on macOS) with the pointer over the chart — copy the price under the crosshair, to paste it into an order on the exchange. Near a level it takes the level's exact price: a horizontal line or ray, a drawing's point, an automatic level, a density, an alert. When text is selected or you are typing in a field, Ctrl+C copies as usual. - **A click on the price scale** (a tap on a phone) — copy the price at that height, snapped to a level the same way. A double click still autoscales. If the browser refuses the clipboard (it can, on the very first click after you switch back from another window), the message says so instead of “Price copied”: click again. - **Right click** — place a horizontal ray at the clicked price. Switching the timeframe keeps the empty space you asked for on the right of the last candle — set it in **chart settings** (the gear button) on the **Chart** tab, as **Chart offset**, in candles. To look at a stretch of the chart on a lower timeframe, use **Drill down** (the drawing panel's measures group, or **Alt+Z**): box the range you care about and pick the timeframe in the menu that appears — each one shows how many bars the range will have, the recommended one is highlighted and **Enter** opens it. On Binance futures the list goes down to seconds (1s, 5s, 15s), so even a 1-minute chart can be opened second by second — for ranges within the last 24 hours, as long as second bars are kept. The chart reopens on that timeframe over exactly that range; **← Back to …** returns to the timeframe you started from and to the live chart. The **screenshot** button in the chart toolbar copies the whole chart — candles, indicators (the Coin data and Exchange volumes plates too), heatmap and drawings — to the clipboard, with the ticker and timeframe watermarked on top. If your browser refuses the clipboard write (it does that when the page is not focused), the image is saved as a file instead, and you get a message telling you which happened. > In a multi-chart layout the screenshot captures the chart you have selected, not the first one on screen — click the chart you want before pressing the button. ## Your own indicators (scripts) URL: https://wintrading.live/app/docs/scripts Create indicators in Navy — or let ChatGPT or Claude write them from your description — keep them in your account and share them with every Wintrading user. ### Overview A **script** is an indicator written in Navy, the language of the Wintrading charts. A script goes on a chart like a built-in indicator: on the price chart or in a pane of its own, with its own settings window. Everything is in the indicator window of any chart (Coins, the heatmap, the constructor's charts, the trend screener), under the divider at the bottom of its list: - **My scripts** — the scripts you created: switch them on and off, open them in the editor, publish, delete. **Create with AI** and **Open editor** are at the top. - **Community** — the scripts other traders published: the search line on top searches them, sort them by popularity or by date, vote, put them on your chart, copy them into your scripts. The script editor opens in a floating window over the page: move it by its header, resize it from its corner — it stays where you left it. **← Indicators** in its header takes you back to the indicator window. On a phone it opens full screen. > **Who can do what:** Using community scripts is open to everyone. Creating, saving and publishing your own scripts needs **Pro** (the trial included). New to the language? [Navy: getting started](https://wintrading.live/app/docs/navy-getting-started) explains how a script runs and walks you through your first indicator; then come [the core concepts](https://wintrading.live/app/docs/navy-core-concepts), [what a script draws](https://wintrading.live/app/docs/navy-on-the-chart) and the [quick reference](https://wintrading.live/app/docs/navy-reference). ### Create an indicator with AI You do not need to code. ChatGPT or Claude writes the script; Wintrading gives them the language reference. - In the indicator window open **My scripts → Create with AI**. The steps open right there. - Describe what the indicator should show, in your own words — for example: _«Mark breaks of market structure and label the price of each broken level»_. The examples under the field fill in typical requests. - Press **Copy the prompt**: it holds the Navy reference and your description. Open ChatGPT or Claude (their buttons open them in a new tab) and paste it into a new chat. - Copy the **whole answer** and paste it into the third step. The code is found in it and checked at once: you see its name, where it draws and what data it reads. - Press **Add to chart**: the script is saved to your account, goes on the chart, and you are back in «My scripts» with its row lit. **Open in the editor** shows the code first, unsaved. When the AI makes a mistake, the third step lists the errors: press **Copy the errors for the AI**, paste them into the **same chat** and paste the new answer back. One round usually fixes it. Closing the window by accident loses nothing: your description and the pasted answer are still there when you come back. You can also attach the reference as a file: [download the Navy reference (.txt)](https://wintrading.live/app/docs/scripts#download-ai-reference) or [copy it](https://wintrading.live/app/docs/scripts#copy-ai-reference). > **Tip:** Ask for one thing at a time and name the inputs you want to tune («lookback 20 candles, a setting»). Ask to add an alert if you want to be notified. > **Check before you trust it:** An AI writes plausible code that can still be wrong. Look at the script on a few coins and timeframes before trading with it. ### Bring an indicator from TradingView An indicator you use on TradingView can come over if its code is open. ChatGPT or Claude rewrites it in Navy; Wintrading gives them the language reference and the porting task. - On TradingView, open the indicator and press **Source code** `{}`; select all of the code and copy it. Indicators with protected or invite-only code have no such button and cannot be ported. - In the indicator window open **My scripts → From TradingView** and paste the code. You see at once its name, author and inputs, and what Navy has no direct counterpart for — data of another timeframe (`request.security`), strategy orders, tables — with what the AI does instead. - Press **Copy the prompt** and paste it into a new chat with ChatGPT or Claude. For a long script, **download the prompt (.txt)** and attach it to the chat. - Paste the whole answer back. The code is checked at once: you see how many of the original's inputs it kept and what the AI could not port. Then **Add to chart** or **Open in the editor**. Pasting TradingView code straight into the editor works too: a bar over the code offers **Port with AI** and takes the code into these steps. What TradingView scripts are made of carries over as it is: blocks set by indentation instead of braces, parameters with the same name in different groups and parameters without a name (they sit in the row of the previous one, like a color next to its list). In the indicator settings the script's groups become sections, the same as in the original. What else differs from Pine, form by form: [Navy and Pine Script](https://wintrading.live/app/docs/navy-getting-started#navy-vs-pine). > **Credit the author:** A port starts with a comment that names the original and its author. To publish it in the community, add the link to the original's page: open-source TradingView scripts come under a license that asks for their author to be credited. ### The editor **Open editor** in «My scripts» starts a new script: paste code into it or type it in. It is saved to your account on the first **Save** or **Add to chart**, named after its own `indicator('…')` / `overlay('…')` line — an editor closed empty leaves nothing behind. An existing script opens from its row in «My scripts» (****), from its settings window or from «On the chart». - Pasting a **whole AI answer** keeps only its code; pasting a whole script over another one replaces it (`Ctrl+Z` brings the old code back). - **Update on chart** (`Ctrl+Enter`) runs the code on every chart that shows this script — even before you save. «The chart shows unsaved changes» reminds you of it. - **Save** (`Ctrl+S`) keeps the code in your account; closing the window with unsaved changes asks first. - The header shows the state at a glance: _Compiled_, warnings or errors. **Problems** lists them — a click jumps to the line; **On the chart** shows an error that stopped the script while it ran. **Fix with AI** copies the code with its errors for the chat with the AI; paste its answer back into the editor. - The name menu: **New script**, **Open** another script, **Save as a copy**, **Rename**, **Publish**, **Delete**. Someone else's script opens read-only; **Copy to my scripts** makes it yours to change. Completion, hover help, quick fixes and the keyboard shortcuts: [The editor and its keys](https://wintrading.live/app/docs/navy-getting-started#editor). ### Data: liquidations, open interest, clusters, the book, densities Besides the candles, a script reads Wintrading's own data — the same that drives the screeners and the heatmap. Write it with a dot: `liq.long`, `walls.price(i)`; the editor completes the names and shows what each one means. A chart loads this data only while a script on it reads it. | Name | What it is | Where it has data | | `vol.buy`, `vol.sell`, `vol.delta` | Taker volume of the bar by side and their difference, in coins | Every chart | | `liq.long`, `liq.short`, `liq.total` | Liquidated longs and shorts of the bar, in $ | Binance and Bybit futures | | `oi.open`, `oi.high`, `oi.low`, `oi.close`, `oi.delta`, `oi.usd` | Open interest of the bar in coins, its change over the bar (close − open) and the close in $ | Futures, minute bars and longer; the forming bar refreshes about once a minute | | `fp.buy`, `fp.sell`, `fp.delta`, `fp.volume`, `fp.poc` | Clusters (footprint) of the bar: aggressive buys and sells, their delta and sum, the price with the most volume | Exchanges the heatmap covers, for the bars it keeps | | `book.bid`, `book.ask`, `book.imbalance`, `book.bidWall`, `book.bidWallSize`, `book.askWall`, `book.askWallSize` | The order book at the bar from the density history: $ within 1% of the close per side, their imbalance, the largest bid and ask level and its size in $ | As the clusters | | `walls.size()`, `walls.price(i)`, `walls.usd(i)`, `walls.side(i)`, `walls.age(i)`, `walls.dist(i)` | The density screener's current densities: price, size in $, side (1 a bid, −1 an ask), minutes since it appeared, distance from the price in % | Symbols the screener tracks; live, no history | > **No data is na:** Where there is no data — liquidations and open interest on spot, bars older than the heatmap keeps — the value is `na`: check it with `na(x)` or replace it with `nz(x)`. `walls` is a snapshot of now: read it on the last bar, inside `if (barstate.islast) { … }`. ``` //@navy 2.0 indicator('Liquidations') plot(nz(liq.long), { title: 'Longs', style: 'columns', color: color.red }) plot(-nz(liq.short), { title: 'Shorts', style: 'columns', color: color.green }) ``` To start from an example, open **Create with AI**: its examples include liquidation spikes, nearest density walls and delta divergence. Every name with its unit: [Navy reference → Wintrading data](https://wintrading.live/app/docs/navy-reference#wintrading-data); how a script reads them: [What a script can read](https://wintrading.live/app/docs/navy-core-concepts#what-a-script-can-read). ### Other timeframes and seconds A script can read the candles of another timeframe of the same coin — higher (15m, 1h, 4h, 1D, 1W, 1M) or lower, down to seconds (1s, 5s, 15s on Binance futures) — with `security(timeframe, () => expression)`. The expression inside the arrow is computed on that timeframe's own bars: its `open`, `high`, `low`, `close`, `volume`, every `ta.*` function and `var`. The result is a line (or a true/false condition) on your chart's bars. ``` //@navy 2.0 overlay('4h trend on any chart') const tf = input.timeframe('Timeframe', '4h') const ema = security(tf, () => ta.ema(close, 50)) const up = security(tf, () => close > ta.ema(close, 50)) const dayOpen = security('1D', () => open, { lookahead: true }) plot(ema, { title: 'EMA 50 ' + tf, color: color.orange, width: 2, style: 'step' }) plot(dayOpen, { title: 'Day open', color: color.gray, style: 'step' }) bgcolor(up ? color.new(color.green, 0.06) : na) ``` - **No repainting.** On every bar of your chart the value is that of the last bar of the other timeframe that had _closed_ by the end of your bar: an hourly EMA on a 5-minute chart changes on the bar that closes the hour, the same on history and live, and an alert on it never fires on a value that later disappears. - **The current bar of a higher timeframe** — `{ lookahead: true }`: the bar your bar is inside, even unfinished. Use it only for what is known at that bar's open: today's open (`security('1D', () => open, { lookahead: true })`), yesterday's high (`high[1]`). For the current day's high it would look into the future on history. - **Seconds inside a bar.** A lower timeframe gives the value of its last bar inside your bar: `security('1s', () => ta.highest(volume, 60))` on a 1-minute chart is the largest one-second volume of the last 60 seconds that traded. - **Compute everything inside.** The arrow reads the script's constants and inputs, but not your chart's variables: `security('1D', () => ta.atr(14))`, not `security('1D', () => atr)` — the editor underlines that. Wintrading's data (`liq`, `oi`, `fp`…) is per bar of your chart and is not available inside. - Pine's `request.security(syminfo.tickerid, '60', close)` works too, so scripts converted from TradingView keep their higher-timeframe parts. Other coins' data is not available. What the arrow may read and how a body in braces ends: [Navy → Other timeframes](https://wintrading.live/app/docs/navy-core-concepts#other-timeframes). > **How much history:** The chart loads up to 5000 bars of each timeframe a script asks for (3000 for seconds), back from the last bar, and keeps the last ones fresh while the chart is live. Older bars of your chart read `na`. Seconds are built from Binance futures trades only: elsewhere a seconds timeframe reads `na`. ### Lines, boxes and labels Besides plots and markers a script draws objects: `line.new`, `box.new` and `label.new` — a level from a swing to its break, a zone, a label with a price or a hint. `x` is a bar index (`bar_index`, may lie in the future), `y` a price. Text is built with `+`, `str.tostring(x, 2)` or `str.format('{0} at {1}', …)`. ``` if (bosUp) { line.new(swingBar, swingHigh, bar_index, swingHigh, { color: color.green, style: 'dashed' }) label.new(bar_index, swingHigh, 'BOS ' + str.tostring(swingHigh, format.mintick), { style: 'down', color: color.green }) } ``` - Objects can be made anywhere — in `if`, loops, functions. Keep them in `var` variables or arrays (`array.new()`) to move or delete them later: `l.set(…)`, `l.delete()`. - Up to 500 of each kind per script; past that the oldest go first. - On the live bar an object follows every tick instead of piling up copies. Every option and method of the three objects: [Navy reference → Drawing objects](https://wintrading.live/app/docs/navy-reference#drawing-objects). ### Alerts A script notifies you with `alert(condition, 'message')` — for example `alert(brokeUp, '{{ticker}}: structure broken up at {{close}}', { freq: 'close' })`. Ask the AI to «add an alert» and it writes one. - **How it arrives.** Like the app's own alerts: the pop-up (if pop-ups are on in the alerts settings), a sound, the voice and desktop notifications if you use them, and the bell's list. The message names the script, the coin and the bar. - **When.** While a chart with the script is open in your browser, on live bars only — history and bar replay never fire. There is no Telegram or phone push for scripts yet. - **How often.** `freq: 'bar'` (default) — once per bar; `'close'` — when the bar closes with the condition (no false alarms from a wick); `'all'` — on every update, at most once per few seconds. The same alert of the same script on several charts of one coin and timeframe arrives once. - **Placeholders.** `{{ticker}}`, `{{exchange}}`, `{{interval}}`, `{{close}}` and the bar's other values are filled in the text. - **Sound.** The script editor's menu (the script name) switches the sound of script alerts on or off in this browser. > **alertcondition:** A script's `alertcondition(...)` stays silent for now — there is no switch for it yet. Use `alert(...)`. Where the call goes and how to raise an alert from inside an `if`: [Navy → Alerts](https://wintrading.live/app/docs/navy-on-the-chart#alerts). ### Publishing and review To share a script, open its menu in **My scripts → Publish…**: give it a name, a description (what it shows and how to read it), a category, and confirm the rules. The data it reads is detected from the code. Every publication is **reviewed** by the Wintrading team before it appears in «Community», usually within a day. The status is shown next to the script: _Under review_, _Published_ or _Rejected_ with the reason. To change a published script, edit and save it, then **Submit the update**. The update is reviewed too: until it is approved, everyone keeps the previous version. **Remove from community** hides it again; it stays in your scripts. > **Rules:** Your own work (or credit for the code you reuse); an honest description without promises of profit; no links, contacts or advertising; no errors on the chart. Published code is open: other traders can read it and copy it into their scripts. ### Votes and popularity Every community script has 👍 and 👎, like the old YouTube. A thumb adds your vote; the same thumb again takes it back; the other thumb moves it. You cannot vote for your own script. Vote where you see the script: on its row in **Community**, under its description when you open the row (**Rate this indicator**), and in **On the chart** for the community scripts you have on the chart. Voting needs you to be signed in. Your own published scripts show their votes in **My scripts**. **Popular** sorts by likes minus dislikes, then by how many traders put the script on a chart (the number next to the people icon). **New** sorts by the date of publication. ### Limits - Pro and the trial keep up to **3** of your own scripts, Pro+ has no limit. Every script you own counts — private, under review, published and copies; deleting one frees a slot. The counter next to **My scripts** shows how many are taken. After moving to a plan with a lower limit your scripts stay and keep working — only new ones wait for a free slot. - The code of one script is up to 256 KB. - Scripts run in a separate thread: a script that loops for too long or asks for too much memory is stopped and marked on the chart, the chart keeps working. - On a Trial the limit of 2 indicators per chart counts scripts too. - Data beyond the candles has gaps by nature: liquidations only on Binance and Bybit futures, clusters and the book only for the bars the heatmap service keeps, densities only for the symbols the screener tracks (see **Data**). ## Navy: getting started URL: https://wintrading.live/app/docs/navy-getting-started Navy is the scripting language of the Wintrading charts: how it is built, how a script runs, your first indicator. ### What Navy is _Everything runs in your browser: the editor checks the code, a worker runs it, the chart draws it._ **Navy** is the language of indicators on the Wintrading charts. - **A script is an indicator** like the built-in ones: on the price chart or in its own pane, with a legend, settings and alerts. - **Written like TypeScript**, **runs like Pine Script**: once per bar, every value a series with history. - The built-in library (Trend Cloud, Ichimoku, Supertrend, RSI Pro…) and every script in **My scripts** and **Community** are written in it. > **You do not have to write it yourself:** ChatGPT or Claude writes it from your description ([Create with AI](https://wintrading.live/app/docs/scripts#create-with-ai)); this guide helps you check it. Next: [your first indicator](https://wintrading.live/app/docs/navy-getting-started#first-indicator), [core concepts](https://wintrading.live/app/docs/navy-core-concepts), [what a script draws](https://wintrading.live/app/docs/navy-on-the-chart), [the reference](https://wintrading.live/app/docs/navy-reference). ### Bar by bar: how a script runs The script's top level runs **once per bar**, starting from the oldest bar. _One run per closed bar; the live bar runs again on every update._ - `close`, `volume`… are the values of the bar being run; `close[1]` — the bar before. - **The live bar** re-runs on every update, its state first rolled back: `var` counts the bar once, an object drawn on it is redrawn, not copied. - **History equals live**: the same result either way. Older bars, another coin or timeframe — the history runs again. - `barstate.islast` — the live bar; `barstate.isconfirmed` — its last run; `barstate.ishistory` — a closed bar. ``` //@navy 2.0 indicator('Bars and updates') var bars = 0 // var: kept from bar to bar, rolled back before every update of the live bar bars += 1 varip runs = 0 // varip: kept between the updates of the live bar too runs += 1 plot(bars, { title: 'Bars', color: color.blue }) plot(runs, { title: 'Runs', color: color.orange }) ``` On the live bar `runs` keeps growing: `varip` is never rolled back. > **No looking ahead:** A bar sees only itself and the bars before. `ta.pivothigh(high, 5, 5)` reports a swing 5 bars late; drawn back on the pivot bar, it shows on history what nobody saw live. ### What a script looks like A complete indicator: an EMA colored by the trend, labels on the crosses, an alert. _The parts of a script, and what it draws on a BTCUSDT 1m chart._ - `//@navy 2.0` first (else NV1001), then exactly one `overlay('…')` or `indicator('…')`: its title names the script. - **Outputs** — `plot`, `hline`, `fill`, `bgcolor`, `marker.*`, `alert` — stay at the **top level**, never inside `if` or a loop: their value changes per bar, `na` draws nothing. - Comments `//`, `/* … */`; a `;` at a line's end is optional. ### Your first indicator Five minutes, no AI. Saving your own scripts needs **Pro** (the trial counts). - **Open the editor**: the indicator window → **My scripts** → **Open editor**. Paste: ``` //@navy 2.0 overlay('My first indicator') plot(ta.sma(close, 20), { title: 'SMA 20', color: color.orange, width: 2 }) ``` - **Add to chart** (`Ctrl+Enter`): saved under its `overlay('…')` name, an orange line appears; errors are under **Problems**. - **Two EMAs and a cloud**: **Update on chart** shows the new code at once, before saving. ``` //@navy 2.0 overlay('My first indicator') const fastLen = input.int('Fast', 9, { min: 1 }) const slowLen = input.int('Slow', 21, { min: 1 }) const fast = ta.ema(close, fastLen) const slow = ta.ema(close, slowLen) const a = plot(fast, { title: 'Fast', color: color.orange, width: 2 }) const b = plot(slow, { title: 'Slow', color: color.blue, width: 2 }) fill(a, b, { color: fast > slow ? color.new(color.teal, 0.15) : color.new(color.red, 0.15) }) ``` - **Signals and alerts** — the whole script: ``` //@navy 2.0 overlay('My first indicator') const fastLen = input.int('Fast', 9, { min: 1 }) const slowLen = input.int('Slow', 21, { min: 1 }) const fast = ta.ema(close, fastLen) const slow = ta.ema(close, slowLen) const a = plot(fast, { title: 'Fast', color: color.orange, width: 2 }) const b = plot(slow, { title: 'Slow', color: color.blue, width: 2 }) fill(a, b, { color: fast > slow ? color.new(color.teal, 0.15) : color.new(color.red, 0.15) }) // Signals: computed at the top level, on every bar const up = ta.crossover(fast, slow) const down = ta.crossunder(fast, slow) marker.below(up, 'Buy', { shape: 'label', color: color.teal }) marker.above(down, 'Sell', { shape: 'label', color: color.red }) alert(up, '{{ticker}}: fast EMA crossed above the slow one at {{close}}', { freq: 'close' }) alert(down, '{{ticker}}: fast EMA crossed below the slow one at {{close}}', { freq: 'close' }) ``` - **Save** (`Ctrl+S`). _Fast_ and _Slow_ are now in the settings window (the gear in the legend). _Step 4 on a BTCUSDT 1m chart._ _The editor over the chart: Update on chart draws the result at once._ > **Nothing drawn?:** The first bars of an average are `na`. A run-time error is in the editor's **On the chart** tab. ### Where a script runs and who sees it - **In your browser**, in a thread next to the chart; nothing is computed on a server. - **Only where it is on** (Coins, the heatmap, the constructor, the trend screener); its data loads only while it reads it. - **Safely**: the chart's data and the language only — no page, no network. Too long a loop or too much memory stops the script, not the chart ([limits](https://wintrading.live/app/docs/navy-reference#limits-and-errors)). _Measured: a few ms to compile, about a millisecond for 10 000 bars._ - A new script is private: **My scripts**, your account. - **Publish** it: after a review it is in **Community** — anyone can add it, vote, copy it; the code is open ([Publishing](https://wintrading.live/app/docs/scripts#publishing)). _My scripts: your own; a published one shows its votes._ _Community: published scripts, popular or new._ ### Navy and Pine Script Runs like Pine, written like TypeScript: TradingView code does not run as is — ChatGPT or Claude ports it in a minute ([Scripts → From TradingView](https://wintrading.live/app/docs/scripts#from-tradingview)). _The same indicator in both languages; the changed parts are colored._ | Pine Script | Navy | The Pine form | | `//@version=6`, `indicator("X", overlay=true)` | `//@navy 2.0`, then `overlay('X')` or `indicator('X')` | error, with a hint | | `plot(x, "EMA", color=color.red, linewidth=2)` | `plot(x, { title: 'EMA', color: color.red, width: 2 })` | error, with a hint | | `input.int(14, "Length", minval=1)` | `input.int('Length', 14, { min: 1 })` — the title first | error, with a hint | | `x := x + 1` | `x = x + 1` or `x += 1` | error, with a hint | | `len = 14` (first use) | `const len = 14` (or `let`, `var`) | error, with a hint | | `if cond` | `if (cond) { … }` | error, with a hint | | `and`, `or`, `not` | `&&`, `||`, `!` | error, with a hint | | `for i = 0 to n` | `for (let i = 0; i <= n; i++) { … }` | error, with a hint | | `f(x) => x * 2` | `function f(x: float): float { return x * 2 }` | error, with a hint | | `var float x = na` | `var x: float = na` | accepted | | bodies by indentation | braces `{ … }` | accepted | | `color.new(c, 85)` — transparency 0…100 | `color.new(c, 0.15)` — **opacity** 0…1 | accepted (above 1) | | `request.security(syminfo.tickerid, "60", expr)` | `security('1h', () => expr)` | accepted | | `plotshape`, `plotchar`, `plotarrow` | `marker.above`, `marker.below`, `marker.at` | not available | | `switch` | `if … else if …` | not available | - **Accepted as they are**: `shape.labelup`, `size.small`, `plot.style_stepline`, `linewidth`, `line.style_dashed`, `array.new_float()`, `array.push(a, x)`, `line.set_xy1(l, x, y)`, `var line l = na`, `[a, b] = f()`, double-quoted strings, the same input title in different groups. - **Navy adds**: Wintrading's data — `vol.*`, `liq.*`, `oi.*`, `fp.*`, `book.*`, `walls.*`; second timeframes on Binance futures; `security()` that does not repaint by default. | Not in Navy | Instead | | `strategy.*` | indicators only: entries and exits as markers and alerts | | `table.*` | a label on the last bar | | `barcolor` | `bgcolor` or markers | | other symbols in `request.security`, `request.security_lower_tf` | the chart's coin only; a lower timeframe gives its value at the end of the bar | | `timeframe.period` | `timeframe.ms` | | `hour`, `dayofweek` | from `time` (ms, UTC): `math.floor(time / 3600000) % 24` | | `math.round_to_mintick(x)` | `math.round(x / syminfo.mintick) * syminfo.mintick` | | `plotcandle`, `polyline`, `matrix`, `color.from_gradient`, `import`, `method`, a plot's `offset` and `display` | — | ### Writing with AI ChatGPT or Claude get the Navy reference from the same compiler: answers usually compile the first time. _Create with AI: describe, send the prompt, paste the answer — it is checked at once._ - **One thing**, with what to tune: «EMA 50 and 200, a cloud between them, lengths in the settings». - **Name the data and the place**: «long liquidations», «the nearest density», «the 4h trend»; «on the price chart» or «in a pane». - **Ask for a marker or label** on the signal, and an alert. - **Errors** → **Copy the errors for the AI** or **Fix with AI**, into the same chat. - [The Navy reference (.txt)](https://wintrading.live/app/docs/navy-getting-started#download-ai-reference) for a chat; steps: [Create with AI](https://wintrading.live/app/docs/scripts#create-with-ai), [From TradingView](https://wintrading.live/app/docs/scripts#from-tradingview). > **Read it before you trade it:** No look-ahead in the signal, inputs that mean what they say, data your exchange has; then a few coins and timeframes. ### The editor and its keys Opens from **My scripts → Open editor** or a script's **Open in the editor**; saving, updating and problems: [Scripts → The editor](https://wintrading.live/app/docs/scripts#editor). _A panel over the chart: the header, the code, problems, Save and Update on chart._ - **Checks as you type** with the chart's compiler: _Compiled · 3 ms_ or the number of errors. - **Completes names**, Wintrading's too (`liq.`, `walls.`…); **help on hover**; parameters inside the brackets. - **Quick fixes** for typical mistakes (Pine's `:=`, an `if` without brackets, a misspelled name); a color swatch by every color; folding in the margin. _Help on hover: the signature, the parameters, an example._ _Completion as you type._ _Problems: the code, the line and the column; a click jumps there._ | Action | Keys | | Run the code on the chart (**Add to chart** / **Update on chart**) | `Ctrl+Enter` | | Save | `Ctrl+S` | | Complete a name | `Ctrl+Space` | | Go to where a name is declared | `F12`, `Ctrl`+click | | Add another cursor | `Alt`+click | | Select the next occurrence of a word | `Ctrl+D` | | Find and replace | `Ctrl+F` | | Comment lines out and back in | `Ctrl+/` | | Move a line up or down | `Alt+↑`, `Alt+↓` | | Next problem | `F8` | | Undo, redo | `Ctrl+Z`, `Ctrl+Y` | On a Mac: `Cmd` for `Ctrl`; redo — `Cmd+Shift+Z`; completion stays `Ctrl+Space`. ## Navy: core concepts URL: https://wintrading.live/app/docs/navy-core-concepts Series and history, variables and state, types and na, conditions and loops, functions, inputs — and what a script can read. ### Series and history _The topic in one picture._ Every value is a **series**: it has a value on every bar; `[k]` reads it `k` bars back. _close is the bar being computed, close[1] the one before; before the first bar — na._ - `[k]` works on built-in series, Wintrading's per-bar data (`liq.long[1]`), top-level variables (`ema[1]`), expressions (`(high - low)[1]`); `k` may be a variable: `close[i]`. - **No history** of a call — `const hh = ta.highest(high, 20)`, then `hh[1]`, not `ta.highest(high, 20)[1]` (NV2403) — nor of a block variable, a string, a color, an object. - A variable `k` reaches 500 bars at first (`maxBarsBack`), then grows to 20 000; a constant — up to 20 000. ``` //@navy 2.0 overlay('20-bar breakout') const hh = ta.highest(high, 20) // the highest high of the last 20 bars, this one included const top = hh[1] // the same value one bar ago: the previous 20 bars const breakout = close > top const first = breakout && !breakout[1] // the first bar of a breakout, not every bar above plot(top, { title: 'Previous 20-bar high', color: color.gray, style: 'step' }) marker.below(first, 'Breakout', { shape: 'label', color: color.teal }) ``` ### Variables and state Four declarations; they differ in what reaches the next bar. _let starts over on every bar, var keeps its value, varip also counts the updates._ | Declaration | What it is | To the next bar | | `const x = …` | Computed on every bar; cannot be reassigned | no | | `let x = …` | Computed on every bar; may change during the bar | no | | `var x = …` | Set on the first bar, then keeps its value; rolled back before every update of the live bar | yes | | `varip x = …` | Like `var`, never rolled back: counts every update | yes, updates too | - `=`, `+=`, `-=`, `*=`, `/=`, `%=`; `++`/`--` only in a `for` header. - `var total = 0` is a float; a whole-number counter: `var n: int = 0`. - A first use without `const`/`let`/`var` — NV2003; a name declared twice in a block — NV2302. - Pine's `var float x = na`, `var line l = na` work. ``` //@navy 2.0 indicator('Green streak') const green = close > open // const: computed on every bar, never reassigned var streak = 0 // var: set once, then carried from bar to bar if (green) { streak += 1 } else { streak = 0 } let col = color.gray // let: computed on every bar, may change below if (streak >= 3) { col = color.teal } plot(streak, { title: 'Green bars in a row', style: 'columns', color: col }) ``` ### Types and na Types are inferred; write one only where it matters: `let x: float = na`, `var l: line = na`. | Type | Values | Can be na | | `float` | A number (64-bit) | yes | | `int` | A whole number | yes | | `bool` | `true`, `false` | never | | `string` | Text: `'abc'` or `"abc"` | no | | `color` | `color.red`, `'#ff9800'`, `color.rgb(…)` | no | | `line`, `box`, `label` | A drawing object | yes: none yet | | `array`, `map` | A list, a dictionary | yes: none yet | _na passes through arithmetic; a comparison with it is false; nz() puts a value in._ - **int → float** freely; back only with `int(x)`, `math.floor`, `math.ceil`. `7 / 2` is 3.5. - **Conditions are bool**: `if (!na(x))`, not `if (x)` for a number (NV2101). - **na**: test `na(x)` (`x == na` is always false); `nz(x, y)`, `x ?? y`; `fixnan(x)` — the last non-na. - `ta.*` lengths: a number, an input or `+ - *` of them — not a call like `int(len / 2)` (NV2201). ``` //@navy 2.0 indicator('Distance from the average, %', { precision: 2 }) const len = input.int('Length', 50, { min: 1 }) const avg = ta.sma(close, len) // na until there are len bars const dist = (close - avg) / avg * 100 // na in, na out: no value on those bars const above = dist > 0 // a bool is never na: false where dist is na var barsAbove: int = 0 // an int counter (a plain 0 would make a float) barsAbove = above ? barsAbove + 1 : 0 plot(dist, { title: 'Distance, %', style: 'area', base: 0, color: color.teal, colorDown: color.red }) marker.at(barsAbove == 20 ? dist : na, '20', { color: color.teal, size: 'small' }) ``` ### Conditions and loops - `if (cond) { … } else if (cond2) { … } else { … }` and `cond ? a : b`. No `switch` — use `else if`. - `for (let i = 0; i < n; i++) { … }` (also `i--`, `i += 2`), `while (cond) { … }`, `break`, `continue`. - Braces, or a body indented as in Pine. - Up to 1 000 000 loop iterations per bar (`fuel`: up to 10 000 000); an endless loop stops the script (NV4001). _ta.* inside if sees only the bars where the branch ran — compute at the top level._ ``` //@navy 2.0 indicator('Up closes in the last N bars') const n = input.int('Bars', 10, { min: 1, max: 100 }) let ups = 0 for (let i = 0; i < n; i++) { if (close[i] > open[i]) { ups += 1 } } // ta.* at the top level, on every bar; the condition only uses the result const rsi = ta.rsi(close, 14) const strong = ups >= n * 0.7 && rsi > 60 plot(ups, { title: 'Up closes', style: 'columns', color: strong ? color.teal : color.gray }) ``` ### Functions A function gives a calculation a name, to use it more than once. ``` //@navy 2.0 indicator('Z-score') // How far a value is from its average, in standard deviations. function zscore(src: float, len: int): float { const mean = ta.sma(src, len) return (src - mean) / ta.stdev(src, len) } const zPrice = zscore(close, input.int('Length', 20, { min: 2 })) const zVolume = zscore(volume, 50) // its own averages: the two calls share no state plot(zPrice, { title: 'Price', color: color.blue, width: 2 }) plot(zVolume, { title: 'Volume', color: color.orange }) hline(2, { color: color.gray }) hline(-2, { color: color.gray }) ``` - At the top level, before use: `function name(a: float, n: int = 14): float { … }`; one `return` value. - **Each call has its own state**: the two `zscore` calls share no `ta.sma`. - A top-level variable that changes per bar comes in as a parameter (NV2502). No recursion (NV2501). - Tuples come from built-ins: `const [macd, signal, hist] = ta.macd(close, 12, 26, 9)`. ### Arrays, maps and your own types Several values at once: the last swings, the levels still unbroken. ``` //@navy 2.0 overlay('Highest of the last swings') const len = input.int('Swing length', 5, { min: 1 }) const keep = input.int('Swings to keep', 5, { min: 1, max: 50 }) const ph = ta.pivothigh(high, len, len) var highs = array.new(0) // var: the list lives from bar to bar if (!na(ph)) { highs.push(ph) if (highs.size() > keep) { highs.shift() // drop the oldest } } plot(highs.size() > 0 ? highs.max() : na, { title: 'Highest swing', color: color.red, style: 'step' }) ``` - `array.new(0)`, `array.from(1, 2, 3)`: `push`, `shift`, `get(i)`, `size()`, `max()` … ([all](https://wintrading.live/app/docs/navy-reference#collections)). - `map.new()`: `put`, `get`, `has`, `keys()`. - `type Pivot = { price: float, bar: int }`; `enum Mode { Fast, Slow }` → `input.enum`. - In `var` it lives from bar to bar; in `let`/`const` it is new on every bar. `a.copy()` copies. - Up to 100 000 elements; an index outside stops the script (NV4003). ### Inputs (settings) Every number a trader may tune is an input: the title first, the default second (the reverse of Pine). _Three input.* lines and the settings window they make._ | Input | In the settings window | Gives | | `input.int(title, 14, { min, max, step, options })` | A number field; with `options` a drop-down | `int` | | `input.float(title, 1.5, { min, max, step, options })` | A number field; with `options` a drop-down | `float` | | `input.bool(title, true)` | A checkbox | `bool` | | `input.string(title, 'EMA', { options })` | A text field; with `options` a drop-down | `string` | | `input.color(title, color.orange)` | A color picker | `color` | | `input.source(title, close)` | A drop-down of price series: `close`, `hl2`, `ohlc4` … | a series | | `input.timeframe(title, '4h')` | A drop-down of timeframes | `string` | | `input.enum(title, Mode.Fast)` | A drop-down of the enum's members | the enum | - `tooltip` — a hint; `group` — a section; titled `''` — in the previous row; titles may repeat across groups. - Values are saved by title: renaming an input resets it. - An input works where a constant is needed: a `ta.*` length, a `security()` timeframe. ``` //@navy 2.0 overlay('Average with a band') const src = input.source('Source', close, { group: 'Average' }) const len = input.int('Length', 20, { min: 1, max: 500, group: 'Average' }) const kind = input.string('Type', 'EMA', { options: ['EMA', 'SMA', 'HMA'], group: 'Average' }) const lineColor = input.color('', color.orange, { group: 'Average' }) // '' sits in the row of «Type» const showBand = input.bool('Show band', true, { group: 'Band' }) const mult = input.float('Width, × ATR', 1.5, { min: 0.1, step: 0.1, group: 'Band', tooltip: 'Half-width of the band in ATRs' }) const tf = input.timeframe('Trend timeframe', '4h', { group: 'Trend' }) const ema = ta.ema(src, len) const sma = ta.sma(src, len) const hma = ta.hma(src, len) const ma = kind == 'EMA' ? ema : kind == 'SMA' ? sma : hma const atr = ta.atr(14) const trendUp = security(tf, () => close > ta.ema(close, 50)) plot(ma, { title: 'Average', color: lineColor, width: 2 }) const upper = plot(showBand ? ma + atr * mult : na, { title: 'Upper', color: color.new(lineColor, 0.4) }) const lower = plot(showBand ? ma - atr * mult : na, { title: 'Lower', color: color.new(lineColor, 0.4) }) fill(upper, lower, { color: trendUp ? color.new(color.teal, 0.08) : color.new(color.red, 0.08) }) ``` ### What a script can read _Every kind of data, and where it is available._ | Name | What it is | Type | | `open`, `high`, `low`, `close` | Prices of the bar; `close` is the last price on the live bar | `float` | | `volume` | Volume of the bar | `float` | | `hl2`, `hlc3`, `ohlc4`, `hlcc4` | (high + low) / 2 and the other averaged prices | `float` | | `time` | The bar's open time, ms since 1970, UTC | `float` | | `bar_index` | The bar's number: 0 on the first loaded bar | `int` | | `barstate.isfirst`, `.islast`, `.ishistory`, `.isrealtime`, `.isnew`, `.isconfirmed` | The first bar; the live one; a closed bar; a bar updated live; its first run; its last run | `bool` | | `syminfo.ticker`, `syminfo.ticksize` (`syminfo.mintick`) | The symbol (BTCUSDT) and its tick size | fixed | | `timeframe.ms` | The length of one bar, ms | `int` | - `vol`, `liq`, `oi`, `fp`, `book` — per bar with history; `walls` — a live list: read it in `if (barstate.islast)`. Fields: [reference](https://wintrading.live/app/docs/navy-reference#wintrading-data); units: [Scripts → Data](https://wintrading.live/app/docs/scripts#data). - No data — `na`: `nz()` it. ``` //@navy 2.0 indicator('Volume delta, $M', { precision: 2 }) const delta = nz(vol.delta) * close / 1000000 // taker buys − sells of the bar: coins → $ millions const avg = ta.sma(math.abs(delta), 50) // a typical size of the delta plot(delta, { title: 'Delta', style: 'columns', color: delta >= 0 ? color.teal : color.red }) plot(avg, { title: 'Typical |delta|', color: color.gray }) plot(-avg, { title: 'Typical |delta| (sell side)', color: color.gray }) ``` _The example: volume delta in $M with its typical size (the delta here is sample data)._ ### Other timeframes `security(timeframe, () => expression)` computes the expression on another timeframe of the same coin and returns it as a series on your chart's bars. _By default: the 1h bar closed by the end of each bar; with lookahead: the 1h bar it is inside._ - **No repainting** by default. - **Compute inside the arrow**: `security('1D', () => ta.atr(14))`, not `() => atr` (NV2505); no Wintrading data or your functions in it. - Timeframes: `'1s'` `'5s'` `'15s'` `'1m'` `'5m'` `'15m'` `'30m'` `'1h'` `'2h'` `'4h'` `'1D'` `'1W'` `'1M'`, an `input.timeframe`, Pine's `'60'`; the chart's coin only. - `{ lookahead: true }` — only for what is known at the open: `open`, `high[1]`. - Braces need `return`: `() => { const e = ta.ema(close, 20); return close > e }`. ``` //@navy 2.0 overlay('Higher-timeframe EMA') const tf = input.timeframe('Timeframe', '4h') const len = input.int('Length', 50, { min: 1 }) // Computed on the bars of tf; on your chart: the value of its last closed bar const htfEma = security(tf, () => ta.ema(close, len)) const htfUp = security(tf, () => close > ta.ema(close, len)) // Yesterday's high is final at today's open: lookahead does not peek ahead here const prevDayHigh = security('1D', () => high[1], { lookahead: true }) plot(htfEma, { title: 'EMA (higher timeframe)', color: htfUp ? color.teal : color.red, width: 2, style: 'step' }) plot(prevDayHigh, { title: 'Previous day high', color: color.gray, style: 'step' }) ``` More — seconds, how much history loads: [Scripts → Other timeframes](https://wintrading.live/app/docs/scripts#other-timeframes). ## Navy: what a script draws URL: https://wintrading.live/app/docs/navy-on-the-chart The price chart or a pane of its own, plots and their styles, colors, levels and fills, backgrounds, markers, lines, boxes, labels and alerts. ### On the price chart or in a pane _Every output on one chart, with the call that draws it._ The declaration decides where a script draws. _overlay draws on the price chart; indicator in a pane of its own._ - `overlay('Title')` — the price chart: averages, bands, levels, signals. - `indicator('Title')` — a pane below with its own scale: oscillators, volume, delta. - In a pane, mark a value with `marker.at(cond ? value : na)`: `marker.above`/`.below` sit at the bar's high/low. - Up to 64 outputs; their `title` names them in the legend. | Option | What it does | Default | | `precision` | Digits after the point in the legend and on the scale | the symbol's | | `maxBarsBack` | How far back `x[k]` with a variable `k` reaches at first (up to 20 000) | 500 | | `fuel` | Loop iterations allowed per bar (up to 10 000 000) | 1 000 000 | ``` //@navy 2.0 indicator('RSI', { precision: 1 }) const r = ta.rsi(close, 14) plot(r, { title: 'RSI', color: color.purple, width: 2 }) hline(50, { color: color.gray, style: 'dotted' }) // In its own pane the bar's high and low are not on this scale: mark the value itself marker.at(ta.crossover(r, 50) ? r : na, '', { color: color.teal, size: 6 }) ``` ### plot and its styles `plot(series, { title, color, width, style })` draws a value on every bar; `na` leaves a gap. _The seven styles as the chart engine draws them._ - `color` may change per bar: `hist >= 0 ? color.teal : color.red`; `width`, `style` — constants; no color → the palette's next. - `base` — where `columns`/`area` start; `colorDown` — `area` below it. - `const p = plot(…)` can be [filled](https://wintrading.live/app/docs/navy-on-the-chart#fills-and-levels); Pine's `linewidth`, `plot.style_stepline` work. ``` //@navy 2.0 indicator('MACD in four styles') const [macd, signal, hist] = ta.macd(close, 12, 26, 9) const crossUp = ta.crossover(macd, signal) plot(hist, { title: 'Histogram', style: 'columns', color: hist >= 0 ? color.teal : color.red }) plot(macd, { title: 'MACD', color: color.blue, width: 2 }) plot(signal, { title: 'Signal', color: color.orange, style: 'step' }) plot(crossUp ? macd : na, { title: 'Cross', style: 'circles', color: color.lime, width: 4 }) ``` _The example: four styles in one MACD pane._ ### Colors - Named: `color.red`, `green`, `blue`, `orange`, `yellow`, `purple`, `fuchsia`, `aqua`, `teal`, `lime`, `maroon`, `navy`, `olive`, `silver`, `gray`, `white`, `black`. - Own: `color.rgb(255, 152, 0, 0.5)`, `'#ff9800'`, `'#ff980080'`; `color.new(c, opacity)`. - Per bar: `plot`, `fill`, `bgcolor`, markers; constant: `hline`, a marker's text. _Opacity from 0 to 1, not Pine's transparency: 0.15 here is 85 there._ - Above 1 — read as Pine's transparency; `color.new(c, 1)` is solid. ``` //@navy 2.0 indicator('Volume by strength') const rel = volume / ta.sma(volume, 20) // 1 = an average bar const strength = math.min(rel / 3, 1) // 0 … 1, full at 3× the average const base = close >= open ? color.teal : color.red // Opacity per bar: quiet bars fade, heavy ones are solid plot(volume, { title: 'Volume', style: 'columns', color: color.new(base, 0.25 + 0.75 * strength) }) ``` ### Levels and fills - `hline(70, { style })` — a constant level: `'solid'`, `'dashed'` (default), `'dotted'`. - `fill(a, b, { color })` — between plots or hlines kept in constants (`const a = plot(…)`). - **A cloud**: the fill's color changes per bar; hide the edges with `color.new(c, 0)`. - **A gradient**: `topValue`, `bottomValue`, `topColor`, `bottomColor`, as in Pine. _Fills between plots and levels, a gradient, the bar background._ ``` //@navy 2.0 indicator('RSI with zones', { precision: 1 }) const r = ta.rsi(close, input.int('Length', 14, { min: 2 })) const top = hline(70, { title: 'Overbought', color: color.gray }) const bottom = hline(30, { title: 'Oversold', color: color.gray }) fill(top, bottom, { color: color.new(color.purple, 0.06) }) // A glow where the RSI leaves the zone: invisible edges held at 70 / 30, gradient fills const hot = plot(math.max(r, 70), { title: 'Overbought edge', color: color.new(color.red, 0) }) const cold = plot(math.min(r, 30), { title: 'Oversold edge', color: color.new(color.teal, 0) }) fill(hot, top, { topValue: 85, bottomValue: 70, topColor: color.new(color.red, 0.8), bottomColor: color.new(color.red, 0) }) fill(bottom, cold, { topValue: 30, bottomValue: 15, topColor: color.new(color.teal, 0), bottomColor: color.new(color.teal, 0.8) }) plot(r, { title: 'RSI', color: color.purple, width: 2 }) ``` _The example: the RSI zone and its glow beyond 30 during a sell-off._ ### Background and bar colors - `bgcolor(color)` — the full height of the script's pane behind a bar; `na` — clear. Opacity 0.05–0.2. - No `barcolor`: use a background, a marker or columns. ``` //@navy 2.0 indicator('Liquidation bars', { precision: 0 }) const longs = nz(liq.long) // na on spot and before the loaded history → 0 const shorts = nz(liq.short) const avg = ta.sma(longs + shorts, 50) const spike = avg[1] > 0 && longs + shorts > avg[1] * 3 // against the previous bars' average plot(longs, { title: 'Longs liquidated', style: 'columns', color: color.red }) plot(-shorts, { title: 'Shorts liquidated', style: 'columns', color: color.teal }) bgcolor(spike ? color.new(color.orange, 0.15) : na, { title: 'Spike' }) ``` _The example: liquidations, spikes on an orange background (the liquidations here are sample data)._ ### Markers - `marker.above(cond, 'text', { shape, size, color })` — over the high; `marker.below` — under the low; `marker.at(price)` — at a price. - `size`: pixels or `'tiny'` … `'huge'`; `color` may change per bar. - The text is a constant: a price goes into `label.new`. Pine's `shape.*`, `size.*` work. _The ten shapes; above, below, at a price._ ``` //@navy 2.0 overlay('Engulfing candles') const bull = close > open && close[1] < open[1] && close >= open[1] && open <= close[1] const bear = close < open && close[1] > open[1] && close <= open[1] && open >= close[1] marker.below(bull, 'Bull', { shape: 'label', color: color.teal, textColor: color.white, size: 'small' }) marker.above(bear, '', { shape: 'triangleDown', color: color.red, size: 'small' }) ``` ### Lines, boxes and labels Unlike plots, objects are created where something happens — in `if`, loops, functions — and stay until deleted. _x is a bar index, y a price: the boxes and labels of the breakout example._ - `line.new(x1, y1, x2, y2)`, `box.new(left, top, right, bottom)`, `label.new(x, y, text)`; `bar_index + 10` is in the future. - Text from values: `'Breakout ' + str.tostring(top, format.mintick)`. - A handle in `var` to change it: `lvl.setXY2(…)`, `lvl.delete()`. - «Current state» goes in `if (barstate.islast)`: redrawn on every update, not piled up. - 500 of each kind; past that the oldest goes. _Line styles, label styles, boxes._ ``` //@navy 2.0 overlay('Range breakout') const len = input.int('Range, bars', 30, { min: 5 }) const hh = ta.highest(high, len) const ll = ta.lowest(low, len) const top = hh[1] // the range of the previous len bars const bottom = ll[1] const breakUp = ta.crossover(close, top) if (breakUp) { // The broken range as a box, the level written on the breakout bar box.new(bar_index - len, top, bar_index - 1, bottom, { color: color.new(color.blue, 0.1), borderColor: color.blue }) label.new(bar_index, high, 'Breakout ' + str.tostring(top, format.mintick), { style: 'down', color: color.teal, textColor: color.white, size: 'small' }) } // The current range: redrawn on every update of the last bar, never piled up if (barstate.islast) { line.new(bar_index - len, top, bar_index + 10, top, { color: color.gray, style: 'dashed' }) line.new(bar_index - len, bottom, bar_index + 10, bottom, { color: color.gray, style: 'dashed' }) } alert(breakUp, '{{ticker}}: range breakout at {{close}}', { freq: 'close' }) ``` Options and methods: [Scripts → Lines, boxes and labels](https://wintrading.live/app/docs/scripts#drawing), the [reference](https://wintrading.live/app/docs/navy-reference#drawing-objects). ### Alerts `alert(condition, 'message', { freq, title })` notifies you when the condition holds on a live bar; written at the top level. _freq: 'bar' — the first update where it holds; 'close' — the bar's close; 'all' — every update._ - `'bar'` (default) — early; `'close'` — no false alarms from a wick; `'all'` — level touches. - Placeholders: `{{ticker}}`, `{{exchange}}`, `{{interval}}`, `{{open}}` … `{{volume}}`, `{{time}}`, `{{plot_0}}`, `{{plot("RSI")}}`. - An event found in a block: a top-level flag, set in the block (below). - Never on history or replay; `alertcondition` is silent for now. ``` //@navy 2.0 overlay('Price near a density') const maxDist = input.float('Distance, %', 0.3, { min: 0.05, step: 0.05 }) // An event found inside a block: a top-level flag, set in the block let near = false if (barstate.islast) { for (let i = 0; i < walls.size(); i++) { if (walls.dist(i) <= maxDist) { near = true line.new(bar_index - 20, walls.price(i), bar_index + 5, walls.price(i), { color: walls.side(i) > 0 ? color.teal : color.red, width: 2 }) } } } // Outputs stay at the top level and read the flag alert(near, '{{ticker}}: the price is near a density', { title: 'Near a density' }) ``` _Like the app's own alerts — while a chart with the script is open._ How alerts arrive and their sound: [Scripts → Alerts](https://wintrading.live/app/docs/scripts#alerts). ## Navy quick reference URL: https://wintrading.live/app/docs/navy-reference Everything built into Navy on one page: the language, series and variables, inputs, all ta.* functions, math and text, colors, outputs, drawing objects, collections, Wintrading data, limits, errors. ### The language at a glance _Everything built in, counted from the compiler's registry._ The editor's hover help and completion show the same entries with parameters and examples. | Write | Meaning | More | | `//@navy 2.0` | The first line of every script | [Anatomy](https://wintrading.live/app/docs/navy-getting-started#script-anatomy) | | `overlay('T', { … })`, `indicator('T', { … })` | The declaration, exactly one, right after the first line: on the price chart / in its own pane | [Placement](https://wintrading.live/app/docs/navy-on-the-chart#price-or-pane) | | `const`, `let`, `var`, `varip` | Declarations: per bar and fixed; per bar and reassignable; kept from bar to bar; kept between ticks too | [Variables](https://wintrading.live/app/docs/navy-core-concepts#variables) | | `let x: float = na`, `var l: line = na` | An optional type after the name | [Types](https://wintrading.live/app/docs/navy-core-concepts#types-and-na) | | `x[k]`, `(high - low)[1]` | The value k bars ago | [Series](https://wintrading.live/app/docs/navy-core-concepts#series-and-history) | | `+ - * / %`, `== != < <= > >=`, `&& || !`, `c ? a : b`, `x ?? y` | Operators; `+` also joins strings; `&&`, `||`, `? :` are lazy; `x ?? y` is `y` where `x` is na | [Types](https://wintrading.live/app/docs/navy-core-concepts#types-and-na) | | `= += -= *= /= %=` | Assignment; `++` and `--` only in a `for` header | [Variables](https://wintrading.live/app/docs/navy-core-concepts#variables) | | `if (c) { … } else if (c2) { … } else { … }` | A condition; `c` is a bool | [Control](https://wintrading.live/app/docs/navy-core-concepts#conditions-and-loops) | | `for (let i = 0; i < n; i++) { … }`, `while (c) { … }`, `break`, `continue` | Loops; every iteration spends fuel | [Control](https://wintrading.live/app/docs/navy-core-concepts#conditions-and-loops) | | `function f(a: float, n: int = 14): float { return … }` | A function at the top level; each call has its own state | [Functions](https://wintrading.live/app/docs/navy-core-concepts#functions) | | `const [a, b, c] = ta.macd(close, 12, 26, 9)` | Several results of a built-in | [Functions](https://wintrading.live/app/docs/navy-core-concepts#functions) | | `type P = { price: float, bar: int }`, `P.new(…)`, `enum Mode { A, B }` | Your own record type and choices | [Collections](https://wintrading.live/app/docs/navy-core-concepts#collections) | | `// …`, `/* … */` | Comments; `;` at the end of a line is optional | | ### Built-in series and variables | Name | What it is | Type | | `open`, `high`, `low`, `close` | Prices of the bar; `close` is the last price on the live bar | float | | `volume` | Volume of the bar | float | | `time` | Open time of the bar, ms since 1970 (UTC) | float | | `bar_index` | Number of the bar: 0 on the first loaded bar, then 1, 2 … | int | | `hl2`, `hlc3`, `ohlc4`, `hlcc4` | (high + low) / 2, (high + low + close) / 3, (open + high + low + close) / 4, (high + low + 2 × close) / 4 | float | | `barstate.isfirst` | The first bar of the data | bool | | `barstate.islast` | The last (live) bar: draw «current state» objects here | bool | | `barstate.ishistory` | A closed bar of the history | bool | | `barstate.isrealtime` | The bar that updates with live ticks | bool | | `barstate.isnew` | The first run of a bar | bool | | `barstate.isconfirmed` | The last run of a bar: it has closed | bool | | `syminfo.ticksize`, `syminfo.mintick` | The symbol's tick size, its smallest price move (`mintick` is Pine's name) | float | | `syminfo.ticker` | The chart's symbol, e.g. `'BTCUSDT'` | string | | `timeframe.ms` | Length of one bar, ms | int | | `na(x)` | True where `x` is missing | bool | | `nz(x, replacement = 0)` | The value, or `replacement` where it is na | float | | `fixnan(x)` | The last value that was not na (keeps state) | float | | `int(x)`, `float(x)` | Drops the fraction / the value as a float | int, float | | `true`, `false`, `na` | Constants | | ### Declaration, inputs, other timeframes | Call | What it does | Gives | | `indicator(title, { precision, maxBarsBack, fuel, overlay })` | A script in its own pane (`overlay: true` puts it on the price chart) | | | `overlay(title, { precision, maxBarsBack, fuel })` | A script on the price chart | | | `input.int(title, default, { min, max, step, options, tooltip, group })` | A whole number; with `options` a drop-down | int | | `input.float(title, default, { min, max, step, options, tooltip, group })` | A number | float | | `input.bool(title, default, { tooltip, group })` | A checkbox | bool | | `input.string(title, default, { options, tooltip, group })` | Text; with `options` a drop-down | string | | `input.color(title, default, { tooltip, group })` | A color | color | | `input.source(title, default, { tooltip, group })` | A built-in series: `close`, `hl2`, `ohlc4` … | float | | `input.timeframe(title, default, { tooltip, group })` | A timeframe such as `'1h'` | string | | `input.enum(title, default, { tooltip, group })` | A choice among an enum's members | enum | | `security(timeframe, () => expression, { lookahead })` | The expression computed on another timeframe of the chart's coin; no repainting unless `lookahead: true` | float, bool | | `request.security(syminfo.tickerid, timeframe, expression, { lookahead })` | Pine's form of `security()`: the chart's symbol only | float, bool | Inputs and their options: [Inputs](https://wintrading.live/app/docs/navy-core-concepts#inputs); `security()`: [Other timeframes](https://wintrading.live/app/docs/navy-core-concepts#other-timeframes). ### Technical analysis: ta.* All of them keep state between bars: call them at the top level, on every bar ([why](https://wintrading.live/app/docs/navy-core-concepts#conditions-and-loops)). Lengths are constants or inputs. A tuple is unpacked with `const [a, b, c] = …`. **Moving averages** | Call | What it does | Gives | | `ta.sma(source, length)` | Simple moving average: the mean of the last `length` values | float | | `ta.ema(source, length)` | Exponential (alpha = 2 / (length + 1)) | float | | `ta.rma(source, length)` | Wilder's (alpha = 1 / length), as in RSI and ATR | float | | `ta.wma(source, length)` | Weighted: linear weights, the newest heaviest | float | | `ta.vwma(source, length)` | Weighted by volume | float | | `ta.hma(source, length)` | Hull moving average | float | | `ta.alma(source, length, offset = 0.85, sigma = 6)` | Arnaud Legoux moving average | float | | `ta.swma(source)` | Symmetric weights over the last 4 values (1/6, 2/6, 2/6, 1/6) | float | | `ta.linreg(source, length, offset = 0)` | Linear regression of the last `length` values, at `offset` bars back | float | | `ta.vwap(source = hlc3)` | VWAP, reset at 00:00 UTC every day; also the variable `ta.vwap` | float | **Oscillators** | Call | What it does | Gives | | `ta.rsi(source, length)` | Relative strength index, 0…100 | float | | `ta.macd(source, fast, slow, signal)` | MACD: the line, its signal line and the histogram | [macd, signal, hist] | | `ta.stoch(source, high, low, length)` | Stochastic %K, 0…100 | float | | `ta.cci(source, length)` | Commodity channel index | float | | `ta.cmo(source, length)` | Chande momentum oscillator, −100…100 | float | | `ta.mfi(source, length)` | Money flow index, 0…100 | float | | `ta.mom(source, length)` | Momentum: `source − source[length]` | float | | `ta.roc(source, length)` | Rate of change, % | float | | `ta.tsi(source, shortLength, longLength)` | True strength index, −1…1 | float | | `ta.wpr(length)` | Williams %R, −100…0 | float | | `ta.cog(source, length)` | Center of gravity | float | | `ta.percentrank(source, length)` | Percent of the previous `length` values at or below the current one | float | **Volatility and channels** | Call | What it does | Gives | | `ta.tr(handleNa = false)` | True range; also the variable `ta.tr` | float | | `ta.atr(length)` | Average true range (Wilder's average) | float | | `ta.stdev(source, length)` | Standard deviation of the last `length` values | float | | `ta.variance(source, length)` | Variance of the last `length` values | float | | `ta.dev(source, length)` | Mean absolute deviation from the SMA | float | | `ta.bb(source, length, mult)` | Bollinger bands | [middle, upper, lower] | | `ta.bbw(source, length, mult)` | Bollinger band width: (upper − lower) / middle | float | | `ta.kc(source, length, mult, useTrueRange = true)` | Keltner channels (around an EMA) | [middle, upper, lower] | | `ta.kcw(source, length, mult, useTrueRange = true)` | Keltner channel width: (upper − lower) / middle | float | **Trend** | Call | What it does | Gives | | `ta.dmi(diLength, adxSmoothing)` | Directional movement: +DI, −DI and ADX | [plusDI, minusDI, adx] | | `ta.sar(start, inc, max)` | Parabolic SAR | float | | `ta.supertrend(factor, atrPeriod)` | Supertrend line and direction (< 0 up, > 0 down) | [line, direction] | **Windows, sums and volume** | Call | What it does | Gives | | `ta.highest(source, length)` | Highest of the last `length` values, this bar included | float | | `ta.lowest(source, length)` | Lowest of the last `length` values, this bar included | float | | `ta.highestbars(source, length)` | Offset (0 or negative) to the bar with the highest value | int | | `ta.lowestbars(source, length)` | Offset (0 or negative) to the bar with the lowest value | int | | `ta.change(source, length = 1)` | `source − source[length]` | float | | `ta.sum(source, length)` | Sum of the last `length` values | float | | `ta.cum(source)` | Running total since the first bar | float | | `ta.obv()` | On-balance volume; also the variable `ta.obv` | float | **Events and pivots** | Call | What it does | Gives | | `ta.cross(a, b)` | `a` crossed `b` on this bar, either way | bool | | `ta.crossover(a, b)` | `a` crossed above `b` (was ≤, now >) | bool | | `ta.crossunder(a, b)` | `a` crossed below `b` (was ≥, now <) | bool | | `ta.rising(source, length)` | Above each of its previous `length` values | bool | | `ta.falling(source, length)` | Below each of its previous `length` values | bool | | `ta.barssince(condition)` | Bars since the condition was last true (na before it first was) | int | | `ta.valuewhen(condition, source, occurrence = 0)` | `source` on the bar where the condition was true, `occurrence` times back (0: the latest) | float | | `ta.pivothigh(source, leftbars, rightbars)` | The pivot high, reported `rightbars` bars after it, na elsewhere; its bar is `bar_index - rightbars` | float | | `ta.pivotlow(source, leftbars, rightbars)` | The pivot low, the same way | float | ### Math and text: math.*, str.* | Call | What it does | Gives | | `math.abs(x)` | Absolute value | float | | `math.sqrt(x)` | Square root | float | | `math.pow(base, exponent)` | `base` to the power `exponent` | float | | `math.exp(x)` | e to the power x | float | | `math.log(x)`, `math.log10(x)` | Natural and base-10 logarithm | float | | `math.floor(x)`, `math.ceil(x)` | Down and up to a whole number | int | | `math.round(x, precision = 0)` | Rounds to `precision` decimals; the result is a float | float | | `math.sign(x)` | −1, 0 or 1 | float | | `math.min(a, b, …)`, `math.max(a, b, …)`, `math.avg(a, b, …)` | The smallest, the largest, the mean of the arguments | float | | `math.sin(x)`, `math.cos(x)`, `math.tan(x)`, `math.asin(x)`, `math.acos(x)`, `math.atan(x)` | Trigonometry, in radians | float | | `math.pi`, `math.e` | Constants | float | | Call | What it does | Gives | | `str.tostring(x, format = -1)` | A number as text; `format`: decimals (−1: as needed), Pine's `'#.##'`, `format.mintick`, `format.percent`, `format.volume` | string | | `str.format('{0} at {1}', a, b)` | Text with `{0}`, `{1}` … replaced by the arguments; `{0,number,#.##}` with a pattern | string | | `str.length(s)` | Number of characters | int | | `str.contains(s, part)`, `str.startswith(s, part)`, `str.endswith(s, part)` | `part` is in `s` / at its start / at its end | bool | | `str.upper(s)`, `str.lower(s)` | Upper and lower case | string | | `str.substring(s, begin, end?)` | The part from `begin` up to (not including) `end` | string | | `str.replace(s, target, replacement)` | Every `target` replaced by `replacement` | string | | `str.tonumber(s)` | The number written in `s`, or na | float | ### Colors | Call | What it does | Gives | | `color.rgb(r, g, b, a = 1)` | A color from red, green, blue (0…255) and opacity `a` (0…1) | color | | `color.new(color, alpha)` | The color with opacity `alpha`: 0 invisible … 1 solid (above 1: Pine's transparency in %) | color | | `color.red`, `color.green`, `color.blue`, `color.orange`, `color.yellow`, `color.purple`, `color.fuchsia`, `color.aqua`, `color.teal`, `color.lime`, `color.maroon`, `color.navy`, `color.olive`, `color.silver`, `color.gray`, `color.white`, `color.black` | Named colors | color | | `'#rrggbb'`, `'#rrggbbaa'` | A hex string where a color is expected | color | Note the opacity: [Colors](https://wintrading.live/app/docs/navy-on-the-chart#colors). ### Outputs Top level only, up to 64. Per bar: the colors of `plot`, `fill`, `bgcolor` and markers, and the values. Constants: `plot` width and style, `hline` options, marker text, shape, size and text color, titles, alert messages. | Call | What it does | Gives | | `plot(series, { title, color, width, style, base, colorDown })` | Draws a series. `style`: `'line'`, `'step'`, `'columns'`, `'histogram'`, `'area'`, `'circles'`, `'cross'` | a handle | | `hline(price, { title, color, width, style })` | A level at a constant value; `style`: `'solid'`, `'dashed'`, `'dotted'` | a handle | | `fill(a, b, { title, color, topValue, bottomValue, topColor, bottomColor })` | Fills between two plots or hlines; a per-bar color draws a cloud, the top/bottom options a vertical gradient | | | `bgcolor(color, { title })` | The bar's background across the pane; na leaves it clear | | | `marker.above(condition, 'text', { color, shape, size, textColor, title })` | A shape (and text) over the high of the bars where the condition holds | | | `marker.below(condition, 'text', { … })` | The same under the low | | | `marker.at(price, 'text', { … })` | A shape at a price, on the bars where it is not na | | | `alert(condition, 'message', { freq, title })` | An alert on live bars; `freq`: `'bar'`, `'close'`, `'all'` | | | `alertcondition(condition, 'Title', 'message')` | A condition for the alerts dialog; silent in Wintrading for now | | ### Drawing objects: line, box, label `x` is a bar index (`xloc: 'time'` — a time in ms), `y` a price. Everything about an object may change per bar; a method on an na handle does nothing and reads na. Up to 500 of each kind. | Call | What it does | Gives | | `line.new(x1, y1, x2, y2, { color, width, style, extend, xloc })` | A line; `style`: `'solid'`, `'dashed'`, `'dotted'`; `extend`: `'none'`, `'right'`, `'left'`, `'both'` | line | | `box.new(left, top, right, bottom, { color, borderColor, borderWidth, borderStyle, extend, text, textColor, textSize, xloc })` | A rectangle; `color` is its fill | box | | `label.new(x, y, text, { style, color, textColor, size, xloc })` | A label; `style`: `'down'` (a plate above the point), `'up'`, `'left'`, `'right'`, `'center'`, `'none'` (text only) | label | | `line.all`, `box.all`, `label.all` | The script's objects on the chart, oldest first (a copy) | array | | Methods | What they do | Of | | `set(x1, y1, x2, y2)`, `setXY1(x, y)`, `setXY2(x, y)`, `setX1`, `setY1`, `setX2`, `setY2` | Move the points | line | | `setColor`, `setWidth`, `setStyle`, `setExtend` | Change the look | line | | `x1()`, `y1()`, `x2()`, `y2()`, `priceAt(x)` | Read the points; `priceAt` — the price of the (extended) line at a bar: a trendline break is `close > l.priceAt(bar_index)` | line | | `set(left, top, right, bottom)`, `setLeftTop`, `setRightBottom`, `setLeft`, `setTop`, `setRight`, `setBottom` | Move the edges | box | | `setColor`, `setBorderColor`, `setBorderWidth`, `setBorderStyle`, `setExtend`, `setText`, `setTextColor`, `setTextSize` | Change the look and the text | box | | `left()`, `top()`, `right()`, `bottom()` | Read the edges | box | | `setXY(x, y)`, `setX`, `setY` | Move it | label | | `setText`, `setColor`, `setTextColor`, `setStyle`, `setSize` | Change the text and the look | label | | `x()`, `y()`, `text()` | Read it | label | | `delete()`, `copy()` | Remove it from the chart; a new object like it | all three | Pine's forms are accepted: `line.set_xy1(l, x, y)`, `label.set_text(lb, s)`, `line.style_dashed`, `label.style_label_down`, `extend.right`, `size.small`, `xloc.bar_time`. ### Collections: array, map | Call | What it does | Gives | | `array.new(size = 0, init)` | A list of `size` elements equal to `init`; T is a number, bool, color, string, a drawing object or your type | array | | `array.from(a, b, …)` | A list of these values; its type comes from them (whole numbers with fractions make floats) | array | | `array.new_float`, `array.new_int`, `array.new_bool`, `array.new_string`, `array.new_color`, `array.new_line`, `array.new_box`, `array.new_label` | Pine's forms of `array.new` | array | | `map.new()` | An empty dictionary; keys are `int` or `string` | map | | Methods | What they do | Of | | `get(i)`, `set(i, x)`, `first()`, `last()` | Read and replace elements (0 is the first) | array | | `push(x)`, `pop()`, `unshift(x)`, `shift()`, `insert(i, x)`, `remove(i)`, `clear()` | Add and remove: at the end, at the start, at a position | array | | `size()`, `includes(x)`, `indexOf(x)`, `lastIndexOf(x)` | Size and search (−1: not found) | array | | `slice(from, to)`, `copy()`, `reverse()`, `sort('asc')`, `fill(x)`, `join(sep)` | Copy, order, fill, join into text | array | | `sum()`, `avg()`, `min()`, `max()`, `stdev()`, `median()` | Statistics of numbers (na skipped) | array | | `get(key)`, `put(key, value)`, `has(key)`, `remove(key)`, `clear()`, `size()`, `keys()`, `values()`, `copy()` | Values by key (`get` of a missing key is na) | map | Methods are called on the value (`a.push(x)`) or, as in Pine, through the namespace (`array.push(a, x)`). ### Wintrading data Columns (`vol`, `liq`, `oi`, `fp`, `book`) are per bar with history; `walls` is a live list (`i` from 0 to `walls.size() - 1`). na where there is no data. Where each one has data: [Scripts → Data](https://wintrading.live/app/docs/scripts#data). | Name | What it is | Unit | | `vol.buy`, `vol.sell` | Aggressive buy / sell volume of the bar (market orders) | coins | | `vol.delta` | `vol.buy − vol.sell` | coins | | `liq.long`, `liq.short` | Longs (forced sells) / shorts (forced buys) liquidated in the bar; final once the next bar opens | $ | | `liq.total` | `liq.long + liq.short` | $ | | `oi.open`, `oi.high`, `oi.low`, `oi.close` | Open interest at the bar's open, its high and low within the bar, at its close | coins | | `oi.delta` | `oi.close − oi.open`: positions opened (> 0) or closed (< 0) | coins | | `oi.usd` | `oi.close × close` | $ | | `fp.buy`, `fp.sell` | Aggressive buys / sells from the bar's clusters | coins | | `fp.delta`, `fp.volume` | `fp.buy − fp.sell`, `fp.buy + fp.sell` | coins | | `fp.poc` | The price where the bar traded the most volume | price | | `book.bid`, `book.ask` | Resting within 1% below / above the bar's close | $ | | `book.imbalance` | (bid − ask) / (bid + ask), from −1 (all asks) to 1 (all bids) | −1 … 1 | | `book.bidWall`, `book.askWall` | Price of the largest bid / ask level | price | | `book.bidWallSize`, `book.askWallSize` | Its size | $ | | `walls.size()` | Number of densities now (0: none, or the symbol is not tracked) | count | | `walls.price(i)`, `walls.usd(i)` | Price and size of density `i` | price, $ | | `walls.side(i)` | 1 — a bid (below the price), −1 — an ask (above it) | ±1 | | `walls.age(i)` | Minutes since it appeared | min | | `walls.dist(i)` | Distance from the current price, always ≥ 0 | % | ### Limits and error codes | What | Limit | | The code of one script | 256 KB | | Outputs: `plot`, `hline`, `fill`, `bgcolor`, markers, alerts | 64 | | Lines, boxes, labels (past that the oldest goes first) | 500 of each | | Text of one object | 4 096 characters | | Loop iterations per bar (`fuel`) | 1 000 000, up to 10 000 000 | | History `x[k]`, lengths of `ta.*` | 20 000 bars | | Array, map, string | 100 000 / 50 000 pairs / 100 000 characters | | Time to run the whole history, one update | 3 s, 250 ms | | Candles of another timeframe | 5000 bars, 3000 for seconds | The editor reports problems as `CODE line:column message`; the most common: | Means | What to do | Code | | The first line is not `//@navy 2.0` — or the code is TradingView Pine Script | Start with `//@navy 2.0`; port Pine with AI | NV1001 | | Unexpected text | Almost always Pine syntax: `:=`, `name=value`, `switch` | NV1020, NV1021 | | A Pine named argument: `title='EMA'` | Options in an object: `{ title: 'EMA' }` | NV1022 | | `:=`, `f(x) =>`, `if cond`, `for … to`, `and` / `or` / `not` | `=`, `function`, `if (cond)`, a C-style `for`, `&&` / `||` / `!` | NV1023–NV1027 | | No declaration, or more than one | Exactly one `overlay(…)` or `indicator(…)` after the first line | NV2001, NV2002 | | Unknown name | The message suggests the closest one; a first use needs `let` / `const` / `var` | NV2003 | | An output inside a block | Top level, with a conditional value: `plot(cond ? x : na)` | NV2005 | | Wrong number of arguments, an unknown option | Check the signature here | NV2010, NV2011 | | Incompatible types | A number to text: `str.tostring(x)`; to an int: `int(x)`; an input's title comes first | NV2100 | | The condition is not a bool | Compare: `x > 0`, `!na(x)` | NV2101 | | Must be a constant or an input | A length of `ta.*`: a number, an input or `+ - *` of them | NV2201 | | Must be a constant | Marker text, plot width and style, hline options, titles, alert messages | NV2202 | | Assigning to a `const`; a name declared twice | Use `let` or `var`; rename one | NV2301, NV2302 | | No history here | Assign the call or the block variable to a top-level `const` first | NV2403 | | A function reads a top-level series | Pass it as a parameter | NV2502 | | `security()` reads the chart's variable or data | Compute it inside the arrow | NV2505 | | `ta.*` in a branch (a warning) | Move the call to a top-level `const` | NV3001 | | A loop ran out of fuel; too slow | Bound the loop; fewer nested loops over history | NV4001, NV4005 | | An index outside the array; a method on an na array | Check `size()`; create it first: `var a = array.new(0)` | NV4003, NV4007 | ## Arbitrage Screener URL: https://wintrading.live/app/docs/arbitrage Find coins that are cheaper on one exchange than another — and see what you could realistically trade. ### Overview The **Arbitrage Screener** compares the price of the same coin across futures exchanges and lists the best **spreads** — opportunities to buy on one venue and sell on another. It refreshes every few seconds and shows live charts and order-book detail for whichever spread you select. _Arbitrage Screener — spread list and live detail panels_ > **Important:** Arbitrage carries real costs and risks. The screener shows opportunities, not guarantees. Please read the **Risks & caveats** section before acting on any spread. Every panel is a movable, resizable widget. The **Widgets** menu in the toolbar lets you hide the ones you don't use (the tick stream, for example) — hidden widgets keep their saved spot and come back where they were. Once you've arranged everything, the **lock** button freezes the layout so an accidental grab can't move anything. > **Plan:** The Arbitrage Screener is a **Pro+** exclusive — **Trial** and plain **Pro** accounts are prompted to upgrade. It currently covers **futures-to-futures** spreads and funding. ### How you actually earn (example) Futures-to-futures arbitrage is **delta-neutral**: you go **long** the coin on the exchange where it's cheaper and **short** it where it's pricier, in equal size. One leg is long, the other short, so the coin's direction doesn't matter — you only care about the **gap** between the two prices closing, plus the **funding** you collect while you wait. Nothing moves between exchanges, so there are no withdrawal or network risks (unlike spot arbitrage). **Worked example** You go long BTC on Binance at $60,000 and short it on Bybit at $60,300 — $10,000 per leg, a **+0.50%** gap. When the two prices converge you close both legs. The result, net of fees and funding: | Item | Amount | | Spread (0.50% × $10,000) | +$50.00 | | Entry fees (0.05% × $10,000 × 2 legs) | −$10.00 | | Exit fees (0.05% × $10,000 × 2 legs) | −$10.00 | | Funding (1 period, carry −0.01%) | −$1.00 | | Net | +$29.00 | That **+$29.00 (+0.29%)** is earned whether BTC went up or down — both legs move together and cancel out. Here funding cost a little; when the net funding is **positive** it adds to the profit instead. The percentage is what matters — scale the size and the profit scales with it (until you run out of depth — see **Depth-aware fills**). **Two ways the money is made** - **Convergence** — the price gap between the venues closes and you bank it, net of fees. That's the spread itself. - **Carry (funding)** — while you hold the delta-neutral position, every funding settlement pays the **net** of the two legs (short rate − long rate). Positive net = income each settlement; sometimes you hold purely for the carry. > **Funding direction:** On the **short** leg you **receive** funding when the rate is positive; on the **long** leg you **pay** it. Net = short rate − long rate. The **Fund/d** column shows this normalized per day. > **Risks & what eats the profit:** - **Fees** — four taker fills (open + close, both legs) are the biggest cost; maker orders or a VIP tier shrink them. The screener estimates standard taker fees. - **Spread can widen first** — before converging the gap may grow (a temporary mark-to-market loss); keep enough margin so a leg isn't liquidated while you wait. - **Funding can flip** — a positive net can turn negative at the next settlement. - **Slippage** — large size walks the book and fills worse than the top price; always check **tradable size**. - **Execution gap** — prices move in the seconds between seeing the spread and filling both legs. Treat every spread as a starting point, not a guarantee. This is not financial advice. > **Let the tool do the math:** Open the pair in the **Position tracker**, enter your size, and it shows live PnL on both legs, accrued and projected funding, fees, total PnL and **PnL at convergence** — so you see the net before you commit. ### Reading the spread list Each row is one opportunity. The key columns: - **Symbol** — the coin, with the buy exchange → sell exchange shown by icons. - **Spread %** — the net opportunity after fees. Hover to see gross %, fees and net separately. - **Tradable size** — how much (in dollars) you could fill at the best prices on both sides. - **Volume 24h** — how actively the coin trades (a rough liquidity guide). - **NATR** — how volatile the coin is. - **Life** — how long the spread has continuously stayed above the threshold. Long-lived spreads are executable; momentary flickers usually aren't. - **Fund/d** — the net funding **carry per day**, normalized by each venue's settlement interval; positive means the position collects funding while held, negative means it pays. Hover for the per-leg rates. Rows can carry an extra mark: **⚠** — suspected ticker mismatch (the venues may be listing different assets under one symbol). Hovering the spread value shows the gross/fee breakdown and how long the spread has been alive. By default only the single best spread per coin is shown; search a coin to see every exchange combination. Working with a pair: - **Sort by funding** — the **Fund** column header is clickable, so you can rank opportunities by net funding as well as by spread. - **Swap direction** — the arrow between the two exchange icons above the spread chart is a button: one click reverses the route (e.g. Binance→Bybit becomes Bybit→Binance). - **All routes at once** — the **Routes** tab of the Coin overview widget lists every exchange combination currently quoted for the selected coin, with net spread and tradable size; click a route to open it. ### How much can you actually fill? The headline spread is only the price at the very top of the book. The order-book panel shows the **depth-aware** spread — what the number becomes if you trade $100, $1k, $5k, $10k and so on. Larger trades "walk the book" and get a worse price (slippage), so the effective spread usually shrinks as size grows. Next to the fixed tiers there's a **Your size** field — type any dollar amount and a highlighted row shows the average fill prices, net profit and effective spread at exactly that size. The value is remembered between sessions. The **↗** icon next to each leg (and next to every venue in the Coin overview) opens that contract's trading page on the exchange in a new tab — symbol shapes are converted automatically (BTC_USDT, BTC-USDT-SWAP, XBTUSDTM and so on). > **Tip:** Always check the depth-aware spread at the size you actually plan to trade — a great-looking top-of-book spread can vanish once you fill more than a few hundred dollars. ### Funding rates On futures, holding a position means paying or receiving **funding** at regular intervals. The order-book panel shows each leg's funding, the net result, and a countdown to the next funding event. Favourable net funding can add to an arbitrage's profit; unfavourable funding eats into it. Two extra tools help you judge a rate: - **Funding history** — the **History** toggle in the funding block draws the recent settlements as **net bars** (short − long): one glance answers whether the pair has been collecting or paying. Hover a bar to read the net plus both legs' rates and the time. Below the funding block, the **Accrued** row sums the actually-settled net over the trailing 8h / 24h / 48h. - **Coin overview widget** — its **Funding** tab lists the coin's current funding rate on _every_ supported exchange at once, with a countdown to each venue's next payout. The **Best carry** row suggests the long/short pair with the highest net funding income — press **Apply** to load that pair into the charts and order-book panels. - **Markers on the spread chart** — small triangles along the chart's bottom edge mark each funding settlement. The headline number on the dark plaque is the **net per settlement** (short − long); the per-leg rates sit below it in the candle colours. A dashed guide runs up through the candles so you can see how the spread reacted to the payout. The gold **Σ funding** step-line in the chart's bottom band accumulates those nets over time — measure any stretch of it with the ruler (Shift+Click) to read "the spread converged X p.p. while funding accrued Y%". > **Note:** Exchanges settle funding at different intervals (most every 8 hours, some every 4, Hyperliquid hourly) — each rate is shown with its interval (e.g. _+0.0100%/8h_). Wherever venues are compared — the **Fund/d** column, the **Per day** value and the **Best carry** suggestion — rates are first normalized to **% per day**, so an hourly venue is never mistaken for a cheap one. ### Tracking a position The **Position** widget is a paper-trading calculator for the selected route: enter a size in coins and press **Open position** — the widget records both legs at the current best ask (long) and best bid (short) and starts tracking them live. Nothing is sent to any exchange. - **Price PnL** — both legs marked in real time from the live order books, at the close side: the long at the buy exchange's best bid, the short at the sell exchange's best ask — the prices a real unwind would fill at. - **Funding** — the sum of the _actual settled payouts_ since the position opened (long pays positive rates, short collects them), plus the projected next payout per leg with a countdown. - **Fees** — taker fees for opening at the entry prices and closing at the current marks. - **PNL** — price PnL + funding − fees. - **PnL at convergence** — what closing at zero spread would bank: the price component is then fixed at size × (sell entry − buy entry) wherever the market goes, so this row answers “is the carry worth sitting in?”. **Increase** adds size at the current prices and averages your entries; **Close position** removes the position. You can run positions on several routes at once — chips in the widget header jump between them. Positions are saved to your profile and survive reloads. Tracking a REAL position: every field is yours to set. Type your actual average entry prices (the placeholders show the live market as a default), pick the open date and time — funding then accrues from that moment using the real settled payouts — and enter the size in coins or in dollars (the $ toggle converts through the long entry price). The ✎ button edits an open position after the fact. The **Close calc** toggle adds exit-price fields: PnL, fees and the spread are then computed against your prices — for what-if checks or for trades you already closed. The **🔔 Alert at ≤** field arms a convergence alert: when the route's quoted spread drops to your level, a toast pops up (with the notification sound, if enabled) — even while you're watching another coin. For the route currently open in the widget the condition is additionally checked against the live order books on every tick, so it fires within a fraction of a second; other routes are checked on the regular poll. The alert re-arms automatically once the spread widens back above the level. > **Note:** This is a calculator, not an execution tool: fills are assumed at the touch with standard taker fees, and funding is valued at entry notional. Real results will differ with slippage and VIP fee tiers. ### Filters, alerts & watchlist Filters and notification thresholds live in the **Settings** dialog (the gear button in the toolbar). Keep the list focused and get told when something good appears: - **Filters** — minimum spread %, minimum 24h volume, minimum volatility and minimum tradable size. - **Notifications** — a pop-up toast (with an optional notification sound — pick one of eight in Settings) when a fresh spread passes your alert thresholds; each coin has a short cooldown so you aren't flooded. - **Watchlist & ignore list** — pin pairs you're tracking, or hide coins you never want to see. Add a coin to the ignore list by right-clicking its row in the table, or manage the whole list from the **Ignored coins** control in the filters panel. ### Risks & caveats Please keep these in mind — the screener shows opportunities, not guarantees: > **Important:** - **Fees** are estimated using standard taker fees; your actual fees may differ. - **Slippage** — large orders fill at worse prices than the top of the book. - **Speed** — prices update every few seconds and can change before you trade. - **Logistics** — withdrawal limits, transfer times and network fees are _not_ shown and can erase a spread. - **Funding** can change at the next funding event. Treat every spread as a starting point for your own checks, not as financial advice. ### The new chart The spread chart and the two exchanges' charts run on the new chart engine. - **Sync.** Scrolling and zooming one chart moves the others; the crosshair repeats on the exchanges' charts. - **Spread** — candles in percent with the zero line (dashed), the five largest spikes as arrows, funding payments under the candles (S — sell, B — buy) and the cumulative funding difference as a line. - **Ruler** — Shift+click or the mouse wheel button: the change in points and percent, bars and time. The arbitrage charts have no other drawing tools. - **History** loads by itself as you scroll back to the start. ## Constructor URL: https://wintrading.live/app/docs/constructor Build your own trading workspace: combine the platform's tools as widgets, arrange them freely on a grid and switch between multiple workspaces. ### Overview The Constructor is a fully customisable dashboard. Instead of a fixed page layout, you assemble your own: pick the tools you need — orderbook map, screeners, charts, alerts — add them as widgets and arrange them on a grid however you like. > All widgets are live: the **Orderbook map**, the **Orderbook screener** table, the **Bookmap chart**, the **Orderbook panel**, the **Quotes** list, the **Chart** and the **Trend screener**. > **Plan:** The Constructor is a paid feature — **Trial** accounts are prompted to upgrade. **Pro** accounts can keep up to **2** workspaces; **Pro+** unlocks unlimited workspaces. Accounts created during the beta keep any extra workspaces they already have. ### Workspaces Workspaces are the tabs at the top of the page — they work like browser tabs. Each workspace keeps its own set of widgets and its own layout, so you can build, for example, a scalping setup in one tab and a market-overview setup in another. - **Switch** — click a tab. - **Create** — click the **+** button next to the tabs. Pro accounts can have up to 2 workspaces; **Pro+** is unlimited. - **Rename** — double-click a tab and type a new name, or use **Rename** in the tab's menu (the **⋮** button). - **Duplicate** — open the tab's **⋮** menu and choose **Duplicate** to copy the workspace with all its widgets and their settings. - **Clear** — **Clear widgets** in the tab menu empties the workspace and brings back the template gallery. - **Delete** — click the **×** on a tab (or **Delete** in its menu). The last remaining workspace can't be deleted. An empty workspace offers a gallery of ready-made templates — Densities desk, Trend scanner, Heatmap, Charting — pick one to fill the workspace with a sensible layout of widgets in a click, or build your own from scratch. Everything is saved automatically as you make changes. ### Widgets Click **Add widget** and pick a tool from the catalogue. You can add several widgets of the same type — each instance keeps its own name and settings. Every widget has a header with its name, a settings button (**⚙**) and a remove button (**×**). For live widgets the settings open in a dialog. The **Orderbook map** and **Orderbook screener** widgets are fully independent from the Order Book Screener page: each instance has its own exchange selection (including exclude and intersect modes), its own filters (order size, distance, lifetime, coins to ignore and more) and its own appearance options — the map's colors or the screener's table layout. Two widgets of the same type can watch different exchanges with different filters side by side. A newly added widget always starts from default settings. The **Bookmap chart** widget shows the orderbook heatmap chart for a single market. The market, symbol, timeframe, chart type, indicators and heatmap theme are set from the chart's own toolbar (open it with the toolbar button in the widget header) and remembered per widget. The widget has no order book or watchlist side panels — the order book has its own **Orderbook panel** widget. The **Orderbook panel** widget streams the live depth of one market over a websocket. Search for a coin in the widget header (dropdown of the exchange's symbols); the price grouping step is selected right in the panel's header. The **Quotes** widget is the coins list from the Coins page with live metrics. Exchanges (with exclude/intersect modes) and sorting are picked right in the widget header; the metric columns and filters are configured per instance in its settings dialog. Clicking a column header toggles the sort direction. The **Chart** widget is the candlestick chart from the Coins page: timeframes, technical indicators, drawing tools, level overlays and split layouts (up to several charts inside one widget) — all managed from the chart's own header and remembered per widget. Its settings dialog has tabs for the market, the level overlays and the densities (limit-orders) overlay — the same Levels and Densities settings as on the Coins page. The **Trend screener** widget shows a grid of mini charts ranked by the selected trend signal — exchanges, signal type, timeframe, technical indicators and pagination are in the widget toolbar; the grid size, filters, levels, chart options and densities are configured per instance in its settings dialog. Indicators added from the toolbar are applied to every chart in the grid and remembered per widget. To save space, the chart widgets (Bookmap chart and Chart) start with their toolbar collapsed — the chart gets the whole cell. Click the toolbar button in the widget title bar to show or hide it; the state is remembered per widget. The drawing-tools panel (pen, line, levels…) is off by default too — use the brush button in the title bar to show or hide it. Widgets are linked: picking a coin in the **Quotes** widget — or clicking a chart in the **Trend screener** — switches the market on the chart widgets and the orderbook panel in the same workspace. The chain button in a widget's title bar opts that instance out of (or back into) following the selection. Coin clicks in the **Orderbook map** and **Orderbook screener** widgets follow the same rule: when the workspace has a linked **Bookmap chart** widget, the coin opens right on it (and on the other linked widgets) instead of the popup chart dialog; without one, the popup opens as before. The global search (the search button in the top bar) also feeds the constructor: while a workspace is open, picking a coin opens it on the matching chart widgets in that workspace instead of leaving the page — the search's **Default chart** mode targets the **Chart** widgets, the **Liquidity chart (heatmap)** mode targets the **Bookmap chart** widgets. If the workspace has no chart of that type, the search falls back to opening the coin on its standalone page. Chart settings changed in a widget (the gear: the scale, the wheel zoom, the colors and so on) are saved into the common chart settings — as on the Coins and Density heatmap pages — and apply to every chart. ### Arranging the layout Drag a widget by its header to move it; pull its edges or corners to resize. Widgets snap to a 24×24 grid and never overlap. Each widget header also has **maximize** and **duplicate** buttons. Maximize fills the workspace area (not the OS screen — that's F11): double-click a widget's header, press **F** while hovering it, or use the button; **F** or **Esc** restores. Duplicate drops an independent copy into the next free slot. When the arrangement is ready, use the **lock** button in the toolbar to freeze the layout so an accidental drag can't disturb it. Unlock it any time to keep editing. Every change can be undone and redone — the **↶ / ↷** buttons in the toolbar or **Ctrl/Cmd+Z** and **Ctrl/Cmd+Shift+Z**. The **?** button shows a quick tips panel. On tablets and phones the grid switches to a single scrollable column of widgets; drag and resize are desktop-only, but settings, linking, maximize and undo all keep working. ## Alerts URL: https://wintrading.live/app/docs/alerts Be told the moment the market does something you care about — by Telegram, email, sound or in-app. ### Overview **Alerts** watch the market for you and notify you when your conditions are met, so you don't have to stare at the screen. Manage them all from one page, and choose how you want to be notified. _Alerts dashboard_ > **Note:** Alerts are a **Pro** feature. On a free or trial account you'll be prompted to upgrade when you try to create one. ### Types of alerts - **New limit order** — a large order (a wall) appears on the book matching your size, distance and age rules. - **Price crossing** — a coin reaches a price level you set. - **Increased volume** — volume spikes above a multiple of its normal level (e.g. 3× in 5 minutes). - **Price change** — a coin moves by a chosen percentage within a time window — up, down or either. - **Trades** — the number of trades passes a threshold. - **Trend level crossing** — price crosses a trend line you drew on a chart. - **Open interest change** (futures) — open interest moves by a chosen percentage. ### Creating an alert Click **Create new alert** and: - Pick the alert type and the exchange. - Fill in its settings (price level, size, threshold, time range…). - Give it a title (and an optional note). - Choose which coins to watch — your watchlist, all coins, or specific ones. - Turn on the notification channels you want (sound, Telegram, email). - Optionally add filters (e.g. only if 24h volume is in a range) to reduce false alarms, then save. You can also create price and trend-level alerts directly from a chart or the order book. **On a phone.** Tap at the chart's right edge — a "+" appears at that price; a second tap on it places the alert. An alert you tapped or dragged shows its plate with × until you tap elsewhere — that is how you remove it. ### Notifications & Telegram Choose any combination of channels per alert: - **Sound** — plays in your browser (pick from several sounds). - **Email** — sent to your account email. - **In-app** — recent triggers appear in the alert's dropdown. - **Push notifications** — alerts arrive on this device even when Wintrading is closed (on a phone, in the lock screen). Turn them on in the alerts' notification settings, **Push notifications on this device**; **Test** sends one to check. On an iPhone they work in the app added to the home screen (Safari → Share → Add to Home Screen). Each device is turned on separately; a tap on a notification opens the coin. - **Pop-up** — a card with the coin, exchange and trigger details slides in at the corner of the screen (enable **Pop-up notifications** in Account settings). Click **Open** or the chart to jump to the coin, or the ✕ to dismiss it. - **Pop-up style** — a **“With chart” / “Text only”** switch in the alert settings. “With chart” adds a mini chart of what triggered the alert, drawn by alert type: - **Price change, volume splash, trades, open interest** — the candles of the alert window (the spike or the dump) are highlighted and an arrow shows the value; volume and trades alerts add a volume histogram, OI alerts an open interest line. - **Price crossing** — the signal level the price crossed and the crossing direction. - **Trend level** — your trend line that the price crossed. - **Limit order** — the density level with its size, coloured by side (asks or bids). For price-crossing and trend alerts the chart also shows your own lines on that coin and your other signal levels. The chart is shown on the three newest cards; older ones stay text-only. - **Voice** — the alert is read aloud in your interface language (enable **Voice notifications** in Account settings, where you can also set volume, speed and pitch). Alerts that fire together are read one after another. Closing a pop-up with ✕, opening it, or pressing **Clear all** stops its voice message immediately — you don't have to listen to the end of something you've already seen. - **Telegram** — messages straight to your chat. - **Terminal** — the coin is opened in your desktop terminal (**Tiger.Trade** link group or **MetaScalp** binding) the moment the alert fires. It works only while a Wintrading tab is open and the terminal is running — see [Integrations](https://wintrading.live/app/docs/integrations). Price-crossing and trend-level alerts are created straight from the chart, without a form, so their terminal choice comes from the **Open in terminal** default in the Alerts settings panel — the same way the "Telegram by default" toggle works. The default is applied when the alert is created; existing alerts keep the terminal they were created with. To receive alerts in Telegram, set it up once by following these steps: - Open [@TradeHive_bot](https://t.me/TradeHive_bot) and press **Start**. - Open [@raw_info_bot](https://t.me/raw_info_bot), send **/start**, and copy the **Chat ID** it gives you. - Paste the Chat ID into the **Alerts settings** panel and click **Save**. > **Tip:** Turn on "set Telegram by default" so every new alert you create is delivered to Telegram automatically. In a popup notification's card, the Tiger and MetaScalp buttons open the coin in the terminal, a click on the chart (or the window button) opens the coin's chart in a window over the page, and the button next to "Open" copies the ticker. ### Managing your alerts On the Alerts page you can filter alerts by type and, for each one: - **Pause / resume** it without deleting. - **Edit** it (price-crossing and trend-level alerts can't be edited — delete and recreate instead). - **View history** of when it triggered, and clear old notifications. - **Delete** it, or bulk-remove inactive price alerts. ### Tips for fewer false alarms > **Tip:** To avoid notification spam, add filters so an alert only fires when it really matters — for example, require a minimum 24h volume, or combine a limit-order alert with a price-change condition. Start broad, then tighten the thresholds until the alerts you get are the ones you'd actually act on. ## Listings URL: https://wintrading.live/app/docs/listings Catch newly listed coins across exchanges the moment they appear. ### Overview The **Listings** page lists newly added coins across the major exchanges, newest first, so you never miss a fresh listing. _Listings — newest coins first_ > **Important:** Brand-new listings are often **highly volatile** and thinly traded. Prices can swing sharply in the first hours — trade them with extra care. ### Feed and calendar On the left, **the month's calendar**: each day shows how many listings it had, warmer the more there were. Hover a day to see its coins by exchange under the calendar; click it and the feed on the right shows that day only (click again or ✕ on the filter for all of them). The arrows go back through the months. On the right, **the feed by day** ("Today", "Yesterday", a date): the listing's time, the coin, the exchange and market (F futures, S spot), how long ago. Hover a row for the button that copies the ticker; the colored hexagon adds the coin to a watchlist; a click on the row opens its chart. At the top: how many listings came today, in 7 days and this month. "Show more" loads older ones. ### Filters **Exchange**: the dropdown (Binance, Bybit, OKX, Gate, MEXC, Bitget, Hyperliquid, AsterDex, KuCoin); ✕ next to it clears it. **Search** finds a coin among the loaded listings. **A day** is picked in the calendar. ### Saving favourites Click the star on any listing to add it to your **watchlist** with a colour of your choice; the colour helps you group coins. Saved listings sync with your watchlist everywhere else in Wintrading. ### Telegram notifications For instant alerts about new listings, join the free **Telegram listings channel** linked at the top of the page. It posts new listings as they happen, so you don't have to keep the page open. ## Integrations URL: https://wintrading.live/app/docs/integrations Connect Wintrading to the tools you already use — get alerts in Telegram, and open any coin straight in the Tiger.Trade or ProfitForge terminals. ### Overview Wintrading works alongside the rest of your trading setup. Four integrations are available today: - **Telegram** — receive alert notifications in your Telegram chat. - **[Tiger.Trade](https://link.tiger.trade/winscreener)** — open the coin you're looking at directly in the Tiger.Trade terminal, in sync with your chart link groups. - **[ProfitForge](https://profitforge.net/en?ref=jIezbrKeQphwXYyqsrJQ85sR)** — send a coin straight to the ProfitForge terminal, individually or aggregated across exchanges. - **[MetaScalp](https://metabroker.life/register?referral=Wintrading)** — send a coin to the MetaScalp terminal, into the active window, a named binding, or a combo layout. > **Note:** This list keeps growing — new integrations are added over time and will appear here automatically. ### Telegram (alert notifications) Connect Telegram once and any **alert** can be delivered straight to your chat — no need to keep the app open. Set it up in three steps: - Open [@TradeHive_bot](https://t.me/TradeHive_bot) and press **Start**. - Open [@raw_info_bot](https://t.me/raw_info_bot), send **/start**, and copy the **Chat ID** it gives you. - Paste the Chat ID into the **Alerts settings** panel and click **Save**. > **Tip:** Turn on "set Telegram by default" so every new alert you create is delivered to Telegram automatically. See the **Alerts** topic for the full list of alert types and channels. ### Tiger.Trade The **[Tiger.Trade](https://link.tiger.trade/winscreener)** integration lets you push the coin you're viewing in Wintrading straight into the Tiger.Trade desktop terminal, matched to a chart **link group** so both apps stay in sync. Enable it once in the terminal: - Open the Tiger.Trade terminal (version 7.1 or newer). - Go to **Settings → API Settings**. - Check **"Enable Tiger Trade API"** — the integration server starts automatically on port 7819. Then, anywhere you see the **Tiger.Trade** icon, click it and pick a coloured link group to open the symbol there. You can also use the keyboard: hold **Shift** and double-press a letter key to send the coin to the matching group. A status dot on the icon shows whether the terminal is connected, and a **Tiger X** option routes Binance and OKX symbols to TigerX. **Open on alert.** An alert can send its coin to Tiger.Trade automatically: in the alert form choose **Open coin in terminal → Tiger.Trade** and a link group. For price-crossing and trend-level alerts created from the chart, set the default in the **Open in terminal** panel on the Alerts page. The terminal is reached from your browser, so this works only while a Wintrading tab is open and Tiger.Trade is running. > **Note:** Tiger.Trade also unlocks Premium access in Wintrading on qualifying conditions — register through the [referral link](https://link.tiger.trade/winscreener) and check the in-app Tiger.Trade panel for the current requirements. ### ProfitForge The **[ProfitForge](https://profitforge.net/en?ref=jIezbrKeQphwXYyqsrJQ85sR)** integration opens the coin you're viewing directly in the ProfitForge terminal — either in a single **linking group** (1–20) or **aggregated** across every available exchange in one tab. Enable it once in the terminal: - Open the ProfitForge terminal. - Go to **Settings → Integrations**. - Check **"Enable Integrations"** — the integration server starts automatically. Then click the **ProfitForge** icon and choose a numbered linking group to open the symbol, or tick **Aggregated** to open it across all exchanges at once. From the keyboard, hold **Ctrl** and double-press a letter to send the coin to the matching group. A status dot shows the connection, and a built-in guide is available from the menu. You can [download ProfitForge here](https://profitforge.net/en?ref=jIezbrKeQphwXYyqsrJQ85sR). ### MetaScalp The **[MetaScalp](https://metabroker.life/register?referral=Wintrading)** integration opens the coin you're viewing directly in the MetaScalp terminal — in the active window, in a named **binding** (a group of linked panels), or as a **combo** layout for the symbol. No setup is needed — just launch the MetaScalp terminal: its local API server starts automatically on ports **17845–17855**. Then click the **MetaScalp** icon and press **Open** to send the symbol to the active window, or pick a numbered **binding** to switch every panel in that group. Tick **Combo** to open a combo layout instead. From the keyboard, hold **Ctrl** and double-press a letter to send the coin to the matching binding. A status dot shows the connection, and a built-in guide is available from the menu. **Open on alert.** An alert can send its coin to MetaScalp automatically: in the alert form choose **Open coin in terminal → MetaScalp** and either a binding or **Active window**. For price-crossing and trend-level alerts created from the chart, set the default in the **Open in terminal** panel on the Alerts page. The terminal is reached from your browser, so this works only while a Wintrading tab is open and MetaScalp is running. > **Note:** Bindings are named groups you configure inside MetaScalp. If a binding hasn't been set up there yet, the request is simply ignored — use **Open** for the active window in that case. You can [download MetaScalp here](https://metabroker.life/register?referral=Wintrading). ## Get Premium for free URL: https://wintrading.live/app/docs/free-premium Trade through one of our broker partners — Tiger.Trade or Gate.io — and get Wintrading PRO for free, paid for by your trading commission. ### How it works You don't have to pay for Wintrading PRO directly. If you trade through one of our broker partners, the commission you already pay there can unlock **30 days of PRO** at no extra cost. The idea is simple: - **Register** with the broker through our referral link (or add our referral code to an existing account). - **Connect** that broker account to Wintrading on the **Account** page. - Wintrading **tracks the commission** you pay over the month. Once it reaches the threshold, you **activate** 30 days of PRO from your profile — and renew it each month you keep trading. > **Note:** Two partners are available today — **Tiger.Trade** and **Gate.io**. You manage and connect both from the **Account** page. > **Important:** To qualify you must be registered **through our referral link** (or have our referral code on your profile). Without it the connection can't be verified and the commission won't count. ### Tiger.Trade **Trade with Tiger.Trade and get Wintrading for free.** Steps: - **Registration** — register with Tiger.com Broker through our [referral link](https://link.tiger.trade/winscreener). If you already have an account, make sure the code **winscreener** is entered in your profile. - **Connect** — on the Account page, open the Tiger.Trade card and enter your **Tiger.Trade account email**, then click **Connect**. - **Minimum commission** — pay the required commission within a month: **$300 on Binance** (35% rebate), **$125 on Bybit** (10% rebate) or **$300 on OKX** (35% rebate). - **Activate** — once the threshold is met, activate 30 days of PRO from your profile. > **Tip:** After connecting, the Account page shows a live progress bar of your commission toward the Premium target, so you always know how close you are. ### Gate.io **Trade with Gate.io and get Wintrading for free.** Steps: - **Registration** — sign up on Gate through our [referral link](https://www.gate.io/referral/invite/VLFBAQ9ZVG_0_103). If you already have an account, make sure the code **VLFBAQ9ZVG** is specified in your profile. - **Connect** — on the Account page, open the Gate.io card and enter your **Gate account ID**, then click **Connect**. - **Minimum commission** — pay at least **$32 in commission on Gate** within a month (10% rebate). - **Activate** — once the threshold is met, activate 30 days of PRO from your profile. ### Activating & renewing Connecting a broker is a one-time step; keeping PRO is monthly: - **Activate** — when your tracked commission reaches the target, the Account page shows a button to activate **30 days** of PRO. - **Renew** — accumulate the required commission again over the next 30 days, then extend for another 30 days from your profile. - **Track progress** — the progress bar on each broker card shows your current commission versus the target in real time. > **Note:** Conditions (commission amounts and rebates) are set by the brokers and may change — the in-app Tiger.Trade and Gate.io panels always show the current requirements. ## Glossary URL: https://wintrading.live/app/docs/glossary **Bids & asks** — A **bid** is an order to buy at a set price; an **ask** is an order to sell. The best bid (highest) and best ask (lowest) are as close as the two sides get to meeting. **Spread** — The gap between the best buy price and the best sell price. A small spread usually means a liquid, actively traded market; a wide spread means it is thinner. **TradFi asset** — A perpetual/token tracking a traditional-finance instrument — a tokenized stock (TSLA, AAPL), stock index (SPX500), ETF or commodity (gold, oil) — listed on a crypto exchange. Wintrading marks such symbols with a bank icon in chart headers, and the coin filters can hide them. **Liquidity** — How easily you can buy or sell without moving the price. Many resting orders = high liquidity; few orders = low liquidity, where price can jump more easily. **Depth of market (order book)** — The full list of buy and sell orders waiting at each price — also called the order book. It shows how much is on offer above and below the current price. **Limit order / liquidity wall** — A large order resting at one price, waiting to be filled. A very big one is a "wall" that can act as support or resistance. Wintrading flags orders above a size threshold that varies by coin and exchange (roughly $20k–$1M). **Mid price** — The midpoint between the best bid and best ask — a quick read of "fair" price right now. Wintrading computes it as (best ask + best bid) ÷ 2. **Slippage** — The extra cost of a larger trade: once you use up the best price, the rest of your order fills at worse prices deeper in the book. Bigger orders mean more slippage. **Volume** — The total value traded over a period. High volume means lots of activity and easier entries and exits. Wintrading sums price × amount for all trades in the window. **Volatility** — How much and how erratically a price moves. High volatility means big, unpredictable swings. Wintrading measures the spread of price changes over a chosen window (1m–24h). **Open interest** — On futures, the total number of open positions that have not been closed yet. Rising open interest means new money is entering. Wintrading shows the change over a window, taken from the exchange. **Funding rate** — On perpetual futures, a regular payment between longs and shorts that keeps the futures price near the spot price. Positive = longs pay shorts (bullish crowd); negative = shorts pay longs. Taken from the exchange. **Taker fee** — The commission you pay when you "take" liquidity with a market order (filling an existing order). Wintrading uses each exchange's standard taker fee in its spread maths (e.g. Binance 0.04%, Bybit 0.055%). **Correlation (to Bitcoin)** — How closely a coin moves with Bitcoin. +1 = moves in lockstep, 0 = unrelated, −1 = moves opposite. Wintrading compares the two price series over a chosen window. **Awesome Oscillator (AO)** — Bill Williams' momentum indicator: the 5-period SMA of the bar midpoint (high+low)/2 minus the 34-period one, drawn as a histogram around a zero line. Rising bars show growing momentum; zero-line crossings mark momentum flipping between bullish and bearish. **Fractal (Williams)** — A local swing point in the Bill Williams sense: a candle whose high (or low) stands out against a set number of candles on each side — classically two, a 5-bar pattern. Confirmed only after those candles close, fractals are used as local support/resistance and breakout reference points. **Volume profile** — A horizontal histogram of how much volume traded at each price over a range of bars — by price rather than by time. Long rows mark prices the market accepted and often acts on again (support and resistance); short rows mark prices it passed quickly. Its key levels are the POC and the value area. **POC (point of control)** — The price with the most traded volume in a volume profile — its longest row. Price often comes back to it and reacts there. **Value area (VAH, VAL)** — The range of prices around the POC that holds a set share of a volume profile's volume, usually 70% — where most of the trading happened. Its top is the value area high (VAH), its bottom the value area low (VAL). **NATR (e.g. 5m/14, 1m/30)** — Normalized Average True Range — volatility shown as a percentage of price, so you can fairly compare a cheap coin with an expensive one. Higher means bigger swings. The numbers are the window: "5m/14" = 14 five-minute candles; "1m/30" = 30 one-minute candles. **Volume splash / unusual volume** — How today's very recent volume compares with its normal level. A value of 3 means "about 3× the usual" — a sudden burst of activity. Wintrading divides the current 1–2 minute volume by a longer-term average. **Price change / top gainers & losers** — The percent move from a chosen time ago to now. Wintrading ranks the biggest positive moves as "top gainers" and the biggest drops as "top losers", across windows from 1m to 24h. **Trades (and trades index)** — The number of individual buy/sell transactions in a period. The "trades index" compares it to normal — a value of 2 means twice the usual number of trades (a busy market). **Order density** — The combined dollar value of all limit orders grouped by how close they sit to the price (within 0.5%, 1%, 2%, 3%, 5% and 10%). It shows where liquidity is stacked, not just single orders. **Corrosion time** — An estimate of how long a large order would take to get "eaten" at the current pace of trading. A short corrosion time means it could fill quickly; a long one means it is likely to sit there. Estimated from the order's value versus recent average volume. **Lifetime** — How long an order has been resting at its price since it first appeared (allowing small size changes). Long-lived walls that hold can be more meaningful than ones that just popped up. **Round orders** — Orders placed at suspiciously "round" prices (for example exactly $50,000, or a whole number). These often mark deliberate levels set by larger players. Wintrading detects them from how round the price is. **Distance to order** — How far a limit order sits from the current price, as a percentage. Orders more than about 10% away are ignored as too far to matter right now. **Imbalance** — Whether buyers or sellers have more orders stacked near the price (within ±3% of mid). Green/positive = more buying pressure, red/negative = more selling, near zero = balanced. Computed as (bid volume − ask volume) ÷ total. **Price step / grouping** — Nearby prices are rounded into buckets so the order book stays readable — for example $10 steps above $10,000, finer steps for cheaper coins. A smaller step shows more detail; a larger one gives a cleaner overview. **Trend levels** — Auto-detected diagonal support/resistance lines drawn from recent price peaks and troughs — dynamic turning points where price has bounced before. **Horizontal levels** — Flat support/resistance prices where orders and reactions cluster. A level qualifies after price "touches" it enough times within a small tolerance (by default within 0.5%, at least once over the lookback). **Tradable size (arbitrage)** — How much (in dollars) you could actually fill at the quoted prices before running out of orders on the thinner side. It is the smaller of the two exchanges' best-price depth. **Gross vs net spread** — Gross spread is the raw price difference between two exchanges; net spread subtracts the trading fees on both sides — the realistic profit. Wintrading shows net by default. **Net funding (arbitrage)** — The combined funding you would pay or collect while holding both legs of an arbitrage: the short leg's rate minus the long leg's. Positive adds to profit; negative eats into it. **Carry (funding arbitrage)** — The funding income a delta-neutral position earns over time: long the venue with the lowest funding rate, short the venue with the highest, and collect the difference at each settlement. **Algo execution** — A large participant working an order through a bot that prints near-identical sizes at a near-regular pace — for example 500 lots every 10 seconds (TWAP-style child orders). The screener detects these in the live trade tape so you can trade in the same direction while the algo keeps working. **Algo signature** — The fingerprint of a detected algo execution, written as size/interval — e.g. **1.5K/10s** means ~1,500 lots printed every ~10 seconds. Colour shows the side: green for buying, red for selling. **Market Simulator** — A chart mode that rewinds price history to a chosen moment and plays it forward candle by candle. Used to practice setups and strategies on real past data — including paper trades with simulated PnL — without risking money. In Wintrading it lives on the Coins page; Pro+, Binance markets. **Navy** — The scripting language of the Wintrading charts, close to TradingView's Pine: an indicator is a short script with its inputs, plots, clouds, levels and markers. The built-in library (Trend Cloud, Ichimoku, Supertrend, RSI Pro, MACD 4C and others) is written in it, and so are your own scripts — which ChatGPT or Claude can write for you; scripts run in the background, so they keep the chart smooth. **Pine Script** — TradingView's scripting language for indicators and strategies. Navy is close to it, but the code is not interchangeable: a TradingView indicator is ported to Wintrading — ChatGPT or Claude rewrites its open source code in Navy (My scripts → From TradingView). **Higher timeframe (HTF)** — A timeframe with longer bars than the chart you trade on — the 4-hour or daily chart behind a 5-minute one. Traders take the trend and key levels from the higher timeframe and the entry from the lower one. In Navy scripts another timeframe is read with `security('4h', () => …)`. **Repainting** — An indicator repaints when its value on a bar that has already closed changes later — usually because it used data that was not known at that moment (an unfinished higher-timeframe bar, a future pivot). A repainting signal looks better on history than it was live. Navy's `security()` does not repaint by default. **Break of structure (BOS)** — The candle that closes beyond the last swing high (in an uptrend) or swing low (in a downtrend) — the market structure continues or turns. A common first request for a script. **Liquidation** — The exchange closing a leveraged futures position by force when its margin runs out: a **long** liquidation is a forced sell, a **short** liquidation a forced buy. Waves of liquidations push the price further and often mark the end of a move. **Clusters (footprint)** — The volume a bar traded at each price, split into aggressive buys and sells. Shows where inside the candle the trading happened: its point of control, the delta of every price. **Delta (volume delta)** — Aggressive buys minus aggressive sells (market orders, the takers) of a bar. Summed bar after bar it is the **cumulative delta** (CVD): when price makes a new high and the cumulative delta does not, buyers are weakening — a divergence. **PnL** — Profit and loss — the money result of a position or period. **Realized PnL** is locked in by closed trades; **unrealized (live) PnL** floats with the current price while a position is open. Often shown as a percentage of the entry value. **Fill** — A single execution of (part of) an order. One order can produce several fills at slightly different prices; a position is a group of fills — its entry price is the volume-weighted average of the opening fills. ## FAQ **What is Wintrading?** Wintrading is a professional crypto screener that streams order books, trades and liquidity from 9 exchanges in real-time. It combines a density screener, heatmap, trend screener, arbitrage, alerts, cluster charts and more in one terminal. **How does the 3-day trial work?** After signing up you can activate a free 3-day trial and explore the core tools on real-time Binance Spot data. Choose a monthly, quarterly or annual Pro plan to unlock every exchange, alerts and the rest of the platform. **Which exchanges are supported?** Binance, Bybit, OKX, Gate, MEXC, Bitget, Hyperliquid, AsterDEX and KuCoin — both spot and futures markets. **Is the data really real-time?** Yes. Wintrading connects directly to exchange data streams: order books, trades and liquidity update in real-time, not once a minute. **How do alerts work?** You create an alert — limit order, volume splash, price change, large trades, open interest or level crossing — and choose where to receive it: Telegram, email or a sound in the terminal. **Is there a desktop app?** Yes — a native app for Windows and macOS with automatic updates. Your account and settings are synced between the web and desktop versions. **What payment methods are accepted?** Bank cards (Visa/Mastercard via Stripe) and crypto payments (Binance Pay, Coinbase, Cryptomus).