ta. or talib.: the two prefixes name the same functions. The map uses ta..
How Lipi differs
These differences apply to whole scripts, whatever language they come from.- A script reads at most 500 bars back:
close[500]works,close[501]stops the script when it runs. More. - A built-in history function keeps its own history per call and moves it only on bars where that call runs. Call it on every bar, outside
ifand?:, and use the result inside. More. - An indicator reruns on every tick of the forming bar by default.
statickeeps a value from bar to bar;intrakeeps it across the reruns of one forming bar. More. - A script reads only the chart’s own symbol and timeframe. There is no call for another symbol or timeframe. More.
- A colour’s alpha is an opacity from 0 (invisible) to 1 (solid), not a transparency from 0 to 100. More.
- Dividing two integers gives a float:
7 / 2is 3.5. More.
Where to start
- Execution and types: How a script runs and the kinds of values it works with.
- History and state: Reading earlier bars and keeping values from one bar to the next.
- Control flow, functions and collections: Branches, loops, your own functions and types, operators and arrays.
- Inputs: Settings the chart user can change.
- Plots and drawings: Putting values, shapes, colours, objects and tables on the chart.
- Strategies and alerts: Simulated orders, positions and results, and notifications.
- Market data and time: Prices, volume, orderflow, the instrument, the timeframe, sessions and time.
- Math and strings: Numeric and text functions.
- Arrays: Creating and working with arrays.
- Technical indicators: Built-in indicator and series functions. One page per family, starting with moving averages.
- Not in Lipi: The concepts Lipi has no construct for, and what to use instead.
- Convert a script: The order of work for a conversion, and the corrections most often needed.