millionchart
فارسی

Sizing reference

The 3 functions and 0 values of sizing: signature, effects, phase, cost and tested examples.

Quantities and conversions of amounts between the currency of the account and that of the symbol.

Functions#

sizing.default_qty#

sizing.default_qty([price])

The quantity the setup's size rule gives for an entry at price.

  • Effects: reads the simulated account, so it is not moved across an order call.
  • Phase: every bar.
  • Cost: reads the account figure of the bar.
  • Examples: Loss limit before entry.

sizing.to_account#

sizing.to_account([value])

Converts an amount from the currency of the symbol to the currency of the account.

  • Effects: reads the simulated account, so it is not moved across an order call.
  • Phase: every bar.
  • Cost: reads the account figure of the bar.
  • Examples: Loss limit before entry.

sizing.to_symbol#

sizing.to_symbol([value])

Converts an amount from the currency of the account to the currency of the symbol.

  • Effects: reads the simulated account, so it is not moved across an order call.
  • Phase: every bar.
  • Cost: reads the account figure of the bar.
  • Examples: Loss limit before entry.