Introduction

X-BOT is an advanced auto trading software that allows traders to automate their trading strategies on Fyers and MetaTrader 5 platforms.

Features

Webhook Orders for automated trading.

Place order by email alert.

Trade any Indian stocks or Forex market with Metatrader 5 platform.

Supports multiple trading strategies.

Fully automatic login process. No need to login everyday.

Installation

Download the latest version of X-BOT from here.

Extract the downloaded file xbot.zip to a folder, say for example XBOT in drive C. Locate the filename .env_sample and rename it to .env

Edit the .env file and make changes as per your trading credentials and api details. For more details, please go to configuration section.

Run the file xbot.exe as Administrator to start the app.

Configuration

To configure X-BOT, open the file .env and make the following changes:

EMAIL="youremail@gmail.com"

Enter your X-BOT license email. If you don't have one, signup here to get one.

FYERS_TRADE="True"

If "True", Fyers trading bot is enabled else "False" to disable.

APP_ID="XXXXXX"

This is the APP_ID from fyers api details.

APP_TYPE="100"

This is the APP_TYPE from fyers api details.

SECRET_KEY="XXXXXXX"

Change the SECRET_KEY to fyers api secret.

FY_ID="XXXXX"

This is your fyers login ID.

APP_ID_TYPE="2"

Get this value from fyers api details.

TOTP_KEY="XXXXX"

Two factor authentication code for automatic login.

PIN="1234"

Your fyers login PIN code.

REDIRECT_URI='https://myapi.fyers.in/'

Fyers redirect url. You can use the default provided url while creating api in fyers or specify your own.

MT5_PATH=""

Use "" to use default Metatrader 5 terminal if only one terminal is installed. If you have multiple Metatrader 5 termial installed for multiple broker, you need to specify the installation path for the Metatrader 5 exeutable file terminal64.exe. If the path is like "c:\programfiles\metatrade 5\terminal64.exe", you need specify using double backward slash like "c:\\programfiles\\metatrade 5\\terminal64.exe".

MT5_LOGIN = "12345678"

Your Metatrader 5 account login id.

MT5_PASSWORD = "Forex@123"

Your Metatrader 5 account password.

MT5_SERVER = "Exness-MT5Trial14"

Change this to your broker specified server name of your Metatrader 5 account.

MAGIC_NO = "0"

Specify MAGIC_NO in numeric value greater than 0 if you want to take manual trades also. This will seperate manual trades and X-BOT trades.

UV_HOST = "0.0.0.0"

Default value just works fine but if you want to bind webhook server to particular ip of your pc or server, you can change here.

UV_PORT = "80"

Default port is 80 which is default web port but you can customize as per your requirement but port should not be used by other application.

WEBHOOK_SECRET = "XXXXXXXX"

This will be the password while placing orders from any platform to verify your order.

TRADE_MODULE_API

This is for future development purpose, leave it in default value.

EMAIL_TRADE="True"

Set to "True" to enable trading by email alert else "False" to turn off email trading.

IMAP_SERVER = "imap.gmail.com"

Specify your email IMPAP server IP or addess. Please note, only IMPAP server supported, not POP mail server.

EMAIL_ACCOUNT = "youremail@gmail.com"

Login ID to authenticate email server. In most cases, it is the email id.

EMAIL_PASSWORD = "password"

Specify your email password here.

MONITOR_EMAILS = "noreply@tradingview.com"

Specify the sender email id from which order will trigger. If you want to take trades from multiple email, you can specify multiple emails by using commas. Example "noreply@tradingview.com, order@tradingview.com"

CHECK_INTERVAL = "2"

Email check every 2 seconds, you change the value above 2 seconds only, below 2 seconds is not recommended.

SHORT_STRADDLE = "True"

x-BOT has a built in intraday short straddle strategy for fyers. Set it to "True" to enable the strategy.

Please note, specify invalid value or data type will fail to start X-BOT.

Frequently Asked Questions

How do I reset my API key?

Go to settings and click on 'Reset API Key' to generate a new key.

Can I use X-BOT on multiple accounts?

No, each license is tied to a single trading account.