TradeOnReplayDOCSSearch the whole guidetradeonreplay.com

Guide / Scripts

What is built

A list of the script editor's features and how each one has been checked, so you know what to trust and what to test.

IN THE APP used in the desktop app and working.
ON SCREEN drawn in a browser test page and looked at, not yet in the app window.
TESTED covered by automated tests (838 pass), not yet looked at on a chart.

AreaStateNotes
Editor, run, update on chart, save to libraryIN THE APPAutocomplete (Ctrl Space), error lines, examples.
plot, hline, fill, bgcolor, shapesIN THE APPAll plot styles and per-bar colours.
Inputs and the settings gearIN THE APPIncluding the timeframe dropdown.
Higher timeframes (request.security)IN THE APPClosed bars only, no repainting.
Labels, lines, boxesON SCREENExtend, styles, bar-time positions.
Tables, merged cellsON SCREENAll eight positions, alignment, percent sizes.
Hover tooltips on labels and cellsON SCREEN
Arrays, maps, matricesTESTEDOutput goes through plots and labels, which are covered above.
Types and methodsTESTEDStepping a session equals a full run.
Enums, input.enumTESTEDThe dropdown shows titles; the saved value is the name.
Libraries and importTESTEDIncluding nested imports, private helpers and charts re-running after a save.
polyline, chart.pointTESTEDGeometry is tested; not yet seen in the app window.
ta.* skipped on some barsTESTEDMatches the unconditional value.
barcolorTESTEDNot yet seen in the app window.
plotcandle, plotbar, plotarrowTESTEDNot yet seen in the app window.
linefillTESTEDNot yet seen in the app window.
Indicators kept across restartsTESTEDStore and file tests pass. Restart the app once to confirm it on your machine.

Not built

request.security_lower_tf and other symbols. Both need data the script engine is not given (finer bars, or a second symbol aligned to the replay), so they stop with a message that says so. strategy() is refused on purpose. See What it will not do.

Checking it yourself

If a script behaves oddly, copy it and its error line. It becomes a test, and the fix keeps working.