Preset Parameters
Key Preset Parameters
These variables define how the crypto trading bot detects RSI extremes, calculates order prices and sizes, and manages position-aware execution on Hyperliquid.
max_gap
Visible default: 0.002. Defines the maximum price gap used by the preset’s position and pricing logic.
activate_spread
Visible default: 0.002. Sets the spread condition used as part of the strategy activation and execution logic
candles_fetched
candles_futures('m1'). Fetches 1-minute futures candles used for RSI and price calculations.
buy_orders_count
1 when RSI is below 30, otherwise 0. Activates one buy order when the lower RSI condition is met.
sell_orders_count
1 when RSI is above 70, otherwise 0. Activates one sell order when the upper RSI condition is met.
price_buy
Uses rsi_to_price() to calculate the price corresponding to an RSI level of 30.
price_sell
Uses rsi_to_price() to calculate the price corresponding to an RSI level of 70.
amount_buy
Dynamic formula that calculates buy order volume using the execution price and current position conditions.
amount_sell
Dynamic formula that calculates sell order volume using the execution price and current position conditions.
take_profit
Visible default: 0.001. Defines the take profit parameter used by the preset’s exit logic.
цена исполнения
Selects the final buy or sell execution price using the calculated RSI-based price and current candle data.
position_fetched
Reads the current futures position and makes its data available to the preset’s pricing and sizing formulas.