LogoLogo
Back to HaasOnline.comSwitch to Developer API
3.x
3.x
  • Welcome
  • Getting Started
    • What is Haas Trade Server?
    • System Requirements
    • Installation
      • Windows
      • Linux
        • Downgrading Mono
      • MacOS
    • Configuration
      • License Key
        • Upgrading Your License
      • Price Drivers & Accounts
      • Exchanges
        • Binance
        • Binance USDT Futures
        • Binance COIN Futures
        • Binance US
        • Bitfinex
        • BitMEX
        • Bitpanda Pro
        • Bitstamp
        • Bittrex
        • Bybit
        • (Unsupported) C-Cex
        • Cex.IO
        • (Unsupported) CobinHood
        • Coinbase PRO
        • Deribit
        • (Unsupported) FTX
        • Gemini
        • HitBTC
        • Huobi
        • Ionomy
        • Kraken
        • Kraken Futures
        • KuCoin
        • (Unsupported) NovaExchange
        • OKCoin
        • OKEX
        • OKEX-Futures
        • OKEX-Swap
        • Poloniex
        • Scripted Driver
    • Updating HTS
      • Stable Update
      • Beta Update
    • Apps
      • Discord
      • Telegram
    • Security
      • Two-factor Authentication (2FA)
    • Troubleshooting
      • Frequently Asked Questions
      • Two-factor Authentication (2FA)
      • Debugging & Logs
      • Exchange API
      • Invalid License
      • Lost Login Credentials
      • Orders Being Rejected
      • Unresponsive HTS UI
      • Using Safe Mode
    • Tips & Tricks
      • Keyboard Shortcuts
      • Migrating Your HTS
      • Never Logout
      • Reactivate Bots on Startup
      • Used Symbols
  • Trade Bots
    • Getting Started
    • General Settings
    • Trade Settings
    • Bot Charts
    • Indicators
      • Candlestick Patterns
        • Advance Block
        • Belt Hold
          • Belt Hold Bearish
          • Belt Hold Bullish
        • Break Away
          • Breakaway Bearish
          • Breakaway Bullish
        • Closing Marubozu
        • Concealing Baby Swallow
        • Counter Attack
          • Counter Attack Bullish
          • Counter Attack Bearish
        • Doji
        • Doji Star
        • Dragon Fly Doji
        • Engulfing Bearish
        • Engulfing Bullish
        • Gap Side-by-Side White Lines
        • Gravestone Doji
        • Hammer
        • Hanging Man
        • Harami
          • Harami Bearish
          • Harami Bullish
        • Harami Cross
          • Harami Cross Bearish
          • Harami Cross Bullish
        • High Wave
        • Hikkake
          • Hikkake Bearish
          • Hikkake Bullish
        • Homing Pigeon
        • Identical Three Crows
        • In Neck
        • Inverted Hammer
        • Kicking Bearish
        • Kicking Bullish
        • Ladder Bottom
        • Long Legged Doji
        • Long Line
        • Matching Low
        • Marubozu
          • Marubozu Bearish
          • Marubozu Bullish
        • On Neck
        • Rickshaw Man
        • Rise Fall Three Methods
        • Separating Lines
        • Shooting Star
        • Short Line
        • Simple Double Down Candle
        • Simple Double Up Candle
        • Simple Down Candle
        • Simple Up Candle
        • Spinning Top
        • Stalled Pattern
        • Stick Sandwich Down
        • Stick Sandwich Up
        • Tasuki Gap
        • Three Black Crows
        • Three Inside Down
        • Three Inside Up
        • Three Line Strike
          • Three Line Strike Bearish
          • Three Line Strike Bullish
        • Three Outside Down
        • Three Outside Up
        • Three Stars in North
        • Three Stars in South
        • Three White Soldiers
        • Tristar
        • Thrusting
        • Two Crows
      • Aroon
      • Aroon Oscillator
      • Awesome Oscillator
      • Balance of Power (BOP)
      • Blind Indicator
      • Bollinger Bands
      • Bollinger Bands %B
      • Bollinger Bands %W
      • Commodity Channel Index (CCI)
      • Chande Momentum Oscillator (CMO)
      • Connors RSI (CRSI)
      • Coppock Curve
      • Detrended Price Oscillator (DPO)
      • Donchian Channels
      • Double Exponential Moving Average (DEMA)
      • Dynamic Buy/Sell
      • Elliot Wave Prediction
      • Exponential Moving Average (EMA)
      • Fast RSI
      • Fibonacci Retracements
      • Fixed Buy/Sell
      • Fractals
      • Ichi Clouds
      • Kaufmans Adaptive Moving Average (KAMA)
      • Keltner Channels
      • Momentum
      • Money Flow Index
      • Moving Average Convergence Divergence (MACD)
      • Parabolic SAR
      • Percentage Price Oscillator
      • Rate Of Change (ROC)
      • Rate Of Change Percent (Alternative) (ROC)
      • Regression Slope Cross
      • Relative Strength Index (RSI)
      • Script Indicator (C#)
      • Simple Moving Average (SMA)
      • Slow RSI
      • Small Fractals
      • Stochastic Oscillator
      • StochRSI
      • Stochastic^2
      • Timed Blind Indicator
      • Tom Demark Sequential (TD)
      • Triangular Moving Average (TRIMA)
      • Triple Exponential Average (TRIX)
      • Triple Exponential Moving Average (TEMA)
      • Ultimate Oscillator
      • Weighted Moving Average (WMA)
      • Williams %R
    • Safeties
      • Stop Loss
        • Stop Loss
        • Stop Loss (Fixed)
        • Stop Loss (Dynamic)
        • Stop Loss (Trailing)
        • Close position below % loss
      • Take Profit
        • Take Profit
        • Take Profit (Fixed)
        • Take Profit (Dynamic)
        • Close position above x% profit
      • Roof-In
        • Roof-In
        • Roof-In (Fixed)
        • Roof-In (Dynamic)
        • Roof-In (Trailing)
      • Disable Bot
        • Deactivate bot after buy
        • Deactivate bot after sell
        • Deactivate after X Minutes
        • Deactivate after X Idle Trades
        • Deactivate After X Trades
      • Others
        • Close Before Settlement
        • Force Bot to stay Bought/Long
        • Force Bot to Stay Sold/Short
        • Price Dump
        • Price Pump
        • Reset last buy price
        • Reset last sell price
        • Trade On Trend Lines
      • Script
        • Script Safety (C#)
    • Insurances
      • Fee
        • Overcome Double The Fee Costs
        • Overcome Fee Costs
      • Script
        • Script Insurance (C#)
      • Others
        • Wait after order
      • Price
        • Never Buy Higher
        • Never Sell Lower
        • Absolute Price Change
        • Percentage Price Change
      • Profit/Loss
        • Be Profitable In X Trades
        • Disable on Losses
        • Stay Profitable
      • Trend
        • Trade Only Sideways
        • Trade Only Trending
  • Custom Bots
    • Accumulation Bot
    • Advanced Index Bot
    • C# Script Bot
    • Crypto Index Bot
    • Email Bot
      • Email provider guide
      • Tradingview alert guide
      • Troubleshooting
    • Flash Crash Bot
      • Setup guide
      • Profit calculation
      • Price spread examples
      • Full screen mode
      • Follow the trend
      • Deactivation safety
      • Order management
      • Amount calculator
    • Intelli Alice Bot
    • Inter-Exchange Arbitrage Bot
    • MadHatter Bot
      • Setup Guide
      • Full screen mode
    • Market Making Bot
    • Order Bot
      • Full screen mode
      • Template Manager
    • Ping Pong Bot
    • Scalper Bot
      • Replicating the Scalper Bot in a Trade Bot
    • Trend Lines Bot
    • Zone Recovery Bot
  • Bot Tools
    • Backtesting & Paper Trading
    • Bot Dashboard
    • Bot List
    • Bot Performance Analyzer
    • Haas Labs
  • Bot Extensions
    • Deactivate After Order
    • Deactivate On Safety
    • Flash Crash Bot Manager
    • Manage Bots On Email Alarm
    • Manage Bots On Price Alarm
    • Manage Bots On Indicator
    • Order Persistence
    • Panic Move
    • Trailing Stop
  • Asset Management
    • Portfolio
      • Settings
      • History Synchronisation
      • Dashboard
      • Asset Information
      • Asset Location
      • Asset Trends
      • Trade Profit
      • Trade Volume
      • Trade Frequency
      • Balance Per Day
      • Trade History
      • Deposit & Withdrawal History
      • Position History
    • External Wallet
  • Other Features
    • Advanced Orders
      • Stop Loss
      • Take Profit
      • Trailing Stop
    • Dashboard
      • Alarms
      • Bots Related
      • Bulk Widgets
      • Account Related
      • Calculators
      • Charts
      • Clocks
      • News & Media
      • Order book & Trades
      • Portfolio
      • Tickers
    • Indicator Scanner
    • Manual Trading
    • Marketview
    • Market Compare
    • Order Templates
    • Technical Analysis
  • Changelog
    • Stable Release
    • Beta Release
  • Other Resources
    • YouTube
    • Guides & Tutorials
    • Questions & Answers
    • Community Projects
  • Need Help?
    • Ask on Discord
    • Submit support ticket
Powered by GitBook
On this page
  • Backtesting
  • Backtest Method
  • Usage
  • Paper Trading / Simulated Accounts
  • Simulation Type
  • Why is this important?
  • Steps
  • Adding Funds to a Simulated Account
  • Removing Funds from a Simulated Account

Was this helpful?

  1. Bot Tools

Backtesting & Paper Trading

PreviousZone Recovery BotNextBot Dashboard

Last updated 5 years ago

Was this helpful?

Backtesting

HTS has a very powerful backtesting tool that allows our users to test Indicators, Insurances, and Safeties against historical data. The historical data can be anywhere from 6 hours to 32 weeks. This is useful to determine whether or not a specific trading strategy would have been profitable in the past.

Backtest Method

The platform supports 2 backtest methods. Close price based and orderbook (bid/ask) price based. This setting controls the price on which the orders are registered in a backtest. Orderbook based is a more realistic method because it will include the spread in the profit calculations.

Both settings are available in the Settings page under the Generals tab.

This feature assumes that:

  • Your order is always filled

  • Your order is always the first order in the orderbook

Outdated video but the principle remains the same

Usage

For trade bots, simply select the bot you wish to backtest and click the backtest button. To backtest our custom bots select the bot you wish to backtest and click on the "Options" button, then select backtest. Alternatively, the Bot Performance Analyzer can be utilized from the left panel menu.

Be sure to select the starting Position that you will be simulating for more accuracy.

Coin position will be set to Sold or No Position after the backtest has been completed.

If you do not use the Clear button after executing a backtest, the data from the backtest would be included when you start the bot.

Custom Bot Backtest Example

Trade Bot Backtest Example

If you get different results when backtesting, you need to make sure that your Position has not changed and clear the statistics after each backtest. This is a common question with HTS and it's a good practice to always clear statistics and make sure the Position is set up correctly.

Paper Trading / Simulated Accounts

Simulation Type

The simulation type influences the way the simulation engine considers an open order filled. There are 2 options

  • Price reached. When this type is selected an open buy order on $100 is filled when the price is $100 or higher.

  • Price breached. With this type, an open buy order on $100 is filled when the price is higher $100.

Why is this important?

In our simulation engine, the bots are trading in an "empty" order book. Which means you are always the only order on a price point. This is not always the case on the exchange, depending on the order book liquidity. The settings price reached might enable the bot to trade a lot more than in reality would happen. Visa vera, price breached might disable the bot from trading where, in reality, the bot would have traded.

This feature does NOT work with:

  • BitFinex Margin

Steps

  • Login to HTS

  • Click on Price Drivers & Accounts on the left hand pan

  • Click on 'Add New Account'

  • Type in Account Name (e.g. SIM_BINANCE - even if you don’t type it as such, the name will still come up with SIMULATED_)

  • Choose an Account Type (e.g. Spot Trading - Note that not all exchanges have Margin or Leverage Trading)

  • Choose the Platform (e.g. Binance - the selection will change based on what you choose in b)

  • Tick ‘Simulated Account’

  • Click ‘Save’

Adding Funds to a Simulated Account

  • Click on the Dollar Bill sign for the Simulated Account that you want to add funds toelect the 'Coin' that you want to add

  • Type in the Amount

  • Click 'Update'

  • Click 'Save

Removing Funds from a Simulated Account

  • Click on the Dollar Bill sign for the Simulated Account that you want to add funds to

  • Select the ‘Coin’ that you want to remove

  • Type in the Amount as 0

  • Click ‘Update’

  • Click ‘Save