Close Position Settings
These settings determine how futures positions are closed in profit.
Info
Closing a position refers to executing a trade that offsets an existing open position. For example, if you have a long position (bought an asset), closing the position means selling that asset.
Label | Config Parameter | Default Value | Detailed Description |
---|---|---|---|
ROE | ROE | 1 | This setting establishes the target Return On Equity (ROE) for closing a position. ROE is calculated based on the percentage profit and loss on your invested margin, similarly to how BitMEX calculates it, including the effects of leverage but excluding fees. Examples: - Long position, 1x leverage: A 1% increase above the average entry price reaches 1% ROE. - Long position, 100x leverage: A 1% increase above the average entry price reaches 100% ROE. - Short position, 20x leverage: A 1% decrease below the average entry price reaches 20% ROE. |
ROE Trailing | ROE_TRAILING | false | Activates trailing for the ROE target, which adjusts the stop loss as the market price moves favorably, locking in profits while providing a buffer against market reversals. |
ROE Limit | ROE_LIMIT | 1 | This parameter defines the range for ROE trailing. It sets a threshold where, if ROE starts to decline, the system places a close order to protect profits. For instance, setting an ROE limit of 5 at a target of 1 creates an initial range between 0.95 and 1.05 ROE, securing profits while giving room for slight market fluctuations. |
ROE Scalper | ROE_SCALPER | false | Enables a specific style of ROE trailing where the initial trailing stop is set ROE_LIMIT below the ROE target. This mode is useful for scalping strategies to lock in quick, short-term profits. Note: ROE trailing must be enabled to use this feature. |
PND | PND | false | Closes the position after a significant price movement (pump or dump) finishes, and the price stabilizes above the average entry price. This setting overrides any ROE-related parameters, providing a strategy to capitalize on volatile market spikes. |
PND Protection | PND_PROTECTION | 1.5 | Sets a protective threshold to close the position if ROE drops below this level after having reached a peak. This can prevent losses by automatically closing positions during sharp market reversals after initial gains. |