How Thesis works: the design rules behind the language and what happens under the hood.
A backtest is only worth something if it gives the same answer tomorrow. Here is what Thesis gives up to make that true, and why it is worth it.
In Thesis you never write the bar loop. Every value is already a series, and the past is one operator away.
Why two calls to ta.sma(close, 20) never interfere, why a function is compiled again at every call, and why that rules out recursion.
Thesis never compiles your script to native code and never starts a compiler on your device. It builds a small program, and an interpreter walks it, bar by bar.
A silent wrong number is the worst thing a trading script can produce. Thesis would rather stop with a position and a hint.