Python utilities
This is Python Utility file V2.0 which can be used for deriving the indicators using Python and Upstox API.
You will be receving a file called util.py which has all the functions.
Copy the util.py file in to your folder and in any other python file in same location you can directly import it using from util import *.
In python console, you can just do
import util
help(util)
The above commands will give help document for the functions. It's straight forward to use any indicators.
For ex, just give
df = supertrend(df)
You will be passing a dataframe to the function and the function will return Supertrend value and Trend Direction within a second. (Depends on your system capability)
For details on how to use please refer the video -
Go through the terms and conditions before purchasing the file.
Topics Covered in this:
Excelling Trade Python Library | ||
Upstox | ||
S.No | Function Name | Description |
1 | Automatic Access Code Generation | Generates the access code automatically without manual intervention |
2 | Initial Setup | With the generated access code, download the master contract and initiate the Upstox class |
3 | Enabled Logging Functionality | |
4 | Automatically Finding the Trading day | Returns the trading day and it returns previous day if the day is holiday |
5 | Fetching historic OHLC Data | Fetch the historic OHLC data for given interval. Automatically split the dates into 7 days as per new restrictions imposed by Upstox |
6 | Getting Balance | Getting Balance |
7 | Getting Open Positions | Getting Open Positions |
8 | Displaying Open Positions and Balance with MTM | Display the open positions, Balance, MTM and also the profit/loss percentage of net margin |
9 | Placing an order | Wrapper function to place the order |
10 | Cancel an Order | Wrapper function to cancel the order |
11 | Cancel all the Open Orders | Wrapper function to cancel all the open orders |
12 | Modifying SL for the order | Wrapper function to modifying the stop loss of an order |
13 | Fetching Live OHLC Data of Scrip | Live data of Scrip |
14 | Fetching Order Details | Wrapper function to fetch order details |
15 | Getting Live Tick Data | Getting live tick data |
16 | Printing Open Positions and P/L % | |
17 | Close all positions | |
18 | Position Management | Now you can close all the open positions (Only OCO or CO orders) after achieving maximum profit or loss |
Indicators | ||
S.No | Studies | Description |
1 | Linear Regression Slope | |
2 | Average True Range (EMA, SMA, RMA Smoothing) | |
3 | SMA | |
4 | EMA | |
5 | RSI | |
6 | Momentum Indicator | |
7 | Price Rate of Change | |
8 | Super Trend | |
9 | Bollinger Band | |
10 | Ichimoku Cloud | |
11 | CCI | |
12 | vwap | |
13 | on balance volume | |
14 | MACD | |
15 | WMA | |
16 | Stochastic Oscillator | |
17 | Stochastic Momentum Index | |
18 | Chaikin Money Flow | |
19 | Chaikin Volatality | |
20 | Heiken Ashi Candle | |
21 | ADX | |
22 | Money Flow Index | |
23 | Parabolic SAR | |
24 | Accumulation/Distribution (Need Finetuning | |
25 | ATR Trailing Stops | |
26 | Price Volume Trend (Need Finetuning) | |
27 | Candle Pattern (Normal, Hammer, Shooting Star) |
Please read the terms and conditions before purchasing the file. By purchasing you are agreeing to the conditions mentioned below.
1. We are not providing any stock market tips with this product.
2. We don't provide support on the basic installation of python of any other required software.
3. Email Support with the SLA (Minimum response time) of 2 days will be provided for any queries post-purchase. This support will be as email response for the queries received and no remote support will be provided.
4. The file requires you to get the necessary API subscription and we don't provide support for the same. You can refer this video for details -
5. We are not responsible for any profits or losses occurred by using the file in trading.
6. Users are responsible for all the action he's doing using the file and it's his sole responsibility to verify the validity before entering the real trade.
7. We don't take any ownership if there is any issue with Upstox API or data mismatch in the Upstox API.
8. We have followed a standard set of definitions which is publicly available on the internet. It may or may not match with your trading systems. We don't hold the responsibility for the same.
9. We will not provide support if something breaks since the user has made some changes to the script.
10. Whenever you are reporting any issues, please report it with the log file for analysis.
11. To use the Upstox related functions, you should have a valid Upstox API subscription.
No Refunds Allowed.