Skip to content

Quick Start Python Bot Builder

Setting up your first trading bot with Python is straightforward, thanks to built-in functions and popular libraries that simplify the process. With advanced features like order types, position handling, and performance attribution, you can seamlessly transform your trading ideas into reality.

Let’s take a look at the process to setup your first bot -

Setting up your trading bot

Tradomate.one’s Dashboard gives an overview of how your bots are performing on the selected instrument in the given historical data range Bot Tile Details

To create a bot, click on create new bot on the dashboard page Create Bot Button

There are two ways in which a bot can be created on Tradomate.one - Python Bot Creator and Rule-based Logic Creator. Select Python bot creator and click on proceed Create New Bot

Once proceed is clicked, the creation process begins. You can choose any of the predefined templates provided to get started. Python Bot Templates

Once a template is selected, the next step is to search and select an asset. Instrument Selection

Select the preferred instrument that you wish to use for building the strategy on and voila! The bot is created! Bot Created Screen

Sample trading bot with a simple strategy

Tradomate.one’s bot builder page works like a cockpit for strategy formulation. Various components of the builder page include -

  1. The candlestick chart for the selected instrument Candlestick Chart
  2. Python bot editor for creating the strategy Python Code Editor
  3. Section to update bot details like the name and description along with setting inputs for Short Margins, Commissions, and Pyramiding Orders
  1. Section to understand the performance and returns of the trading strategy (Level1 Backtesting results) Backtest Level1

To enhance bot creation and facilitate user familiarity with the Python bot creator, Tradomate.one offers a pre-loaded sample strategy in the editor. Users can quickly start by either editing it to match their needs or running it directly to experience its full functionality!

Once the strategy is created, all is needed is to save and run the strategy to backtest and observe the results. Click on save and run button on the python code editor screen to start backtesting! Save Run Button

3 Layered Backtesting Approach: We have divided the backtesting results in three layers along with the Equity Curve and the candlestick chart showing all the orders placed. The Layer 1 backtesting metrics can be seen on the strategy page itself while users can deep-dive into a more detailed analysis using our other two in-depth Backtesting layers!

Once you are done tweaking your strategy, click on in-depth backtesting and proceed to look at the detailed backtesting analysis Tradomate.one has to offer! In-Depth Backtesting

Performance and Order Screen

Tradomate.one’s detailed backtesting page offers a unique view to analyze strategy across multiple KPIs clubbed under three layers -

Performance and returns analysis

Layer 1 focuses on performance and returns KPIs like profitability, draw-down, CAGR, etc Performance Returns Analysis

Risk and Ration analysis

Layer 2 focuses on risk-adjusted returns like Sharpe ratio, calmer ratio, beta, buy and hold returns, etc

Scenerio and senstivity analysis

Layer 3, exclusive to Tradomate, focuses on

  1. Simulating market conditions and understanding strategy performance for various trend scenarios (If the market is bullish/bearish/sideways), event scenarios (Pre-post elections, international conflicts like Isreal-Hamas, Ukraine-Russia, Covid), or any specific time-based scenarios (Current offering)
  2. Identifying and understanding the influence and impact of individual parameters used in the strategy on Layer 1 and Layer 2 KPIs (Coming Soon)
  3. Input optimization and Behavioural analysis on the strategy/market conditions (Coming Soon)

The Equity curve allows users to check how the strategy has been performing and let users benchmark against the Buy & Hold curve. Equity Curve

The order screen of Tradomate.one tracks the orders placed and the positions opened/closed by the strategy

After this brief introduction, you can now create your own basic trading bots. To fully utilize all features offered by Tradomate.one, it is highly recommended to continue studying this documentation.