Code Monkey home page Code Monkey logo

algo-trade's Introduction

Algo Trade

NIFTY50 Option Trading based on Global sentiment and well-known technical indicators.

Basic Flow Diagram

Note:

  1. This is console application still in testing phases. Website and Mobile application launching soon.
  2. It can work on one account at a time.
  3. You can run in your local or any cloud service with VM.

Local Setup (console application)

  1. Open the folder app/core
  2. Run the command yarn install or npm install
  3. Create the .env file and update the broker details & other configurations. Refer .env.sample for more details.
  4. Compile the project tsc
  5. Run the job yarn run start or npm run start.

App Starting Log

Trade Notification Log

Let's Collaborate!

Interested in contributing to this project? I'd love to connect! Reach out to me on LinkedIn: https://www.linkedin.com/in/itaravin/

Releases

V4 (latest) (in development)

Code: testapp/src/upstox/index.ts Broker: UpStox

Type Indicators Comments Status
Trend Moving average 5 mins charts - EMA(10), EMA(20), EMA(42) done
Trend Advance Decline Ratio NIFTY green/red skip
Trend MACD or ADX To know trend & reversal ADX done
Trend OI Put Call Radio (PCR) To know buy sell strength done
Momentum RSI done
Momentum Stochastic Oscillator done
Volatility Bollinger Bands done
Volatility ATR done
Volatility VIX skip
Volulme On-Balance Volume skip
Stop Loss Fibonacci Retracement Levels skip

V3 (latest)

  • Fetch global sentiment from moneycontrol.com
  • Fetch nifty50 sentiment from nseindia.com - AD Ratio
  • Fetch OI PCR from niftytrader.com
  • place order (via upstox)
  • exit if profit or loss hit

V2

  • Scrap Investing.com and get global indicies trend
  • Scrap Investing.com and get last 1 min trend to get sentiment & direction
  • Use technical indicator RSI, MACD, ATR
  • If everything goes good, place order (via finvasia)
  • Exit the order if profit or loss hit (configurable %)

V1

  • Scrap Investing.com and get global indicies trend
  • Scrap Investing.com and get last 5 min trend & 1 min trend to get sentiment & direction
  • Use technical indicator ATR, RSI, HL
  • If everything goes good, place order (via finvasia)
  • Exit the order if profit or loss hit (configurable %)

Global Sentiments

  1. Dow Jones
  2. Nikkei 225
  3. Hang Seng
  4. Shanghai
  5. FTSE 100
  6. KOSPI 50
  7. CAC 40
  8. SGX NIFTY
  • Brent Oil
  • USD/INR

Technical Indicators

  1. Pivot Points
  2. Moving Averages
  3. RSI
  4. MACD

Configurations

  • Max trades per day
  • Max profit % per day
  • Max profit % per trade
  • Max loss % per day
  • Max loss % per trade

How to Access?

  • API
  • Website

Supported Brokers

  • Finvasia
  • Upstox (in progress)

Important Links

  • To get NIFTY50 data nseindia.com/api/equity-stockIndices?index=NIFTY%2050
  • To get Global data

Contact / Issue / Feedback

Trade Logs (store in AWS)

Basic Flow Diagram

algo-trade's People

Contributors

aravin avatar

Stargazers

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

Watchers

 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.