GithubHelp home page GithubHelp logo

machinesarelearning / nse_trader Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mehul90/nse_trader

0.0 1.0 0.0 780 KB

A basic implementation to download historic prices, apply a strategy, and see the strategy performance vis-a-vis the actual stock prices.

Python 100.00%

nse_trader's Introduction

NSE_TRADER

A basic implementation to download historic prices, apply a strategy, and see the strategy performance vis-a-vis the actual stock prices.

The code requires some clean-up.

The overview is as follows:

  • Go to file strategy.py
  • Get the historic data for the required script
  • Parse this data as a pandas dataframe
  • Apply an appropriate strategy that you want to test. The current code includes basic strategies like RSI crossover or Bollinger band.
  • Generate trading signals for this strategy.
  • Plot graph of portfolio growth , showing the original prices, versus the portfolio value if you trade by the signals.
  • Fine-tune the strategy, run the code again, make money, and then make some more !!

A typical plot for Bollinger-band based strategy:

Signals for the above strategy:

This uses Pandas, NumPy, NSEPy, SciKit, MatPlotLib, and a host of other python libraries.

Feel free to add your custom strategies, optimized code for fetching data, improved graph plots, etc.

I am not a python programmer, nor am I an expert in trading or technical analysis. All ideas/suggestions/improvements are welcome.

nse_trader's People

Contributors

mehul90 avatar

Watchers

 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.