Showing posts with label Tech-News. Show all posts
Showing posts with label Tech-News. Show all posts

Saturday, 5 August 2023

How to Pull Data From NSE Stock Exchange in Excel & Make advance Option Chain in Shortcut Method!! NIfty50!!



NSE:: National Stock Exchange of India Limited is one of the leading Stock Exchange in India, based in Mumbai. NSE is under the ownership of various financial institutions such as banks and insurances.

It’s the world’s largest derivatives exchange by number of contracts traded and the third largest in cash equities by number of trades for year 2022. It is one of the largest stock exchanges in the world by market capitalization.

 NSE provide data related its all listed options Realtime basis daily on its website for traders to calculate flow of market (i.e- Open Interest, Change in OI, LTP, IV, etc) of both Call & Put Side. Many of new traders invest directly without any deep calculation and without knowing uses of Realtime data provided by NSE to calculate the risk of investment and get losses. Today we will learn about how to use that live data and Sync it with Excel Sheet to make strategies for investment and trading in right way to avoid loses. It help to understand current position of market and where it will move in upcoming hours by calculating OI, COI, and all terms. It not right 10 out of 10 but will help you a lot to reduce your loses.

Requirements:  Microsoft Excel 2016 or later version

                 Lit bit knowledge of HTML, IE to find Cookies and links

                 Lit bit knowledge of Excel & Macros.

                 Rest you leave on this post 😊 just follow all steps carefully and don’t miss anything.

 

