Scientific calculator — Tradetron Community
← Community

Scientific calculator

Keyword help 1,021 views

dashg

Hi,
missing LN and Log function in math.

need to calculating last 12 days instrument closing price calculation with Natural log and Logarithm

Dashg

Tradetron Team Tradetron team

There are log keywords. You don’t need Python for this.

  • Log: returns the natural logarithm (ln) of each value in a series, e.g. Log ( CLOSE ( Symbol ( your instrument, day ) ) ).
  • Log Return: returns ln(price today ÷ price yesterday) for each candle, e.g. Log Return ( CLOSE ( Symbol ( your instrument, day ) ) ).

Last 12 days

  • Sum of the last 12 daily log returns: Sum over Log Return(...) with period 12, read with Position ( ..., -1 ).
  • Average: Mean with period 12. Spread: Stdev or Variance.

Base-10 log

There is no separate log10 keyword. Divide the natural log by ln(10) ≈ 2.302585 with Math Operation ('/').

Check the exact inputs on the keyword page and test in Live Offline: Keyword Documentation — Tradetron

:sparkles: Answer written with AI from Tradetron docs (Oct 2026). Original replies are kept above. Spot something wrong? Reply below.