Giter Site home page Giter Site logo

mavsneha / hedging-of-financial-derivatives Goto Github PK

View Code? Open in Web Editor NEW

This project forked from akshat111111/hedging-of-financial-derivatives

0.0 0.0 0.0 30.47 MB

This strategy works for every market condition irrespective of the movement

License: BSD 3-Clause "New" or "Revised" License

Python 0.06% Jupyter Notebook 99.94%

hedging-of-financial-derivatives's Introduction

Hedging of Financial Derivative

Welcome to Hedging of Financial Derivative!

This project focuses on implementing a robust trading strategy using statistical arbitrage and convergence techniques for hedging financial derivatives.

Overview

The project utilizes:

  • Financial programming
  • Deep learning
  • Machine learning

Getting Started

To contribute to this project, follow these steps:

  1. Fork the repository on GitHub.
  2. Clone the forked project to your local machine: `git clone `
  3. Create a new branch for your work: `git checkout -b your-branch-name`
  4. Make changes and improvements in your branch.
  5. Commit your changes: `git commit -m 'Add your descriptive commit message'`
  6. Push your changes to your forked repository: `git push origin your-branch-name`
  7. Submit a Pull Request (PR) to the main repository for review.

Ways to Contribute

We welcome contributions in various forms, such as:

  • Reporting bugs or issues
  • Providing feedback on the existing codebase
  • Submitting fixes for identified issues
  • Proposing new features or enhancements
  • Improving documentation
  • Adding code snippets, algorithms, or techniques related to financial programming

Code Guidelines

Please adhere to proper coding standards and conventions:

  • Follow clear and descriptive commit messages.
  • Provide adequate comments within the code for readability.
  • Thoroughly test your changes before submitting a PR.

Issue Tracking

We use GitHub issues to manage tasks. Feel free to open an issue for bugs, suggestions, or discussions related to the project.

Code of Conduct

We maintain a Code of Conduct to ensure a welcoming environment for all contributors. Please review and follow our Cpde of Conduct

Thank you for your interest in contributing to the Financial Derivative Hedging Project!

Hedging of Financial Derivative

A Hedging is a market neutral trading strategy enabling traders to profit from virtually any market conditions: uptrend, downtrend, or sideways movement. This strategy is categorized as a statistical arbitrage and convergence trading strategy.

  1. To explain what our strategy exactly does and how is it working, we have taken the example of the Indian Market, we have taken a few securities over a specified time interval. Then we have found all the cointegrated pairs of stocks from all the possible pairs of securities by considering all the stocks having p-value less than a certain cut-off. For further analysis, we have identified the security pair with minimum p-value.
  2. Next we have calculated the spread of the two series. In order to actually calculate the spread, we use a linear regression to get the coefficient for the linear combination to construct between our two securities. Since, the absolute spread isn't very useful in statistical terms. It is more helpful to normalize our signal by treating it as a z-score. A Z-score is nothing but a numerical measurement that describes a value's relationship to the mean of a group of values. Z-score is measured in terms of standard deviations from the mean.
  3. Next we define our strategy and generate the trading signals during backtesting on another time period which we have defined-
    • Go "Long" the spread whenever the z-score is below -1.0
    • Go "Short" the spread when the z-score is above 1.0
    • Exit positions when the z-score approaches zero
  4. Next we have created calculated the returns of our portfolio on the basis of strategy

hedging-of-financial-derivatives's People

Contributors

adi271001 avatar akshat111111 avatar apooyadv avatar mdutta1234 avatar michaelfred533 avatar shubha987 avatar su-creator-spec avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.