Signals Help Center
  • About Signals
  • Getting Started
    • Tutorials
      • Your First Strategy
        • Create a New Strategy
        • Define Variables
        • Define Setup Method
        • Define Register Actions Method
        • Backtest
        • Deploy Strategy & Start Receiving Signals
    • Dashboard
    • Strategies
      • Strategy Tools and Settings
        • Editor
        • Strategy Detail
        • Backtests
          • Backtest Detail
          • Deploying a Backtest
          • Delete a Backtest
        • Deployments
          • Deployment Detail
          • Edit About, Rules & Alternative Markets
          • Undeploy an Active Deployment
          • (Un)Publish a Deployment
          • (Un)Follow a Deployment
          • Delete a Deployment
        • Followings
          • Following Detail
          • Unfollow a Deployment
          • Delete Record of Following
      • Strategies Marketplace
        • Follow a Strategy
        • Publish Strategy
      • Strategy Details
      • Strategy Metrics
        • Initial Capital
        • Initial Capital (USDT)
        • Strategy Balance
        • Strategy Balance (USDT)
        • Total Performance
        • Total Performance (USDT)
      • Strategy Types
        • Single Market Strategy
        • Multi Market Strategy
    • Account
      • Change Plan
      • Change or Reset Password
      • Change Name, Username, or E-mail
  • Framework Documentation
    • Strategy
      • Methods
        • Setup()
          • DataMarketplace
          • IndicatorsMarketplace
        • RegisterActions()
        • Orders Management
          • CancelOrder()
          • CancelAllPendingOrders()
          • EnterLong()
          • EnterLongLimit()
          • EnterShort()
          • EnterLongStop()
          • EnterShortLimit()
          • ExitLong()
          • EnterShortStop()
          • ExitLongLimit()
          • ExitShort()
          • ExitShortLimit()
          • ExitLongStop()
          • ExitShortStop()
        • Risk Management
          • SetProfitTarget()
          • SetStopLoss()
      • Properties
        • Market
        • Markets
        • PendingOrders
        • Position
        • Time
      • Types
        • IOrder
        • PendingOrder
    • Data
    • Logs
  • Knowledge Base
    • Vocabulary
      • Base currency
      • Deployment
      • Following
      • Quote currency
      • Strategy
    • Technical Indicators
      • Oscillators
        • Average Directional Index (ADX)
        • Momentum Indicator (MOM)
        • Moving Average Convergence Divergence (MACD)
        • Relative Strength Index (RSI)
        • Stochastic RSI (STOCH RSI)
      • Volatility
        • Average True Range (ATR)
        • Bollinger Bands (BB)
      • Trend Analysis
        • Exponential Moving Average (EMA)
        • Simple Moving Average (SMA)
        • Volume-weighted Moving Average (VWMA)
        • Weighted Moving Average (WMA)
      • Volume
        • Accumulation/Distribution Line (ADL)
  • Have a question?
    • FAQ
    • Ask on the forums
    • Contact us
Powered by GitBook
On this page
  1. Getting Started
  2. Tutorials
  3. Your First Strategy

Backtest

Our new trading model is ready, so let’s test it on historical data!

PreviousDefine Register Actions MethodNextDeploy Strategy & Start Receiving Signals

Last updated 5 years ago

Now our new trading model is ready, let’s test it! We will perform a simulation using historical data. From the left column, we will select the parameters for our backtest.

First, we will set the duration of our backtest. Today is April 21st 2019, so let’s set the start date to one month ago, 21st March 2019. Then, we will set the which the strategy has available to begin with. Let’s leave the default value of 1000 USDT.

To simulate a real performance investment strategy, we can use the fee simulation for each buy and sell order. The structure of these fees is divided into two types — Maker fee and Taker fee. Maker Fee is a fee for transactions with LIMIT-type trading orders. Taker Fee is a fee transaction with MARKET or STOP orders. Both of these values are given as a percentage of the traded volume. Let’s leave the default values here too, which are set to standard fees of crypto exchanges.

We now have to select a market or, in other words, cryptocurrency pair on which we want to run our trading model. You will notice that, inside our trading model, we never used a statement defining that we want to trade any specific cryptocurrency pair. We designed Signals Framework so that you are now able to run your model over different assets by simply choosing them in the user interface. Let’s select BTC/USDT.

Now, we are ready to run a backtest. Just click the backtest button at the top right and your code will be compiled and the simulation will begin.

initial capital