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
- Added Dumping Entire Option Chain data to a .csv file. Issues: [#3](https://github.com/VarunS2002/Python-NSE-Option-Chain-Analyzer/issues/3) and [#4](https://github.com/VarunS2002/Python-NSE-Option-Chain-Analyzer/issues/4)
For doing technical analysis for option traders, the Option Chain is the most important tool for deciding entry and exit strategies.
9
-
The National Stock Exchange (NSE) has a website which displays the option chain for traders in near real-time. This program scrapes this data from the NSE site and then generates useful analysis of the Option Chain for the specified Security or Index from the NSE website.
9
+
The National Stock Exchange (NSE) has a website which displays the option chain for traders in near real-time. This program retrieves this data from the NSE site and then generates useful analysis of the Option Chain for the specified Index or Stock from the NSE website.
10
10
It also continuously refreshes the Option Chain and visually displays the trend in various indicators and useful for Technical Analysis.
11
11
Calculations are based on [Mr. Sameer Dharaskar's Course](http://advancesharetrading.com/).
12
12
@@ -38,13 +38,17 @@ Calculations are based on [Mr. Sameer Dharaskar's Course](http://advancesharetra
38
38
39
39
## Usage:
40
40
41
-
1.Select your Index or Security option and it's Expiry Date
41
+
1.Set Index Mode or Stock Mode
42
42
43
-
2. Enter your preferred Strike Price
43
+
2. Select your Index or Stock
44
+
45
+
3. Select it's Expiry Date
44
46
45
-
3. Enter the interval you want the program to refresh (Optional : Defaults to 1 minute)
47
+
4. Enter your preferred Strike Price
46
48
47
-
4. Click Start
49
+
5. Set the interval you want the program to refresh (Optional : Defaults to 1 minute)
50
+
51
+
6. Click Start
48
52
49
53
## Note:
50
54
@@ -58,8 +62,6 @@ Calculations are based on [Mr. Sameer Dharaskar's Course](http://advancesharetra
58
62
59
63
- If a ZeroDivisionError occurs or some data doesn't exist the value of the variable will be defaulted to 0
60
64
61
-
- All data is retrieved from https://www.nseindia.com/api/option-chain-indices?symbol={index_name}
62
-
63
65
## Dependencies:
64
66
65
67
-[auto-py-to-exe](https://pypi.org/project/auto-py-to-exe/) is used for compiling the program to a .exe file
@@ -87,7 +89,150 @@ Calculations are based on [Mr. Sameer Dharaskar's Course](http://advancesharetra
87
89
* BANKNIFTY
88
90
* FINNIFTY
89
91
90
-
- Supports multiple instances with different indices and strike prices selected
92
+
- Supported Stocks :
93
+
* AARTIIND
94
+
* ACC
95
+
* ADANIENT
96
+
* ADANIPORTS
97
+
* AMARAJABAT
98
+
* AMBUJACEM
99
+
* APOLLOHOSP
100
+
* APOLLOTYRE
101
+
* ASHOKLEY
102
+
* ASIANPAINT
103
+
* AUROPHARMA
104
+
* AXISBANK
105
+
* BAJAJ-AUTO
106
+
* BAJAJFINSV
107
+
* BAJFINANCE
108
+
* BALKRISIND
109
+
* BANDHANBNK
110
+
* BANKBARODA
111
+
* BATAINDIA
112
+
* BEL
113
+
* BERGEPAINT
114
+
* BHARATFORG
115
+
* BHARTIARTL
116
+
* BHEL
117
+
* BIOCON
118
+
* BOSCHLTD
119
+
* BPCL
120
+
* BRITANNIA
121
+
* CADILAHC
122
+
* CANBK
123
+
* CHOLAFIN
124
+
* CIPLA
125
+
* COALINDIA
126
+
* COFORGE
127
+
* COLPAL
128
+
* CONCOR
129
+
* CUMMINSIND
130
+
* DABUR
131
+
* DIVISLAB
132
+
* DLF
133
+
* DRREDDY
134
+
* EICHERMOT
135
+
* ESCORTS
136
+
* EXIDEIND
137
+
* FEDERALBNK
138
+
* GAIL
139
+
* GLENMARK
140
+
* GMRINFRA
141
+
* GODREJCP
142
+
* GODREJPROP
143
+
* GRASIM
144
+
* HAVELLS
145
+
* HCLTECH
146
+
* HDFC
147
+
* HDFCAMC
148
+
* HDFCBANK
149
+
* HDFCLIFE
150
+
* HEROMOTOCO
151
+
* HINDALCO
152
+
* HINDPETRO
153
+
* HINDUNILVR
154
+
* IBULHSGFIN
155
+
* ICICIBANK
156
+
* ICICIGI
157
+
* ICICIPRULI
158
+
* IDEA
159
+
* IDFCFIRSTB
160
+
* IGL
161
+
* INDIGO
162
+
* INDUSINDBK
163
+
* INDUSTOWER
164
+
* INFRATEL
165
+
* INFY
166
+
* IOC
167
+
* ITC
168
+
* JINDALSTEL
169
+
* JSWSTEEL
170
+
* JUBLFOOD
171
+
* KOTAKBANK
172
+
* L&TFH
173
+
* LALPATHLAB
174
+
* LICHSGFIN
175
+
* LT
176
+
* LUPIN
177
+
* M&M
178
+
* M&MFIN
179
+
* MANAPPURAM
180
+
* MARICO
181
+
* MARUTI
182
+
* MCDOWELL-N
183
+
* MFSL
184
+
* MGL
185
+
* MINDTREE
186
+
* MOTHERSUMI
187
+
* MRF
188
+
* MUTHOOTFIN
189
+
* NATIONALUM
190
+
* NAUKRI
191
+
* NESTLEIND
192
+
* NMDC
193
+
* NTPC
194
+
* ONGC
195
+
* PAGEIND
196
+
* PEL
197
+
* PETRONET
198
+
* PFC
199
+
* PIDILITIND
200
+
* PNB
201
+
* POWERGRID
202
+
* PVR
203
+
* RAMCOCEM
204
+
* RBLBANK
205
+
* RECLTD
206
+
* RELIANCE
207
+
* SAIL
208
+
* SBILIFE
209
+
* SBIN
210
+
* SHREECEM
211
+
* SIEMENS
212
+
* SRF
213
+
* SRTRANSFIN
214
+
* SUNPHARMA
215
+
* SUNTV
216
+
* TATACHEM
217
+
* TATACONSUM
218
+
* TATAMOTORS
219
+
* TATAPOWER
220
+
* TATASTEEL
221
+
* TCS
222
+
* TECHM
223
+
* TITAN
224
+
* TORNTPHARM
225
+
* TORNTPOWER
226
+
* TVSMOTOR
227
+
* UBL
228
+
* ULTRACEMCO
229
+
* UPL
230
+
* VEDL
231
+
* VOLTAS
232
+
* WIPRO
233
+
* ZEEL
234
+
235
+
- Supports multiple instances with different indices/stocks and/or strike prices selected
91
236
92
237
- Red and Green colour indication for data based on trends
93
238
@@ -100,7 +245,7 @@ Calculations are based on [Mr. Sameer Dharaskar's Course](http://advancesharetra
100
245
* Call ITM: Yes/No
101
246
* Put ITM: Yes/No
102
247
103
-
- Program title format: `NSE-Option-Chain-Analyzer - {index} - {expiry_date} - {strike_price}`
248
+
- Program title format: `NSE-Option-Chain-Analyzer - {index/stock} - {expiry_date} - {strike_price}`
104
249
105
250
- Stop and Start manually
106
251
@@ -123,7 +268,9 @@ Calculations are based on [Mr. Sameer Dharaskar's Course](http://advancesharetra
123
268
- Debug Logging
124
269
125
270
- Saves certain settings in a configuration file for subsequent runs. Saved Settings:
271
+
* Index/Stock Mode
126
272
* Selected Index
273
+
* Selected Stock
127
274
* Refresh Interval
128
275
* Live Export
129
276
* Notifications
@@ -142,20 +289,20 @@ Data | Description
142
289
--- | ---
143
290
Server Time | *Web Scraped*. Indicates last data update time by NSE server
144
291
Value | *Web Scraped*. Underlying Instrument Value indicates the value of the underlying Security or Index
145
-
Call Sum | Calculated. Sum of the Changes in Call Open Interest contracts of the given Strike Price and the next immediate two Strike Prices (In Thousands)
146
-
Put Sum | Calculated. Sum of the Change in Put Open Interest contracts of the given Strike Price and the next two Strike Prices (In Thousands)
292
+
Call Sum | Calculated. Sum of the Changes in Call Open Interest contracts of the given Strike Price and the next immediate two Strike Prices (In Thousands for Index Mode and Tens for Stock Mode)
293
+
Put Sum | Calculated. Sum of the Change in Put Open Interest contracts of the given Strike Price and the next two Strike Prices (In Thousands for Index Mode and Tens for Stock Mode)
147
294
Difference | Calculated. Difference between the Call Sum and Put Sum. If its very -ve its bullish, if its very +ve then its bearish else its a sideways session.
148
-
Call Boundary | Change in Call Open Interest contracts for 2 Strike Prices above the given Strike Price. This is used to determine if Call writers are taking new positions (Bearish) or exiting their positions (Bullish). (In Thousands)
149
-
Put Boundary | Change in Put Open Interest for the given Strike Price. This is used to determine if Put writers are taking new positions (Bullish) or exiting their positions(Bearish). (In Thousands)
295
+
Call Boundary | Change in Call Open Interest contracts for 2 Strike Prices above the given Strike Price. This is used to determine if Call writers are taking new positions (Bearish) or exiting their positions (Bullish). (In Thousands for Index Mode and Tens for Stock Mode)
296
+
Put Boundary | Change in Put Open Interest for the given Strike Price. This is used to determine if Put writers are taking new positions (Bullish) or exiting their positions(Bearish). (In Thousands for Index Mode and Tens for Stock Mode)
150
297
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 calculated as the ratio of Put writing and Call writing at the 4th Strike Price above the given Strike price. If the absolute ratio > 1.5 then its bullish sign.
151
298
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 calculated as the ratio of Call writing and Put writing at the 2nd Strike Price below the given Strike price. If the absolute ratio > 1.5 then its bearish sign.
152
299
153
300
>#### Label Data:
154
301
155
302
Data | Description
156
303
--- | ---
157
-
Open Interest Upper Boundary | Highest and 2nd Highest(highest in OI boundary range) Call Open Interest contracts (in thousands) and their corresponding Strike Prices
158
-
Open Interest Lower Boundary | Highest and 2nd Highest(highest in OI boundary range) Put Open Interest contracts (in thousands) and their corresponding Strike Prices
304
+
Open Interest Upper Boundary | Highest and 2nd Highest(highest in OI boundary range) Call Open Interest contracts (In Thousands for Index Mode and Tens for Stock Mode) and their corresponding Strike Prices
305
+
Open Interest Lower Boundary | Highest and 2nd Highest(highest in OI boundary range) Put Open Interest contracts (In Thousands for Index Mode and Tens for Stock Mode) and their corresponding Strike Prices
159
306
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.
160
307
Put Call Ratio(PCR) | Sum Total of Put Open Interest contracts divided by Sum Total of Call Open Interest contracts
161
308
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.
@@ -168,11 +315,15 @@ Put In The Money(ITM) | This indicates if the Put writers are also exiting far O
0 commit comments