Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
srikar-kodakandla committed Jun 25, 2022
1 parent 68a8517 commit 1d58996
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 srikar kodakandla

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# fully automated nifty options trading

It is fully automated algo trading , It trades for you in Nifty options using Zerodha kite . You don't need to pay 4000 indian rupees monthly for kite api because this program uses selenium to access zerodha kite website

The Program follows supertrend strategy with adx to trade options , i rigorously backtested nifty in 5 min chart and find out the best supertrend values and adx values. when ever supertrend gives buy signal , This program sells options corresponding to the buy signal. it also checks all combinations of nifty options to sell , to see which combination gives more profits, there is a risk paramater in kite_strategy.py , where 50 is lowest possible risk , where it tries to sell options with 50 points difference (if nifty is at 14000 and supertrend gives buy signal then it tries to sell 14050PE and buys 14000PE) and if you choose 500 then , it tries to select options with 500 points difference (selecting 13500PE buy and 14000 PE sell). when the option goes above 95% of your profit , then it sells and selects next week options and trades with them.

![Screenshot from 2022-06-25 20-14-25](https://user-images.githubusercontent.com/46400867/175778598-47c9f645-084d-46e8-a4ae-5e90cee7b07a.png)

as shown in the screenshot , it sells corresponding options when ever a signal is triggered in supertrend indicator


you can use crontab to schedule to trade everyday , write the below code in "crontab -e"

>59 08 * * 1-5 DISPLAY=:10 screen -dmS srikartrade ipython3 kite_strategy.py # it trades by above explained strategy
>59 08 * * 1-5 DISPLAY=:10 screen -dmS check_database ipython3 check_database.py #to check if the live data is fetching from fyers api
>30 15 * * 1-5 screen -XS database quit # it stops trade at 3:30 PM as markets closes at that time

The program uses selenium to make trades in zerodha kite and it uses fyers account to get past data . Fyers provides free api for past data and trading.

This code is kept publicly in github for educational purpose only .I am not responsible with your profit and losses.

0 comments on commit 1d58996

Please sign in to comment.