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:
- Declare the symbol(s) you trade.
- Declare arrays to hold indicator output.
- Put your logic inside an event (
onTickruns on every price update). - Fill indicators, read
[0]/[1], and act withOrderSend(...).
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.