Official Origami Tech Preset

Pair Trading Futures Crypto Trading Bot

Automate relative ROI divergence crypto trading across two futures markets with portfolio scaled position sizing, averaging and exit logic.

Difficulty: Advanced

Preset in Origami Tech: Futures | One Way | Pair Trading by Onchainmonk PO

Futures One Way DCA Bot preset in Origami Tech
Futures
Market
Pair Trading
Strategy
One Way
Position Mode
24h ROI
Signal
Crypto Trading Bot Preset

How the Futures | One Way | Pair Trading Bot Works

A relative ROI crypto trading strategy that compares two futures markets, opens positions when their 24 hour performance diverges and manages averaging and exits using combined portfolio PnL.

↗

Relative ROI Comparison

The preset compares the 24 hour ROI of the current futures symbol with a selected hedge symbol using 15 minute candles.

Long Condition

A long signal is activated when the current symbol underperforms the hedge symbol by more than the configured min_roi_diff.

Short Condition

A short signal is activated when the current symbol outperforms the hedge symbol by more than the configured min_roi_diff.

⇄

Combined PnL Tracking

The preset combines unrealized PnL from the current and hedge positions and uses total exposure to calculate normalized strategy return.

$

Controlled Averaging

The strategy can add exposure when combined unrealized PnL falls below the threshold defined by max_gap.

$

Portfolio Scaled Exit

An open position can be closed when normalized strategy return exceeds the configured min_return_to_close.

✓

Order Book Based Execution

Execution prices are calculated using deeper futures order book levels rather than only the current market price.

Market Context

Market Context for This Pair Trading Strategy

This preset is designed around relative performance differences between two futures markets and portfolio aware position management.

✓

Strategy Context

  • Futures markets with a meaningful relationship between the current symbol and selected hedge symbol
  • Periods when relative 24 hour performance between the two markets diverges
  • Strategies that use relative value rather than a single market indicator
  • Traders comfortable managing exposure across related futures markets
!

Conditions to Watch

  • Continued divergence between the two markets after a position is opened
  • Changes in the historical relationship between the current and hedge symbols
  • Averaging that increases total position exposure during an adverse move
  • Reduced liquidity or unstable order book conditions
  • Position exposure growing beyond the intended level
Getting Started

Launch the Pair Trading Futures Crypto Trading Bot

IImport the official preset, configure the current and hedge markets, and review portfolio exposure and risk parameters before enabling the strategy.

01

Create or Open a Project

Use an existing Origami Tech project or create a workspace for the crypto trading bot.

02

Add an Exchange Account

Connect the exchange account that will be used for futures crypto trading through API credentials with the required trading permissions.

03

Create a Futures Crypto Trading Bot

Choose the connected account, futures pair, margin settings and leverage.

04

Import and Review the Preset

Select Futures | One Way | Pair Trading by Onchainmonk PO, configure the hedge symbol and review max_gap, quote_size, min_roi_diff, min_return_to_close and maximum position exposure before importing the preset.

Actual Origami Tech Setup

Inside the Futures | One Way | Pair Trading by Onchainmonk PO

The preset combines relative ROI signals with position sizing, controlled averaging and portfolio scaled exits. It compares the current futures symbol with a selected hedge market and continuously evaluates their relative performance and combined unrealized PnL.

ROI comparison
24 hour ROI across the current and hedge futures symbols
Signal candles
15 minute futures candles
min_roi_diff
Visible default: 0.01
min_return_to_close
Strategy logic evaluated every 5 seconds

Additional strategy variables include hedge_symbol_hedge, quote_size, max_gap, position exposure, combined unrealized PnL and portfolio normalized exit conditions.The exact default values of these parameters should be taken from the full preset configuration in Origami Tech.

Complete interface views of the Futures One Way DCA Bot preset
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.

execute_price

Calculates execution prices using deeper futures order book levels.

Supported Exchanges

Use the Preset on Supported Futures Integrations

