Automated Trader for NSE software is for trading the signals provided by The Portfolio Trader's NSE Trades. The software is provided FREE OF COST.
The software comes with:
- Host of simplified features for trading with Interactive Brokers via IB Gateway api connectivity
- One click process for downloading, processing, placing and reporting of The Portfolio Trader's NSE Trades (activation license key required)
- Set and forget hands-free feature for performing the one-click process automatically everyday at a designated time [disabled feature]
Requirements:
- Windows operating systems ( XP or higher), LINUX and OS X/Mac OS via Mono
- .NET Environment (usually Win7 onwards the operating systems comes pre-loaded with .NET environment, Mono on Linux and MacOS)
- stable Internet connection (minimum speed 500kbps)
- Account with Interactive Brokers for trading
- Interactive Brokers Trader Workstation or Gateway
- Subscription to The Portfolio Trader's NSE Trades (required only if you wish to activate Auto Trade feature)
Download: Visit Automated Trader for NSE to download this software.
Note:
- Please use a valid email address while registering to download the software.
- License key will be generated and emailed to your email address. You will have to input this license key when prompted during the first run.
- The software is made available with single-computer license i.e. locked to one computer.
- In case you want to run this software on multiple computers increase the number of license's required during the registration process or contact [email protected] for assistance.
- This application should run fine on LINUX and OS X/Mac OS via Mono. However, I have not tested this thoroughly. Contact [email protected] if you want me to perform a thorough testing on LINUX or OS X/Mac OS
- Architecture
- Features
- How To
- Set Up
- Connect to IB gateway
- Subscribe to account information
- Close open positions
- Place or modify orders
- Cancel orders
- Check executions
- Auto Trade: Set Trade Settings
- Auto Trade: Set TPT Web Settings
- Auto Trade: Set Report Settings
- Auto Trade: One-Click Process
- Auto Trade: Orders & Log Diary
- Auto Trade: Report Format
- Support
- License
- Risk Disclosure Statement
Note: Table of Contents generated with DocToc
The architecture of this software is presented in the figure below:
- Connection
- Connection status indicator
- Connect to IB Gateway by setting IP address, log level, port number and client id including Connect and Disconnect buttons
- Log: Server logs, Error logs, Clear error log button
-
Account
- Account number indicator
- Last sync time indicator
- Subscribe, Unsubscribe and Clear Account Summary buttons
- Summary and Portfolio tabs
- Close Position by right-click on Portfolio
-
Order
- Ticker description and Order description (including extra Ticker attributes and Order attributes)
- What-If, Place Orders, GLOBAL CANCEL, Clear Orders buttons
- Next Order-ID in-sync with IB Gateway
- Open Orders and Order Status tab
- Cancel Order by right-click on Open Orders
- Settings
- All settings i.e. connection, ticker and order settings saved in an XML file (ibSet.xml)
- Every time the application loads, it will retrieve settings from the settings XML file
- In-Sync
- Always in-sync with IB Gateway i.e. whenever IB Gateway delivers data, all logs, account summary, portfolio changes, order status changes are updated
###Auto Trade
- Trade Settings
- Set paths for downloaded files
- Manage your trade details such as exchange, position size, margin, etc.
- The Portfolio Trader Login
- Your login details for The Portfolio Trader's NSE Trades
- Stored locally, in your computer, using strong encryption
- Report Settings
- Set your to and from email and its mail settings for report delivery
- Stored locally, in your computer, using strong encryption
- Process
- One-Click processing for downloading, order management, placing orders and report generation
-
Orders, Log Diary and Log
- List of day's orders and log diary of orders
- Process log to keep you up-to-date on the current process
- You will download a .zip from the download area
- Extract the .zip file to your chosen location, a new folder titled TPT Automated Trader will be created. For example, I have extracted the .zip to *D:* drive
- Double click on TradingAutomation.exe
- Enter license key when prompted
Note:
- License keys are emailed to your email address when you downloaded the software.
- It is not mandatory to input the license key. However, Auto Trade facility will be only be activated for valid licenses. In case of invalid license key, you will have access to all other facility i.e. Interactive Brokers Gateway interface, but not Auto Trade. You will have the option of activating Auto Trade using Activate Auto Trade button on the Connection tab.
- Log in to your IB account via IB Gateway or Trader Workstation
- Go to Connection tab
- Click Connect (usually the default setting provided will work, unless IB TWS/Gateway API settings are different to default setting)
Note:
- Instructions on to how to enable connectivity to IB Gateway or Trader Workstation
- IB Trader Workstation is a full-featured trading platform, it requires lots of memory and needs restart every 24 hours. Whereas IB Gateway is headless (no user-interface) connectivity to IB servers, it requires minimal memory and does not need restarts that often.
- To use with Automated Trader for NSE, I recommend IB Gateway because it is light-weight and does not need restarts
- Server and error logs provide a log of IB server requests and any error reports that IB Server reports or that arise due to connection with IB Server
- Go to Account tab
- Click Subscribe
- Go to Account --> Portfolio tab
- Right-click on the open position that you intend to close
- Click Close Position
- Go to Orders tab
- Click Place/Modify Order
- A pop dialog opens up where you can enter your order details and click Place/Modify Order
- Go to Orders --> Place/Modify Order
- Click Ext. Ticker Attr.
- Make changes and click Apply
- Go to Orders --> Place/Modify Order
- Click Ext. Order Attr.
- Make changes and click Apply
Note:
- For definition and description of each of the parameters in ticker attributes or order attributes please visit Interactive Brokers knowledge base
- Default settings work fine for day orders
- Every time Apply is clicked, the settings are saved automatically for future use
- GLOBAL CANCEL cancels all open orders in one go.
- Go to Orders --> Open Orders tab
- Right click on the order that you wish to cancel and select Cancel Order
- Go to Executions tab
- Click Request Executions
- In case, you want to retreive the execution report of a particular order, use the form provided to fill in the details before clicking Request Executions
Note:
- Interactive Brokers provide execution report for the day (24 hours) and the Report table is always in-sync with IB data. Therefore, in most cases you will rarely have to Request Executions as they are delivered to this software as and when IB reports it.
The data provided in this setting will be used by auto-trade for determining your security type, exchange, position size, etc.
- Go to Auto Trade tab
- Click Trade Settings
- Make changes as required and click Apply
- Default settings work well
- Definition of terms:
- File Path: Location or a directory where you want the downloaded files to be saved. If left empty, the default is the folder the application is running in.
- Exchange: NSE( default). The exchange this auto-trade will be working on
- Market Prefix: NSE_ (default)
- Currency: INR (default). The currency this auto-trade will be utilising
- Sec. Type: STK (default). The security type this auto-trade will be trading
- Leverage: 1.0 (default). The leverage/margin you wish to use.
- Allocation: 100% (default). The percentage of capital you wish to auto-trade with. For example, if you have INR 100K, and set Allocation as 60%, then only INR 60K will be used for auto-trade
- Position Size: 10% (default). The percentage of allocated capital per position
- Max. Amount: 2000000 (default). Any high number you wish, this is used to make sure no crazy orders are placed on the market
Note:
- Do not change settings under Trades Sheet Settings, Auto Trade will not work if you change this setting
- Every time Apply is clicked, the settings are saved for future use
The login and password provided here will be used to login to The Portfolio Trader's website.
- Go to Auto Trade tab
- Click tPT Web Settings
- You should enter your login and password that you use to access The Portfolio Trader's NSE Trades
- This data is stored locally on your computer using strong encryption for future use
The data provided here will be used for generating and saving reports, as well as emailing the report to your chosen email address
- Go to Auto Trade tab
- Click Report Settings
- Make changes as required and click Apply
- Definition of terms:
- From-Email Settings
- Email Address: An email address that you own from which you want to send email from
- Password: Password to the above email-address
- Custom Email Subject: A tag or an identifier that will be prefixed to the subject of the email for your identification at the other end. You can chose to leave this empty.
- Mail Settings: This setting will let your computer know how to send the email
- SMTP: SMTP address of your from-email address provider. The one shown in the figure below is from GMAIL
- Port: Port number settings for your from-email address provider. The one shown in the figure below is from GMAIL
- To-Email Settings
- To Email Address: An email address that you may/may not own to which you want the email with report attached to be sent to
- From-Email Settings
Note:
- To send an email, one needs an email address where the email originates (from-email) and a destination email (to-email)
- From-Email and To-Email could be the same email address
This will download the NSE Trades, check account information, process orders, manage orders, generate new orders to be placed, place orders to IB server, prepare a detailed report of this processing and email the report.
- Go toAuto Trade tab
- Click Process
- And that's it!
Note:
- The figure above shows the detailed process log
###Auto Trade: Orders & Log Diary Details of order management, daily orders and daily log (number of orders, file downloaded, etc.) will displayed here at the end of One-Click Process
To View details of order management and daily orders:
- Go to Auto Trade --> Orders
To View details of daily logs:
- Go to Auto Trade --> Log Diary
###Auto Trade: Report Format
The report that will generated and emailed would consist of:
- Summary: Summary of your account and placed orders
- Process Log: Process log of auto-trade
- Log Diary: Daily log of number of buy, sell, open positions and comments
- Orders: Buy, sell that have been placed via auto-trade and open orders
- The Portfolio Trader: The Portfolio Trader's orders for the day
- Portfolio: A snapshot of your portfolio at the time of processing
- API Error Logs: Error log from the IB server
Note:
- The reports are saved in the directory where this application resides under reports directory
- Reports are organised in MMYYYY folder with ddMMYYY.xlsx format, for example report for 19th February 2016 will be under reports/022016/ and the file name would be 19022016.xlsx
Contact [email protected] for assistance or if you have any queries
All the computer programs and software are supplied with the explicit understanding that they are to be used for personal purposes only. It is expressly prohibited to use the software by any organisation, firm, Limited Liability Company or Private Limited company.
By downloading or using the programs, you acknowledge acceptance of the following DISCLAIMER OF WARRANTY:DISCLAIMER OF WARRANTY
ALL THE COMPUTER PROGRAMS AND SOFTWARE ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. WE MAKE NO WARRANTIES, EXPRESS OR IMPLIED, THAT THEY ARE FREE OF ERROR, OR ARE CONSISTENT WITH ANY PARTICULAR STANDARD OF MERCHANTABILITY, OR THAT THEY WILL MEET YOUR REQUIREMENTS FOR ANY PARTICULAR APPLICATION. THEY SHOULD NOT BE RELIED ON FOR SOLVING A PROBLEM WHOSE INCORRECT SOLUTION COULD RESULT IN INJURY TO A PERSON OR LOSS OF PROPERTY. IF YOU DO USE THEM IN SUCH A MANNER, IT IS AT YOUR OWN RISK. THE AUTHOR AND PUBLISHER DISCLAIM ALL LIABILITY FOR DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES RESULTING FROM YOUR USE OF THE PROGRAMS.
###Interactive Brokers API C# API is provided by Interactive Brokers. Please refer to Interactive Brokers for any licensing terms and conditions of their API.
DISCLAIMER: Automated Trader for NSE software is not approved by Interactive Brokers or any of its affiliates.
###The Portfolio Trader Subscription to The Portfolio Trader's NSE Trades is provided by The Portfolio Trader. Please refer to The Portfolio Trader for terms and conditions.
THE RISK OF LOSS IN TRADING SECURITIES AND LEVERAGED INSTRUMENTS CAN BE SUBSTANTIAL. YOU SHOULD THEREFORE CAREFULLY CONSIDER YOUR OBJECTIVES, FINANCIAL SITUATION, NEEDS AND ANY OTHER PERSONAL CIRCUMSTANCES TO DETERMINE WHETHER SUCH TRADING IS SUITABLE FOR YOU.
HIGH LEVERAGE OF LEVERAGE IS OFTEN OBTAINABLE. YOU SHOULD BE AWARE THAT THE USE OF LEVERAGE CAN LEAD TO LARGE LOSSES AS WELL AS GAINS.
THIS BRIEF STATEMENT CANNOT DISCLOSE ALL OF THE RISKS AND OTHER SIGNIFICANT ASPECTS OF SECURITIES AND DERIVATIVES MARKETS. THEREFORE, YOU SHOULD CONSULT YOUR FINANCIAL ADVISOR OR ACCOUNTANT TO DETERMINE WHETHER TRADING IN SECURITES AND DERIVATIVES PRODUCTS IS APPROPRIATE FOR YOU IN LIGHT OF YOUR FINANCIAL CIRCUMSTANCES.
⏫ [Back to Top](#table-of-contents)