Preset Parameters
Key Preset Parameters
These variables define how the crypto trading bot measures relative ROI, opens positions, scales exposure and closes trades based on combined portfolio performance.
min_roi_diff
Visible default: 0.02. Defines the minimum 24 hour ROI difference required to activate long or short logic.
quote_size
Visible default: 200. Provides the base notional value used in position sizing.
max_gap
Visible default: 0.01. Defines the negative performance threshold used by the averaging logic.
min_return_to_close
Visible default: 0.01. Defines the normalized return condition used to close an open position.
symbol_hedge
Defines the futures symbol used as the reference market for relative ROI comparison.
roi_current
Calculates the 24 hour ROI of the current futures symbol using 15 minute candles.
roi_hedge
Calculates the 24 hour ROI of the selected hedge symbol using 15 minute candles.
total_upl
Combines unrealized PnL from the current and hedge positions.
trade_roi
Calculates normalized strategy return from combined unrealized PnL and total notional exposure.
to_open_long
Activates long logic when the current symbol underperforms the hedge symbol by more than min_roi_diff.
to_open_short
Activates short logic when the current symbol outperforms the hedge symbol by more than min_roi_diff.
цена исполнения
Calculates execution prices using deeper futures order book levels.