Skip to main content
If you know another scripting language, some of what you type from habit does not exist in Lipi. Each row was compiled; the right column is the editor’s message for the form on the left.

ta and talib

ta and talib are two names for one namespace with the same 62 functions: ta.sma is talib.sma. Messages always say talib, and so do the examples here.

Rules for names

  • A name is ASCII letters, digits and _, not starting with a digit, and case-sensitive: Close is a new variable, CLOSE does not exist.
  • Reserved words, which no variable or parameter may be called: static intra func type enum def if else for while switch break continue return to step in case default and or not true false na const simple series.
  • A built-in variable (close, volume, bar_index, …) cannot be redeclared or assigned: `close` is a built-in name and cannot be redeclared.
  • A variable may be named like a namespace (array, math) or a function; the compiler warns about a namespace name. Avoid both.