Origami Tech connects to multiple centralized and decentralized exchanges. Preset availability depends on the futures functionality and account configuration supported by each integration. Check current compatibility inside Origami Tech before launch.

Monitoring

What Happens After Launch

The active crypto trading bot receives futures market data, recalculates its formulas and sends permitted orders through the connected exchange API when strategy conditions are met.

Position

Follow current futures exposure and position direction.

Orders

Review the orders created by the preset.

Realized PnL

Track completed crypto trading activity.

Unrealized PnL

Monitor the current result of open positions.

Explore More Strategies

Related Origami Tech Crypto Trading Bot Presets

Use the preset library to compare different automation approaches and strategy logic.

Grid + RSI Futures Crypto Trading Bot

Dynamic futures grid strategy with RSI conditions and separate long and short position management in Hedge Mode

Explore Preset

Volume Futures Crypto Trading Bot

Uses current futures order book prices, a configurable spread limit and One Way position logic to automate repeated crypto trading cycles.

Explore Preset

Hyperliquid RSI Price Spikes Crypto Trading Bot

Uses 1 minute RSI signals, RSI based price calculations and position aware execution for Hyperliquid futures.

Explore Preset

DCA Futures Crypto Trading Bot

Automates gradual futures position scaling with dynamic pricing, position aware sizing and predefined exit logic.

Explore Preset
FAQ

Any Questions?

How does the pair trading signal work?⌄
The preset calculates the 24 hour ROI of the current futures symbol and the selected hedge symbol using 15 minute candles. With the visible default min_roi_diff of 0.02, the strategy requires a 2 percentage point difference before its long or short condition can activate.
How does averaging work?⌄
The preset monitors combined unrealized PnL across the current and hedge positions. Its averaging logic can add exposure when performance falls below the negative threshold defined by max_gap, which has a visible default of 0.01.
How does the bot decide when to exit?⌄
The preset calculates trade_roi from combined unrealized PnL and total notional exposure. An existing position can be closed when this normalized return exceeds min_return_to_close, which has a visible default of 0.01.
Which parameters do I configure before importing the preset?⌄
Before import, Origami Tech asks for max_gap, quote_size, min_roi_diff, symbol_hedge, min_return_to_close and the maximum notional parameter.
What is the Futures | One Way | Pair Trading by Onchainmonk PO preset?⌄
It is an Origami Tech futures crypto trading bot preset that compares the relative 24 hour ROI of the current futures symbol and a selected hedge symbol. The resulting divergence is used to determine long and short signals.
When does the strategy open a long position?⌄
The preset can open a long position when the current futures symbol underperforms the selected hedge symbol by more than the configured min_roi_diff.
When does the strategy open a short position?⌄
The preset can open a short position when the current futures symbol outperforms the hedge symbol by more than the configured min_roi_diff.
How does averaging work?⌄
The strategy can add to a losing position when combined unrealized PnL falls below a scaled negative threshold defined by its max_gap logic.
How often does the strategy evaluate its conditions?⌄
The strategy logic is evaluated every 5 seconds.
Does the preset use a stop loss?⌄
This version of the preset does not include a hard stop loss according to its official description. Risk therefore depends heavily on position sizing, averaging, leverage and maximum exposure limits.
Futures | One Way | DCA Bot

Start With the Pair Trading Futures Preset

Import the Futures | One Way | Pair Trading by Onchainmonk PO preset in Origami Tech, configure the current and hedge markets, review portfolio exposure and adjust the strategy parameters to your futures crypto trading approach.

General disclaimer: Crypto trading involves substantial risk and can result in partial or complete loss of capital. Futures crypto trading involves additional risks associated with leverage, margin, liquidation, funding and position scaling. Origami Tech provides software for creating, configuring and executing automated crypto trading strategies. Presets provide predefined strategy logic and do not guarantee profitability or future performance. Users remain responsible for reviewing market selection, strategy parameters, exchange settings, leverage, position sizing and overall portfolio risk before enabling a crypto trading bot.