You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This program web scrapes and then generates useful analysis of the Option Chain for the specified security from the NSE website.
6
7
It also continuously refreshes the Option Chain and visually displays the trend in various indicators and useful for Technical Analysis.
@@ -11,17 +12,29 @@ It also continuously refreshes the Option Chain and visually displays the trend
11
12
12
13
-Select your Index or Underlying Stock and Expiry Date on the website
13
14
14
-
-Run the program and enter the final URL from the browser and your preferred Strike Price
15
+
-Run the program and enter the current URL from the browser and your preferred Strike Price
16
+
17
+
-You can select all table data using Ctrl+A or select individual cells, rows and columns
18
+
19
+
-Then you can copy it using Ctrl+C or right click menu
20
+
21
+
-You can then paste it in any spreadsheet application (Tested with MS Excel and Google Sheets)
22
+
23
+
-You can also export all data to a .csv file from the menu
15
24
16
25
## Note:
17
26
18
27
-Required modules:
19
28
20
29
```
30
+
tkinter
31
+
tksheet
21
32
bs4
22
33
requests
23
34
pandas
24
-
time
35
+
datetime
36
+
webbrowser
37
+
csv
25
38
```
26
39
27
40
-Install missing modules using pip
@@ -34,23 +47,54 @@ time
34
47
35
48
-The program infinitely refreshes every 30 seconds
36
49
37
-
-New data is printed only if the server time has changed (To prevent printing duplicate data)
50
+
-New data is displayed only if the server time has increased (To prevent printing duplicate data)
51
+
52
+
-Red and Green colour indication for data based on trends
53
+
54
+
-Program title format: NSE-Option-Chain-Analyzer - {underlying_stock} - {expiry_date} - {strike_price}
55
+
56
+
-Stop and Start functionality
57
+
58
+
-Export to .csv file option
59
+
60
+
-About window with version and links for developer Github profile, README, license, releases and sources
38
61
39
62
-PEP 8 format
40
63
41
-
-Data printed:
64
+
-Table Data displayed:
42
65
43
66
Data | How it's calculated
44
67
--- | ---
45
68
Server Time | *Web Scraped*
46
69
Underlying Index Points | *Web Scraped*
47
-
Max Call Open Interest and corresponding Strike Price | Highest Call Open Interest (in lacs)
48
-
Max Put Open Interest and corresponding Strike Price | Highest Put Open Interest (in lacs)
49
-
Put Call Ratio(PCR) | Total Put Open Interest divided by Total Call Open Interest
50
70
Call Sum | Sum of the Change in Call Open Interests of the given Strike Price and the next two Strike Prices (in lacs)
51
71
Put Sum | Sum of the Change in Put Open Interests of the given Strike Price and the next two Strike Prices (in lacs)
52
72
Difference | Difference between the Call Sum and Put Sum
53
73
Call Boundary | Change in Call Open Interest for 2 Strike Prices above the given Strike Price. This is used to determine if Call writers are exiting their positions.
54
74
Put Boundary | Change in Put Open Interest for the given Strike Price. This is used to determine if Put writers are exiting their positions.
55
75
Call In The Money(ITM) | This indicates that bullish trend could continue and Value could cross 4 Strike Prices above given Strike Price. It's the ratio of Put writing and Call writing at the 4th Strike Price above the given Strike price.
56
76
Put In The Money(ITM) | This indicates that bearish trend could continue and Value could cross 2 Strike Prices below given Strike Price. It's the ratio of Call writing and Put writing at the 2nd Strike Price below the given Strike price.
77
+
78
+
-Label Data displayed:
79
+
80
+
Data | How it's calculated
81
+
--- | ---
82
+
Max Call Open Interest and Strike Price | Highest Call Open Interest (in lacs) and it's corresponding Strike Price
83
+
Max Put Open Interest and Strike Price | Highest Put Open Interest (in lacs) and it's corresponding Strike Price
84
+
Put Call Ratio(PCR) | Total Put Open Interest divided by Total Call Open Interest
85
+
Open Interest | This indicates if the latest OI data record indicates Bearish or Bullish signs near Indicated Strike Price. If the Call Sum is more than the Put Sum then the OI is considered Bearish as there is more Call writing than Puts. If the Put Sum is more than the Call sum then the OI Is considered Bullish as the Put writing exceeds the Call writing.
86
+
Call Exits | This indicates if the Call writers are exiting near given Strike Price in the latest OI data record. If the Call sum is < 0 or if the change in Call OI at the Call boundary (2 Strike Prices above the given Strike Price) is < 0, then Call writers are exiting their positions and the Bulls have a clear path.
87
+
Put Exits | This indicates if the Put writers are exiting near given Strike Price in the latest OI data record. If the Put sum is < 0 or if the change in Put OI at the Put boundary (the given Strike Price) is < 0, then Put writers are exiting their positions and the Bears have a clear path.
88
+
Call In The Money(ITM) | This indicates if the Call writers are also exiting far OTM strike prices (4 Strike Prices above the given Strike Price) showing extreme bullishness. Conditions are if the Call writers are exiting their far OTM positions and the Put writers are writing at the same Strike Price. This signal also changes to Yes if the change in Call OI at the far OTM is < 0.
89
+
Put In The Money(ITM) | This indicates if the Put writers are also exiting far OTM strike prices (2 Strike Prices below the given Strike Price) showing extreme bearishness. Conditions are if the Put writers are exiting their far OTM positions and the Call writers are writing at the same Strike Price. This signal also changes to Yes if the change in Put OI at the far OTM is < 0.
0 commit comments