'Constant' values

For convenience, you can use constants which are like placeholders representing useful data such as the entry price or current size of the open position. You cannot change the value of these, they are derived from your position.

All constants start with the "$" symbol

Constant
Description

$size

Size of the current position long or short

$lsize

Size of the open long position (hedge mode)

$ssize

Size of the open short position (hedge mode)

$entry

Average entry price of the current position

$lentry

Average entry price of the current long position (hedge mode)

$sentry

Average entry price of the current short position (hedge mode)

Example 1
swarm buy $size into 10
Example 2
buy $size at $entry

You can set up a shortcut bind using these constants and when pressed will always represent the correct size or entry etc of your position

To efficiently pyramid your positions in Insilico Terminal, use the commands "buy $size" or "sell $size". These commands automatically replicate your current position size, enabling easy doubling of your position. The "$size" variable dynamically adjusts to your existing position, facilitating rapid and precise adjustments in response to market shifts. This feature simplifies position management, ensuring you can act quickly without manual calculations.

Last updated