Skip to main content

Close position settings

These settings determine how futures positions are closed in profit.

LabelConfig ParameterDefault ValueDetailed Description
ROEROE1This 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 trailingROE_TRAILINGfalseActivates 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 limitROE_LIMIT1This 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 a 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 scalperROE_SCALPERfalseEnables 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.
PndPNDfalseCloses 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 protectionPND_PROTECTION1.5Sets 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.