SutraLipi docs grammar v1

Your first strategy

The same script runs unchanged in backtest, paper and live. Build it from blocks in the Visual Builder, type it in the Code Editor, or describe it to AI — all three produce this language. The shape is always:

  1. Declare the symbol(s) you trade.
  2. Declare arrays to hold indicator output.
  3. Put your logic inside an event (onTick runs on every price update).
  4. Fill indicators, read [0]/[1], and act with OrderSend(...).

Ready to run this? Build and backtest strategies in the SutraLipi algo trading platform — no-code builder, tick-level backtesting and one-click live execution. Browse all documentation topics.

Code copied — paste it into the editor with Ctrl+V.