Code · Beginner

FlowScript: Code Your Own Indicators

From your first line to a published indicator or backtest: values per bar, inputs, history, signals, state, functions, lists, drawings, sessions, delta, other timeframes and strategies.

What you’ll learn

Lessons

  1. Your first script (7 min): Three lines that draw an average, and how FlowScript runs them.
  2. Inputs: settings without code (7 min): Let traders tune lengths, colors, sources and switches from the settings dialog.
  3. History and built-in functions (9 min): Look back with [n], and lean on 70+ built-ins instead of doing the math yourself.
  4. Conditions, signals and alerts (9 min): if blocks, crossovers, markers, bar colors and alert conditions.
  5. State that carries across bars: var (9 min): Counters, trailing levels and session highs, values that remember.
  6. Your own functions, lists and maps (11 min): Package logic with def, keep many values in a list, and count things in a map.
  7. Labels, lines, boxes and tables (10 min): Draw objects you can keep, move and delete, and build a dashboard.
  8. Sessions, delta and other timeframes (10 min): Prior-day and overnight levels, buy-minus-sell volume, and the daily trend on an intraday chart.
  9. Backtest a strategy (11 min): Entries, stop and target brackets, end-of-day exits, and how to read the report honestly.
  10. Polish, publish and share (7 min): Make it readable, test it on different charts, and publish it to the library.