'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.
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
Example 2
Last updated