Step 1:  Go to NSE Website (https://www.nseindia.com) then go to Derivatives à Options à Nifty50 à Option Chain then right click on webpage.

Then




 

Copy Cookie and Goto Excel.

Step 2: Make 3 Sheets in Excel Workbook. Name: Cookies, Nifty50, Source.

Step 3: In Cookies Sheet, Name Cell A2 as Cookies and Paste Cookie in A3 cell.


Step 4: Go to Sheet Source, then click on Data Tab then Goto New Query à From Other Source à Blank Query.

Step 5: Rename it with ExpiryDate. Then right click on query à Advance Editor, Clear the values showing there and paste as I mentioned below.


let

    Source = Json.Document(Web.Contents("https://www.nseindia.com/api/option-chain-indices?symbol=NIFTY", [Headers=[Referer="https://www.nseindia.com/get-quotes/derivatives?symbol=NIFTY", #"User-Agent"="Mozilla/4.0 (compatible;MSIE6.0; Windows NT5.1", Accept="text/html; charset=utf-8", #"Accept-Language"="en-us,en;q=0.9", #"Accept-Encoding"="gzip,deflate", Cookie="Cookie copied from website"]])),

    records = Source[records],

    expiryDates = records[expiryDates],

    #"Converted to Table" = Table.FromList(expiryDates, Splitter.SplitByNothing(), null, null, ExtraValues.Error),

    #"Renamed Columns" = Table.RenameColumns(#"Converted to Table",{{"Column1", "Expiry"}})

in

    #"Renamed Columns"

 

Step 6: Close and Load to Cell D3 of  sheet “Source”.

Step 7: Repeat step 4 and 5, rename query with StrikePrice then Close & load to Cell A3 of Sheet “Source”

let

    Source = Json.Document(Web.Contents("https://www.nseindia.com/api/option-chain-indices?symbol=NIFTY", [Headers=[Referer="https://www.nseindia.com/get-quotes/derivatives?symbol=NIFTY", #"User-Agent"="Mozilla/4.0 (compatible;MSIE6.0; Windows NT5.1", Accept="text/html; charset=utf-8", #"Accept-Language"="en-us,en;q=0.9", #"Accept-Encoding"="gzip,deflate", Cookie="Cookie"]])),

    records = Source[records],

    #"Converted to Table" = Record.ToTable(records),

    #"Filtered Rows" = Table.SelectRows(#"Converted to Table", each ([Name] = "timestamp" or [Name] = "underlyingValue")),

    #"Transposed Table" = Table.Transpose(#"Filtered Rows"),

    #"Promoted Headers" = Table.PromoteHeaders(#"Transposed Table", [PromoteAllScalars=true]),

    #"Changed Type" = Table.TransformColumnTypes(#"Promoted Headers",{{"timestamp", type datetime}, {"underlyingValue", type number}}),

    #"Renamed Columns" = Table.RenameColumns(#"Changed Type",{{"timestamp", "TimeStamp"}, {"underlyingValue", "StrikePrice"}})

in

    #"Renamed Columns"




Step 8:  Repeat Step 4 and 5, rename query with Nifty50 then close & load to Cell F3 of sheet “Source”

let

 

    Source = Json.Document(Web.Contents("https://www.nseindia.com/api/option-chain-indices?symbol=NIFTY", [Headers=[#"Accept-Encoding"="gzip, deflate", #"Accept-Language"="en-US,en", #"User-Agent"="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36 OPR/68.0.3618.206", Cookie="Cookie"]])),

 

    records = Source[records],

 

    data = records[data],

 

    #"Converted to Table" = Table.FromList(data, Splitter.SplitByNothing(), null, null, ExtraValues.Error),

 

    #"Expanded Column1" = Table.ExpandRecordColumn(#"Converted to Table", "Column1", {"strikePrice", "expiryDate", "CE", "PE"}, {"strikePrice", "expiryDate", "CE", "PE"})

 

in

#"Expanded Column1"

Expend CE, PE with selecting “OI, OICh, IV, LTP, Change”

 








Till now we have completed our work almost in sheet “Cookies” and “Source”, now we will work on main sheet named as “Nifty50”

Step: 9 In Sheet “Nifty50” we will special paste(link)  values from Source sheet A4:B4 then format C4 as general.


Step 10: In Sheet “Nifty50” cell F3 à Data Validation à In source select list of Expiry then OK.

 





Step 11: Prepare Table format as shown in image below (remember that keep position of table same as shown in image to avoid any problem during paste of formula



(Note: Values and formula will be placed from cell no. 7 in table.)

Step 12: In Cell G16 Paste formula “=MROUND(C3,50)

Step 13: in upper cells use “=G16-50” and in lower cells use “=G16+50”

Step 14: Copy Formula in F7

=SUMIFS(NiftyData[CE.change],NiftyData[expiryDate],Nifty50!F$3,NiftyData[strikePrice],Nifty50!G7)

Step 15: Copy Formula in E7:

=SUMIFS(NiftyData[CE.impliedVolatility],NiftyData[expiryDate],Nifty50!F$3,NiftyData[strikePrice],Nifty50!G7)

Step 16: Copy Formula in D7:

=SUMIFS(NiftyData[CE.changeinOpenInterest],NiftyData[expiryDate],Nifty50!F$3,NiftyData[strikePrice],Nifty50!G7)

Step 17: Copy Formula in C7:

=SUMIFS(NiftyData[CE.openInterest],NiftyData[expiryDate],Nifty50!F$3,NiftyData[strikePrice],Nifty50!G7)

Step 18: Copy Formula in B7:

=SUMIFS(NiftyData[CE.lastPrice],NiftyData[expiryDate],Nifty50!F$3,NiftyData[strikePrice],Nifty50!G7)

 Step 19: Copy Formula in A7    

 =IF(AND(D7>0,OR(F7>0)),"Call Buy","-")

Step 20: Copy Formula in H7:

=SUMIFS(NiftyData[PE.impliedVolatility],NiftyData[expiryDate],Nifty50!F$3,NiftyData[strikePrice],Nifty50!G7)

Step 21: Copy Formula in I7:

=SUMIFS(NiftyData[PE.impliedVolatility],NiftyData[expiryDate],Nifty50!F$3,NiftyData[strikePrice],Nifty50!G7)

Step 22: Copy Formula in J7:

=SUMIFS(NiftyData[PE.changeinOpenInterest],NiftyData[expiryDate],Nifty50!F$3,NiftyData[strikePrice],Nifty50!G7)

Step 23: Copy Formula in K7:

=SUMIFS(NiftyData[PE.openInterest],NiftyData[expiryDate],Nifty50!F$3,NiftyData[strikePrice],Nifty50!G7)

Step 24: Copy Formula in L7:

=SUMIFS(NiftyData[PE.lastPrice],NiftyData[expiryDate],Nifty50!F$3,NiftyData[strikePrice],Nifty50!G7)

Step 25: Copy Formula in M7:

=IF(AND(H7>0,OR(J7>0)),"Put Buy","-")

Now drag all formula to complete table as show in below image


Step 25: by conditional formatting make it more usable like shown below

Now we will create 3 buttons and will assign macros to them.


To create Macros just copy & Paste below code:


Public t As Date

 Function CookieN(URL)

With CreateObject("WinHttp.WinHttpRequest.5.1")

    .Open "GET", URL, False

    .setRequestHeader "User-Agent", "Mozilla/4.0 (Compatible;MSIE 6.0;Windows NT 5.1)"

    .setRequestHeader "Accept", "text/html;charset=utf-8"

    .setRequestHeader "Accept-Language", "en-us,en;q=0.9"

    .setRequestHeader "Accept-Encoding", "gzip,deflate"

    .send

    strCookie = .getAllResponseHeaders

    strCookie = Split(strCookie, vbCrLf)

    CookieN = Trim(Split(Split(strCookie(5), ";")(0), ":")(1)) & "," & Trim(Split(Split(strCookie(6), ";")(0), ":")(1))

    End With

      

End Function

 

Sub Nifty50()

Dim C As String

C = (CookieN("https://www.nseindia.com/get-quotes/derivatives?symbol=NIFTY"))

ThisWorkbook.Sheets("Cookies").Range("A3").Value = C

End Sub

Sub GetData()

Call Nifty50

ThisWorkbook.RefreshAll

End Sub

Sub Ref()

Call GetData

t = Now + TimeValue("00:01:00")

Application.OnTime t, "Ref", Schedule:=True

End Sub

Sub Stp()

On Error Resume Next

Application.OnTime t, "Ref", Schedule:=False

End Sub


Final Result:




(Important: Save Sheet in macros enable workbook)

 

Thanks😊

Saturday, 26 November 2016

Cut Computer Cost Up-to 70%!!! Use N-computing

Disclaimer: This article is for only educational purpose. I am not responsible for any  loss/Profit occur to anyone in any manner.

Cut Computer Cost Up-to 70%!!! Use Thin Clint--Desktop Virtualization:




Getting yourself upgraded in terms of technology is not worthwhile every time in technical terms, as in general the criteria behind up gradation and using up of latest technology can be either status symbol or need of an hour too, which every one tries to fulfill without any proper technical know how. A very common example of this is, in field of Computing where we always try to buy something new or something costly or we look for the latest trend and without getting any deep knowledge we just pay more. If we need more then one Computer then again we go for a whole new set up with lots of price. Instead to play blind here i would like to tell you about that technology which can cut your new computer cost up-to 70% and will help you to save electricity resources for same. 

Thin-Clint-PC, A useful computing technique to save money and electricity resources to full fill our daily useful and common task. Thin Clint is a Desktop Virtualization technique used to share already having computer resource to make a whole new computer environment for new user with facility of general computing.

Some Pros to understand better the use of Thin Client PC-

1. Ultra Low power Consumption.
2. Up to 70 % economically efficient.
3. Need Less space and money to set-up a complete new PC.
4. Quick Boot-up time.
5. Reduce expenses for maintenance.

As i mentioned , setup of this N-client is much easy. Here i m explaining the process of setup N-client "QHM6051PS2"

Step-1 : Power on the Device and connect all peripherals to it i.e: Monitor, Mouse, Keyboard, Speakers.

Step-2:  Connect Your thin client with your main machine via Cross-over LAN cable and be sure about physical connectivity of both devices.


Step-3: In network properties of N-client , click on use Static IP address then assign same class IP address to device with Gateway.


Step-4: In terminal Server TS connection list , click on TS-2 and Edit as mentioned below.


Step-5:  Here mention Username of your main machine and in place of Domain, keep your server name as it is.


Step-6: OK then Connect.

Here is Your all new virtual desktop ready to work as new computer.


Wednesday, 4 November 2015

Way to Slipstream SATA driver to Windows Xp....Help!! Install WIndow Xp in Hp Laptop!!!

How to Slipstream SATA driver into Window Xp.....??

In laptops of HP which one has main-board of series 5 or greater than this,  You can not install Windows Xp from CD or Removable drive without slipstream SATA/AHCI driver into installation media because without it your installation media will not find any hard drive in your laptop. Now , as we are more habitual for Window Xp so we spent a lot of time with Xp so I would like to show you the way to be able to install your most favorable operating system window Xp in your Hp's Laptop.

Required: 

1. Original Windows Xp installation disk.
2.  n-Lite  
3. Intel Mobile Express Chip-set family SATA driver . (Google)
4. CPU-Z
5. Novicorp's  WinToflash to make bootable Xp's installation removable drive.

now follow the procedure explained below.

1. --- Copy the original Windows Xp installation disk somewhere in your hard drive, where ever you want to save.

2. --- Execute Cpu-z to check information about your laptops hardware as shown below in picture. i.e in below picture its showing that my laptop has Intel 7 series main board.



3. --- Now, firstly Google for SATA driver for your hardware.


4. --- Execute n-lite and follow the steps showing in pictures below.


Click on Next button...


 Browse location of content copied from installation disk in your hard drive and click on next...



Click on Drivers button, the dot indication will be green after selected....


Click on Insert then choose Single driver and then click on next....



Browse SATA driver downloaded for your hardware and choose iaAHCI.inf  ..... 



In textmode driver choose right driver according your hardware, as i selected Intel 7 series Chipset Family SATA AHCI Controler and click next.....


Click Next....


Click Next...


Click Finish....

Now you have completed the process to slipstream driver into installation package.

5. --- Now make an bootable pen-drive to install Xp on your laptop. Here I would like to suggest 3rd party tool i.e Novicorp's WintoFlash software.


This tutorial  is for only educational purpose. I am not responsible for any damage occur  to your hardware or any loss occur to anyone in any manner. Suggested third party soft-wares from personal experience and there is no advertising in any manner.

Wednesday, 23 September 2015

Top 3 alternatives of carrying removable drive in pocket...!!!

Top 3 alternatives of carrying removable drive in pocket...!!!


Carrying Pen drive or Removable disk everywhere in pocket means carrying tech-viruses in pocket to infect PC to PC. This fashion has both pros and con. The pros of using external devices as a storage solution far outweigh its cons. Main  advantage of this kind of storage device is its portability being a separate device from your PCs. So, you can use it anywhere you are without the need to bring your desktop PCs with you.
With the increasing use of Cloud storage, pen drives and other storage mediums are less preferred. In today’s scenario with high internet usage affording internet connections, smart phones and carrying data is not so difficult.
Because of the recent technological development, in order to carry large data we need not to carry any physical storage device with us, the only requirement is a Smartphone and an active data connection. This is the best and most preferred alternative which is commonly known as cloud –storage. Cloud Storage is type of digital storage at hosting companies’ server. Which is more secure safer and far away from the risk of stolen and infection from viruses. Some examples of cloud storage are listed below...

1. Google Drive
2. One Drive

3. Dropbox

Above mentioned alternative are available on both desktop and mobile platform. To use this in your smart phones you need to install their app from app stores. After installing app and registration you will be able to logon to access your data safely. In windows platform of desktop you can install its application to directly access them from your explorer as drive.

Process to Set-up and Pros are explained below:

Google Drive:  Google drive is freely available up-to a limit of 15 GB for everyone, the thing you need to avail it is an account on Google.


---> Click to avail:  Google-Drive <---



then, Install Google Drive on your Smartphone and computer to access and to keep your file safe with it.
                 


One Drive: One drive is also freely available up-to a limit of 15 GB for everyone, the thing you need to avail it is an account on Microsoft.


---> Click to avail:  One-drive <---



then, Install One drive on your smartphone and you can access via. office 360, directly from explorer in window 10.



Drop-Box:  Drop-Box provide 2 GB free storage @ time of registration to users. The thing you need to avail it an account on Drop-Box.


---> Click to avail:   Drop-Box <---



lateron you can access services from your smartphone, computer, web browser. Its avail for Android, IOS, Mac Os, Windows.

except above named services there are more options are available like:  SugarSync, I-cloud, SUN, Source, Amazon Web Services, IBM, 3tera, OpenD, EMC, vmware etc ....etc...aprox 100 companies.

Note: Above mentioned name are only for explanation. there is no advertising in any manner. This is based on personal experience and its only for awareness.  Companies policies may change according them, Read carefully before use. I am not responsible for any controversies. 

Saturday, 9 May 2015

How to Program for using Universal remote of DTH's with Your TV Set?

How to Program for using Universal remote of DTH's with Your TV Set?




Tata Sky/Airtel Digital TV offering Universal Remote with their Set-Top box to get rid-off from the need to hold two remotes in hand to operate TV & STB. Now, with the help of this Universal Remote we can operate both with single remote in hand but to avail this facility firstly we need to configure Universal remote with our TV remote.

Note: Airtel Digital TV/ Tata Sky both allow to program following only 5 buttons listed below

1. Power On/Off
2. Volume Up
3. Volume Down
4. Mute
5. TV Sources AV/HDMI/USB

Steps to program Universal-Remote are:

1. Press Button (OK) in Airtel Digital TV's Remote / Button (Select) in Tata Sky Universal Remote +     Button (2) simultaneously to start remote in  learning mode. LED on Remote will blink twice to         indicate that Remote in now in learning mode.

2. Now Press Volume Up button on STB Remote and place the universal remote and your TV remote     in front of each other i.e. their signal LED should face each other. Make sure the distance between     both remote LED must be between 5 cm. and then press Volume Up button of TV Remote. LED         again will blink twice to show that button is programmed successfully

3. If LED on remote blink 4 time then repeat steps 1,2 again until you get success.

4. Repeat steps 2 for all five button one by one according to your need.

5. At last, Press again Button(OK) / Button (Select) to save settings.

now u can simply operate both TV/ STB with single remote  to operate both TV/STB.

Thursday, 16 April 2015

Is Tech-Giant SAMSUNG moving away from Android...?

Samsung Launched New Z1 with Tizen 






The South Korean consumer electronics giant has been banking on Tizen to reduce its reliance on Google's Android operating system, which powers most of its smartphones and almost all of its tablets. Samsung along with the Tizen Association, Intel, and the Linux Foundation has been working on Tizen since last few years, and the OS saw its first release in early 2012.


Tizen advantage is that Samsung is boasting  being a lightweight platform that offers a fast boot time, quick access to apps, and fast browser performance using compression.


Featuring a 4-inch WVGA (480x800 pixels) PLS display, the Samsung Z1 runs Tizen 2.3 on a 1.2GHz dual core processor coupled with 768MB of RAM. It sports a 3.1-megapixel rear camera; a VGA (0.3-megapixel) front-facing camera; 4GB of inbuilt storage expandable via microSD card (up to 64GB), and a 1500mAh battery that is rated to deliver up to 7 hours of video playback, and 8 hours of talk time. The company is also introduced an 'ultra power saving mode' in this.

You can watch it in recent ad based on this with a jingle "Charging-Charging---Charging-Charging"

So, Android based Samsung Phones will soon  disappear from market...?

Wednesday, 15 April 2015

How does Tap & Share (NFC) works in Smartphones

How does Tap & Share (NFC) works in Smartphones:

Tap & Share shares some pieces of information in some Smartphones like Photos, Contacts, Songs, Videos and etc...hand has become a trend in world of Mobile phones, which was earlier common in form of Bluetooth sharing. You can see it at top of the list of hardware specifications in many smartphones namely Nokia, Samsung, Apple, BB and much more....



I'll try to explain here that how does the Technology NFC (Near field Communication) works behind Tap & Share. How much it is useful, it's advantage/disadvantage and about its future aspects is daily digital life.

As it's name explain about itself, NFC (Near field Communication)  works in between very short range up-to 10 Cm only. The both compatible devices should be in proximity to complete tasks of sharing. A full NFC device can work in basically 3 modes, in which "pear to peer" mode is used by smartphones to share data between the short range. In Peer to Peer mode a phone will work in both stats i.e active state when sending data and passive state when receiving data by other device.

NFC works by establish a Radio Communication at Radio Frequency ISM band 13.56 M.Hz. NFC use Electromagnetic induction (Law of  Michael Faraday - Magnetic flux change in primary coil induce current in secondary coil.). NFC enabled devices use loop antenna, In the active stat when device send data with sharing make a RF field to induce current in device in its near field to complete its task.




Modified use of the same technology Electromagnetic Induction is common in "Induction Cooker" and "Wireless Charging of Battery of Smartphones"  in our daily digital life. I'll further more explain this both common widgets Induction cooker and Wireless Charging in my next posts.

Below are some Advantage/disadvantage and its compression with Bluetooth technology....

  • In Bluetooth Technology, both devices should be self powered, but in NFC only Active device use power to read/write data in near field device.
  • NFC work in network type Peer to Peer while Bluetooth works as WPAN.
  • Range of Bluetooth is wider than NFC. In Bluetooth range is about 100 Meter in class-1 device while in NFC its about up to 10 Cm.
  • NFC works on frequency of 13.56 M.Hz while Bluetooth works in (2.4 G.Hz - 5 G. Hz) range.
  • NFC use less power consumption.
  • Bit rate of NFC 424 Kbit/s while Bluetooth's 2.1 Mbit/s
  • NFC is less secure than Bluetooth sharing.

Saturday, 21 March 2015

How to transfer e-mail from other domain to G-mail automatically

How to transfer e-mail from other domain to G-mail automatically:

do this at Your OWN risk...!!

Disclaimer: "This article is for educational purposes only.  

Steps:

1. Log in into your G-mail Account.
2. Go to -> Settings 


3. Click on Tab: Account and Import.



4. Click on : Add a POP3 mail account you own.


5. Enter the email address of that account to get mail from: "example@example.com"

6. Click Next

7.Enter Your Password.

8. Now you have few options to choose from:


        
  •       Leave a copy of retrieved messages on the server. 
  •       Always use a secure connection (SSL) when retrieving mail 
  •       Label incoming messages 
  •       Archive incoming messages

click in Check-Box of first three options.

9. Now, Click on Add Account.

10. Once Your account added successfully , G-mail will check your other account for new emails periodically

Thursday, 12 March 2015

How to Enabe Whatsapp Calling feature on Android Smartphones!!

do this at Your OWN risk...!!

Disclaimer: "This article is for educational purposes only. We are not responsible for any damage done to your smartphone or its data by using unofficial software and apps downloaded from third-party websites. Do this completely on your own risk. I am not responsible for loss of profit or any direct, indirect, special, incidental, or consequential damage to any one in any manner.. occurring during or after following this tutorial... :-D :-D :-:"

The WhatsApp servers are the mainly responsible to enable the service on your device, after the enabled caller calls you. What I mean is that if an active user calls you, you may get activated for the calling feature, only if the activation servers at WhatsApp’s end are running. If the servers are down, then you can just get a call, answer and chat, but not get activated. There are random times in a day or week when the WhatsApp servers are online, and without any notice. So if you are at the right time to get a call, you are lucky. You can then call someone else to activate his or her WhatsApp calling feature. However, the person you are calling has to also have the updated version of the WhatsApp app. So you may have to guide him/her on how they can update it. Once enabled, you can see three tabs for calls, chats and contacts, in your WhatsApp user interface. If the contact you are calling does not have the updated version, it will not be listed in the contacts for voice calls.


Requirements:

1. A rooted android device.
2. Latest version of Whatsapp.
3. Any root explorer application installed on your phone. i.e - "Root Explorer"

Steps:
1. Update your whatsapp to its latest version or it should be upper then 2.11.508
2. Open root explorer and navigate to data/data/com.whatsapp/com.whatsapp_preferences.xml