While25 - Programmable Trading Platform
Home
SDK
BlogCardsSupportDownload
While25

A programmable trading platform.

Download While25Book a call

Order managementRisk managementChartsAI assistantCompare

Python SDKSDKDownload

AboutBlogWhile CardsCareersSupportContact

Interactive BrokersAlpacaZerodhaUpstoxAll brokers

TermsPrivacyLicenceRiskAIAcceptable useNotices

While25 is software. It is not a broker, dealer, exchange or investment adviser, and nothing on this site is a recommendation to buy or sell any instrument. Orders you place route to your own brokerage account; While25 never holds funds or securities.

Trading carries risk of loss, including losses greater than your deposit on leveraged products. Backtests and simulations do not predict future returns. Broker and exchange names are trademarks of their owners. We plan to add Coinbase, Binance and Robinhood; you cannot connect them yet.

© 2026 While25

while25
Start here
  • Quickstart
  • Writing a module
Declaring
  • Module types
  • Subscriptions
  • Inputs
  • Plots & style
Calling
  • Market data
  • Instrument rules
  • Options, futures & combos
  • Portfolio
  • Orders
  • Chart
  • Panels & UI
  • Workspace
  • Context
  • Errors
Contents · Chart
Start here
  • Quickstart
  • Writing a module
Declaring
  • Module types
  • Subscriptions
  • Inputs
  • Plots & style
Calling
  • Market data
  • Instrument rules
  • Options, futures & combos
  • Portfolio
  • Orders
  • Chart
  • Panels & UI
  • Workspace
  • Context
  • Errors
SDK/Calling/Chart
← PreviousOrdersNext →Panels & UI

Chart

Series and drawings on the chart the user is looking at.
PYwhile25.chart.plot(name, values, times=None, *, overlay=True, instrument="", interval="")
Draw a series from a strategy or monitor. An indicator does not call this — it returns a dict instead. There is no color argument; you declare the style.
PYwhile25.chart.draw(name, tool_type, anchors, *, config=None, style=None, label="", instrument="", interval="")
A level, trendline, zone or label. anchors is a list of (time_ms, price) pairs — the same units candles() returns, so a level anchored to a bar you just read needs no conversion.
PYwhile25.chart.erase(name="")
Remove one drawing, or every drawing this module made.
PYwhile25.chart.tools() → list[dict]
Every drawing tool the chart knows, with anchor requirements and config schema. A tool added to the platform later appears here on its own. The current tool_type vocabulary — verify anchors and config with tools() rather than guessing: lines horizontal_line vertical_line trend_line ray extended_line horizontal_ray; channels parallel_channel regression_channel pitchfork; shapes & zones rectangle ellipse triangle arrow polyline price_zone; ranges price_range date_price_range ruler; text & markers text_label anchored_text price_label callout comment signpost sticker arrow_marker; fibonacci fib_retracement fib_extension trend_fib_extension; positions long_position short_position risk_reward; patterns xabcd_pattern abcd_pattern elliott_wave elliott_abc; volume & VWAP anchored_vwap volume_profile_range volume_profile_anchored.
PYwhile25.chart.hline(name, price, ...) · trendline(name, t1, p1, t2, p2, ...) · box(name, t1, p1, t2, p2, ...) · label(name, time_ms, price, text, ...)
Thin sugar over draw() for the common shapes.
The name you choose identifies the drawing
Drawing the same name again moves that drawing rather than adding a second one — the same rule plot() follows. A level that walks with price is one drawing that moves, and re-running a module replaces its drawings instead of duplicating them.
← PreviousOrdersNext →Panels & UI
The SDK itself has no dependencies, so you can write and unit-test a module on a plain Python install before it ever touches the platform. numpy and pandas are available in the runtime. Get the desktop app to run it — Python runs beside the engine, which a browser cannot host.