Skip to content

Basics

This page provides you some basic concepts on how TradeHub works and operates.

  • Strategy: Your trading strategy, telling the bot what to do, Could be in Code or Visual Editor Format.
  • Trade: Completed position.
  • Open Order: Order which is currently placed on the exchange, and is not yet complete.
  • Pair: Tradable pair, usually in the format of Base/Quote e.g. ETH/USDT
  • Timeframe: Candle length to use,Varies by exchange (e.g. "5m", "1h", …).
  • Indicators: Technical indicators provided by default program (SMA, EMA, RSI, …) or could be user-created.
  • Limit order: Limit orders which execute at the defined limit price or better.
  • Market order: Guaranteed to fill, may move price depending on the order size.
  • Profit: In open positions calculated pending (unrealized) profit will be shown. In closed positions this is depends on type of bot, backtest and dry-run will calculated by program,live trades calculated by exchange.
  • Total Profit: Combined realized and unrealized profit. The relative number (%) is calculated against the total investment in this trade.
  • Env. Variable: Global Variables that can be accessed by your strategies and plugins, their sensitive values such as your API key and variables you use in more than one strategy are stored in raw form on your machine.
  • Code Editor: Hence the name.
  • Visual Editor: Our visual editor utilizes Google Blockly, a powerful tool for creating code visually. With this intuitive interface, users can drag and drop blocks to build programs without the need for traditional text-based coding. (You can still add code snippets though)

All profit calculations of TradeHub include fees. For Backtesting / Paper / Live modes, the exchange default fee is used (lowest tier on the exchange). For live operations, fees are used as applied by the exchange.

OHLCV is an aggregated form of market data standing for Open, High, Low, Close and Volume, downloaded from exchange.

For spot pairs, naming will be base/quote and will be uppercase like ETH/USDT

Calculated stats from your trades

Mainly includes;

  • logs
  • indicators
  • Return Percentage
  • Hold Return Percentage (If you were HODL)
  • Profit Factor
  • Win/Loss Ratio
  • Win Ratio
  • Loss Ratio
  • Risk/Reward Ratio
  • Expectancy Ratio
  • Break-even Percentage
  • Avg. Drawdown Percentage
  • Avg. Profit Percentage
  • Positive Trades
  • Negative Trades
  • other info…
  • Backtest Mode: - Backtest mode allows traders to evaluate the performance of their trading strategies using historical market data. - Traders can simulate their strategy against past market conditions to assess its effectiveness and profitability. - This mode helps traders identify potential flaws in their strategies and optimize them before deploying them in live trading. - Running time may vary by candle length of choosen historical data.

  • Paper (Dry-run) Mode: - Paper mode is similar to backtest mode but with real-time market data of choosen exchange. - Traders can execute their strategies in a simulated trading environment, mimicking actual market conditions without placing real trades. - This mode allows traders to test their strategies in a realistic environment before committing real capital, providing a risk-free way to validate trading ideas.

  • Live Mode: - Live mode enables traders to execute their strategies in real-time with actual funds on live exchanges. - Traders connect their trading accounts to TradeHub by adding Exchange Accounts in program settings and deploy their strategies to automate trading activities. - This mode offers the opportunity to profit from trading strategies in real market conditions, but it also involves risk as trades are executed with real money.

In summary, backtest mode is for evaluating strategies using historical data, dry-run mode use real-time market conditions without placing real trades, and live mode allows traders to automate their strategies with real funds on live exchanges. Each mode serves a distinct purpose in the trading lifecycle, from strategy development and testing to live deployment and execution.