SutraLipi docs grammar v1

Operators

Arithmetic + - * /; comparison < <= > >= == !=; logical && || !. Precedence runs unary, then * /, then + -, then comparisons, then &&, then || — use parentheses to be explicit.

float mid    = (High(nifty, M5, 0) + Low(nifty, M5, 0)) / 2;
bool  signal = rsi[0] > 30 && Close(nifty, M5, 0) > mid;
bool  flat   = !signal;

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.