Giter VIP home page Giter VIP logo

calculation-of-profit-and-loss-using-vwap-in-trading-'s Introduction

Calculation-of-Profit-and-Loss-Using-VWAP-in-Trading-

Volume weighted average price is known to be a versatile tool that is widely used by technical traders in finding good equities for investment. It is used by mutual fund portfolio managers when they have to buy a substantial number of a particular stock. Similarly, retail traders use VWAP to find the future potential of a stock, and intraday traders to determine the mean price in the market so they can buy a stock when the price is below VWAP.

It is a weighted average formula, which is widely used by analysts and traders alike to determine the demand for a stock both in terms of volume and price.

Attached data is the Bank Nifty time series data of 1 min. Intially Backtest is done using Python. Then the data is converted data into 15 min time frame. This is followed by Intraday trades are to be taken and mandatorily closed in the same day. Trade starts only after 2nd 15-minute candle (9:30 to 9:45). This comes with condition, if candle closes above VWAP, we will buy and if candle closes below VWAP, we will sell Example: If 2nd candle is closing above VWAP, we will buy 1 tick above candle high and Stop Loss (SL) will be 1 tick below candle low. If stop loss is not hit, then all trades are exited at 3:15 PM. Aim is to calculate the overall profit and loss and to segregate the Profit and Loss Year wise and Day wise

Libraries Used:

Pandas, Numpy, Matplotlib

Programing Language

Python

IDE Used

Jupyter Notebook

calculation-of-profit-and-loss-using-vwap-in-trading-'s People

Contributors

ishtym avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.