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.