millionchart
فارسی

Symbol and price grid reference

The 7 functions and 25 values of symbol: signature, effects, phase, cost and tested examples.

Facts about the symbol, and the functions that put a price on its tick grid.

Functions#

symbol.price_of#

symbol.price_of([ticks])

The price amount of a number of ticks.

  • Effects: none: the result depends on the arguments only.
  • Phase: every bar.
  • Cost: a fixed number of operations.

symbol.snap#

symbol.snap([price])

Rounds a price to the nearest tick of the symbol's price grid.

symbol.snap_down#

symbol.snap_down([price])

Rounds a price down to the price grid.

  • Effects: none: the result depends on the arguments only.
  • Phase: every bar.
  • Cost: a fixed number of operations.

symbol.snap_up#

symbol.snap_up([price])

Rounds a price up to the price grid.

  • Effects: none: the result depends on the arguments only.
  • Phase: every bar.
  • Cost: a fixed number of operations.

symbol.ticks#

symbol.ticks([price])

The number of ticks in a price amount.

  • Effects: none: the result depends on the arguments only.
  • Phase: every bar.
  • Cost: a fixed number of operations.
  • Examples: Loss limit before entry.

symbol.ticks_down#

symbol.ticks_down([price])

The number of whole ticks in a price amount, rounded down.

  • Effects: none: the result depends on the arguments only.
  • Phase: every bar.
  • Cost: a fixed number of operations.

symbol.ticks_up#

symbol.ticks_up([price])

The number of whole ticks in a price amount, rounded up.

  • Effects: none: the result depends on the arguments only.
  • Phase: every bar.
  • Cost: a fixed number of operations.

Values#

  • symbol.base_currency
  • symbol.category
  • symbol.contract_size
  • symbol.currency
  • symbol.id — The identifier of the symbol of the chart.
  • symbol.lot_step
  • symbol.margin_rate
  • symbol.max_lot
  • symbol.min_lot
  • symbol.name
  • symbol.pip
  • symbol.point_value
  • symbol.price_scale
  • symbol.spec_date
  • symbol.spec_source
  • symbol.swap_long
  • symbol.swap_mode
  • symbol.swap_short
  • symbol.swap_triple_day
  • symbol.tick — The size of one tick.
  • symbol.tick_value
  • symbol.ticker
  • symbol.venue
  • symbol.volume_type
  • symbol.zone