How to auto calculate Live Option Greeks in excel| Nifty |Banknifty| Options

Поделиться
HTML-код
  • Опубликовано: 21 окт 2024

Комментарии • 50

  • @salujafintech
    @salujafintech  Год назад +23

    VBA Code:
    Function d1(UP, SP, T, r, V, D)
    d1 = (Log(UP / SP) + (r - D + 0.5 * V ^ 2) * T) / (V * (Sqr(T)))
    End Function
    Function Nd1(UP, SP, T, r, V, D)
    Nd1 = Exp(-(d1(UP, SP, T, r, V, D) ^ 2) / 2) / (Sqr(2 * 3.14159265358979))
    End Function
    Function d2(UP, SP, T, r, V, D)
    d2 = d1(UP, SP, T, r, V, D) - V * Sqr(T)
    End Function
    Function Nd2(UP, SP, T, r, V, D)
    Nd2 = Application.NormSDist(d2(UP, SP, T, r, V, D))
    End Function
    Function CallPrice(UP, SP, T, r, V, D)
    CallPrice = Exp(-D * T) * UP * Application.NormSDist(d1(UP, SP, T, r, V, D)) - SP * Exp(-r * T) * Application.NormSDist(d1(UP, SP, T, r, V, D) - V * Sqr(T))
    End Function
    Function PutPrice(UP, SP, T, r, V, D)
    PutPrice = SP * Exp(-r * T) * Application.NormSDist(-d2(UP, SP, T, r, V, D)) - Exp(-D * T) * UP * Application.NormSDist(-d1(UP, SP, T, r, V, D))
    End Function
    Function CallDelta(UP, SP, T, r, V, D)
    CallDelta = Application.NormSDist(d1(UP, SP, T, r, V, D))
    End Function
    Function PutDelta(UP, SP, T, r, V, D)
    PutDelta = Application.NormSDist(d1(UP, SP, T, r, V, D)) - 1
    End Function
    Function CallTheta(UP, SP, T, r, V, D)
    CT = -((UP * V * Nd1(UP, SP, T, r, V, D)) / (2 * Sqr(T)) - r * SP * Exp(-r * (T)) * Nd2(UP, SP, T, r, V, D))
    CallTheta = CT / 365
    End Function
    Function OptionGamma(UP, SP, T, r, V, D)
    OptionGamma = Nd1(UP, SP, T, r, V, D) / (UP * (V * Sqr(T)))
    End Function
    Function OptionVega(UP, SP, T, r, V, D)
    OptionVega = 0.01 * UP * Sqr(T) * Nd1(UP, SP, T, r, V, D)
    End Function
    Function PutTheta(UP, SP, T, r, V, D)
    PT = -(UP * V * Nd1(UP, SP, T, r, V, D)) / (2 * Sqr(T)) + r * SP * Exp(-r * (T)) * (1 - Nd2(UP, SP, T, r, V, D))
    PutTheta = PT / 365
    End Function
    Function CallRho(UP, SP, T, r, V, D)
    CallRho = 0.01 * SP * T * Exp(-r * T) * Application.NormSDist(d2(UP, SP, T, r, V, D))
    End Function
    Function PutRho(UP, SP, T, r, V, D)
    PutRho = -0.01 * SP * T * Exp(-r * T) * (1 - Application.NormSDist(d2(UP, SP, T, r, V, D)))
    End Function
    Function CallIV(UP, SP, T, r, MP, D)
    Mx = 5
    Mn = 0
    Do While (Mx - Mn) > 0.0001
    If CallPrice(UP, SP, T, r, (Mx + Mn) / 2, D) > MP Then
    Mx = (Mx + Mn) / 2
    Else: Mn = (Mx + Mn) / 2
    End If
    Loop
    CallIV = (Mx + Mn) / 2
    End Function
    Function PutIV(UP, SP, T, r, MP, D)
    Mx = 5
    Mn = 0
    Do While (Mx - Mn) > 0.0001
    If PutPrice(UP, SP, T, r, (Mx + Mn) / 2, D) > MP Then
    Mx = (Mx + Mn) / 2
    Else: Mn = (Mx + Mn) / 2
    End If
    Loop
    PutIV = (Mx + Mn) / 2
    End Function

  • @vijayhiren7728
    @vijayhiren7728 11 месяцев назад

    Sabse pahle mene apke video se sikha tha 1 year pahle bahut mast bhai Apke sabhi video dekhe he bhai thanks for video

    • @ShreeVed11-wq5yq
      @ShreeVed11-wq5yq 5 месяцев назад

      Kya aap sheet muze mail kar saktye he sir

  • @SHIVAKUMARSOMA06
    @SHIVAKUMARSOMA06 Год назад +3

    Sir , please check the calculation it's showing wrong values for all option greeks , I have checked 7 trading sessions but these calculation shows wrong direction only ...
    Check your greeks formulas ...

  • @ddtimes5324
    @ddtimes5324 Год назад +2

    Sir, Gamma & Vega will be different for Call and Put it cannot be same it changes as per the Change in LTP

  • @babansadhu
    @babansadhu Год назад

    Sir, please make a video on iv percentile calculation of stocks in excel. Thanks

  • @deepak7979
    @deepak7979 8 месяцев назад

    Sir, how can we calculate CallVega and PutVega differently? it is showing same here. Also it is same for Gamma.

  • @saraleconomics4008
    @saraleconomics4008 6 месяцев назад

    Sir please advance excel sheet wale vba code bhi share kar dijiye please.

  • @khanbabar7594
    @khanbabar7594 10 месяцев назад

    How to extract realtime average greeks of OTM call and put option ?

  • @nitinkshirsagar8172
    @nitinkshirsagar8172 Год назад +1

    Sir Call put Vega is not same ,u have shown both CE/ PE Vega in same coloumn.
    How we can calculate separate value for Ce vega PE vega

    • @shanukhan-me5nl
      @shanukhan-me5nl Год назад

      Yes plz show how to calculate ce/pe separately

  • @babulalmistry8057
    @babulalmistry8057 Год назад

    Please add max pain row with option chain. If we take 10 strikes there should be 21 rows, as one row with max pain in middle. Pls help on How to auto color ITM row. 🙏🙏

  • @dipteshroy9719
    @dipteshroy9719 5 месяцев назад +1

    Why don't you share the file? We do not want to learn technicalities. We want to make some money with this data for our families. Itna sikh ke kya karenge?

  • @dineshbelgali
    @dineshbelgali 8 месяцев назад

    Very nice sir ❤❤❤

  • @ravindrapatel4591
    @ravindrapatel4591 Год назад

    Sir Where can i got VBA Code for Greeks ?

  • @avnisha
    @avnisha 11 месяцев назад

    But ye sab to sensibull mein fiya hota hi, iska fayada kya hi?

  • @pravinhirani7962
    @pravinhirani7962 Год назад

    Thank you sir

  • @shubharao8245
    @shubharao8245 Год назад

    superb

  • @jayeshmestri
    @jayeshmestri 8 месяцев назад

    not able to calculate greeks getting error "#VALUE!" please help kindly waiting for your response @Saluja Fintech

  • @MohdYaqubKhan-u3y
    @MohdYaqubKhan-u3y Год назад

    Good sir

  • @paraggiri5985
    @paraggiri5985 6 месяцев назад

    Thank you.

  • @kulbirsingh3014
    @kulbirsingh3014 11 месяцев назад

    Latest excel kase download kare ...link send please

  • @onlyfact-k1v
    @onlyfact-k1v Год назад

    Agla video agle saal me dekhne milega

  • @babulalmistry8057
    @babulalmistry8057 Год назад +3

    Aaya tha roshni achanak, khil utha tha maan, ☺️gayab bhi ho gaya, dukhi hua....😔

  • @puneetsyntexsurat2131
    @puneetsyntexsurat2131 5 месяцев назад

    PLEASE SEND EXCEL SHEET LINK

  • @sujitroy7821
    @sujitroy7821 8 месяцев назад

    Sir nice vedio…but i want to find out call vega and put vega separtaly…can you pls make a function for that…

  • @rajajls1
    @rajajls1 Год назад

    sir mujhe oi excel banana hai aap bana denge plz

  • @vishalchauhan6316
    @vishalchauhan6316 3 месяца назад

    Nahi ban rahi a to z tak Shikhye pls

  • @mohdkamran-g9z
    @mohdkamran-g9z 11 месяцев назад

    dear sir aap ko mene mail kiya tha i am awaiting ur positive reply

  • @oumkaarrs5433
    @oumkaarrs5433 Год назад

    Hello Sir nice VDO !!!
    Will you please elaborate on how to fetch & print Nifty Option data Open High Low Close in excel. If possible how to set it up so that latest value will be on top let's say It should get printed in 3rd row starting from B3.
    say current time is 09:30:15 am.
    So, how to code, so that I will see the data in excel in following format.
    Instrument Bank Nifty 45000 CE.
    A B C D E F
    1
    2 Time OPEN HIGH LOW CLOSE
    3 9:30 101 103 95 *
    4 9:25 118 132 93 100
    5 9:20 104 116 102 116
    6 9:15 98 108 92 106
    * it will show LTP of the 45000CE
    How to get the data printed every 5 minutes ( new row will be added in every 5 minutes & the next row that will get printed will be 09:35 in B3 ) & the data in it should keep refreshing every second.

  • @backtonature9529
    @backtonature9529 10 месяцев назад

    Sir

  • @rahulmakkar930
    @rahulmakkar930 6 месяцев назад

    Sir, bacho ko sidha excel sheet ka link share kar do. Aapne aap change karte rahenge.😂😂😂

  • @moviefreak4812
    @moviefreak4812 5 месяцев назад

    Just show off...
    No one shares actuall excel file created

  • @backtonature9529
    @backtonature9529 10 месяцев назад

    Aapka contact number milega

  • @harris.junglecartoon911
    @harris.junglecartoon911 Год назад

    Thank you sir