Integrations / TrendSpider

FirmTape levels in TrendSpider

Beta · version 0.1.1 · Custom JS indicator · Live, every 10 to 20 s · part of the LIVE plan

A custom JS indicator for TrendSpider that draws the flip, the walls and, optionally, the top gamma strikes, refreshed every 10 to 20 seconds. These are measurements of dealer positioning, not trade signals: the plugin places no orders and raises no alerts.

FirmTape Levels for TrendSpiderBeta
Download 0.1.1FirmTapeLevels-0.1.1.js · 23.0 KB
SHA-256 b8996c77f48a5c5185b6bdffe092ea5a8f5bea447bf367ae06c3161562f62bc6

The download is the script's own text: open it, select all and paste it into the Custom Scripts editor.

What you need

Get a token

  1. Hold the LIVE plan. The levels API and every integration are part of it.
  2. Open /account#integrations, section Integrations, and press Create integration token. Give it a name (for example the platform and the machine).
  3. Copy the token when it is shown: it starts ftpl_ and is shown once. It reads levels only; it cannot run LAB or spend credits.

Install

  1. Open the script's text below (the download is the script itself) and copy all of it.
  2. In TrendSpider open the Custom Scripts editor (Indicators menu, Custom Indicators, then create a new custom script).
  3. Paste the whole script into the editor, replacing the template.
  4. Click Save, then Apply to add it to the current chart.
  5. Open the indicator's settings (click its name in the chart key), paste your token into FirmTape API token, and leave FirmTape symbol on auto.

Token safety. The token input is hidden from the chart key and its screenshots, and the script ships with it empty. TrendSpider's documentation does not say whether typed input values travel with a shared chart or layout, so do not share a chart, layout or indicator copy with your token filled in; share the script file instead. The token goes as an Authorization: Bearer header, not in the URL.

Settings

SettingDefaultWhat it does
FirmTape API tokenemptyYour ftpl_ token. Hidden from the chart legend.
FirmTape symbolautoauto maps the chart: ES and MES (any contract or continuous) to ES, NQ and MNQ to NQ, SPX, SPXW and $SPX to SPX, a stock or ETF to itself. Type a symbol to override (SPX levels on an SPY chart would be wrong, so leave SPY on SPY).
Show open-interest levelsoffAdds the open-interest book's flip and walls.
Gamma strikes to draw01 to 5 extra lines at the strikes with the most gamma. Costs a second call per refresh.
Gamma strikes bookvolvol or oi.
Show line labelsonPrice labels on the last bar.
Show status noteonThe corner note. Errors show even when it is off.
Refresh, seconds10TrendSpider's cache time for the calls; minimum 6.
Bars to span00 draws the lines across the whole chart; N draws them over the last N bars only.

What is drawn

Requests and limits

The levels API allows 120 requests a minute per token, counted across everything that uses it; an unchanged reading answers 304 with no body and does not count. TrendSpider re-runs a script on every real-time update and answers each call from its own server cache until the refresh time passes, so with the default of 10 s the lines are 10 to 20 s behind FirmTape at worst; the note's age says exactly how old the book is. One chart costs about 6 calls a minute (12 with gamma strikes), and two charts of the same symbol share one call. The indicator is kept off scanners, alerts and the Strategy Tester, where a scan over thousands of symbols would spend your token's limit at once.

Troubleshooting

Status saysMeaning and fix
401 bad_keyThe token is mistyped, revoked or unknown. Create a new one on /account#integrations.
403 live_requiredThe account holds no active LIVE plan; every call answers that until it does.
429 rate_limitedOver 120 requests a minute on this token: many charts or a short refresh. Raise Refresh, seconds or use a second token.
A timeout in the noteEach call has a hard 3 s limit in TrendSpider. The next refresh retries.
Lines off the candles on ES or NQA back-adjusted continuous chart or a different contract month. Use the front contract the note names, or an unadjusted continuous series.
Nothing on a closed marketA chart with no ticks does not re-run; the levels are the last session's and the note says Closed.

More

Beta software, provided as is, not yet verified inside every version of TrendSpider. TrendSpider is a trademark of its owner; no affiliation with, or endorsement by, it is implied. Not investment advice.