Git Product home page Git Product logo

indicators's Introduction

Laratrade Indicators

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

Laravel package for trading indicators.

Requirements

Make sure all dependencies have been installed before moving on:

Install

Pull the package via Composer:

$ composer require laratrade/indicators

Usage

Via dependency injection

<?php

use Laratrade\Indicators\Contracts\IndicatorManager;

class MyClass
{
    /**
     * The indicator manager instance.
     *
     * @var IndicatorManager
     */
    protected $indicatorManager;

    /**
     * Create a new instance.
     *
     * @param IndicatorManager $indicatorManager
     */
    public function __construct(IndicatorManager $indicatorManager)
    {
        $this->indicatorManager = $indicatorManager;
    }
    
    /**
     * Handle my function.
     */
    public function myFunction()
    {
        ...
        $indicator = $this->indicatorManager->atr($ohlvc);
        ...
    }
}

Via facade

<?php

use Laratrade\Indicators\Facades\IndicatorManager;

class MyClass
{   
    /**
     * Handle my function.
     */
    public function myFunction()
    {
        ...
        $indicator = IndicatorManager::atr($ohlvc);
        ...
    }
}

Indicators

admi

Average directional movement index

$indicator = IndicatorManager::admi($ohlvc);

atr

Average true range

$indicator = IndicatorManager::atr($ohlvc);

ao

Awesome oscillator

$indicator = IndicatorManager::ao($ohlvc);

bb

Bollinger bands

$indicator = IndicatorManager::bb($ohlvc);

cmo

Change momentum oscillator

$indicator = IndicatorManager::cmo($ohlvc);

cci

Commodity channel index

$indicator = IndicatorManager::cci($ohlvc);

htit

Hilbert transform instantaneous trendline

$indicator = IndicatorManager::htit($ohlvc);

hts

Hilbert transform sinewave

$indicator = IndicatorManager::hts($ohlvc);

httvcm

Hilbert transform trend versus cycle mode

$indicator = IndicatorManager::httvcm($ohlvc);

mmi

Market meanness index

$indicator = IndicatorManager::mmi($ohlvc);

mfi

Money flow index

$indicator = IndicatorManager::mfi($ohlvc);

macd

Moving average crossover divergence

$indicator = IndicatorManager::macd($ohlvc);

macdwcmat

Moving average crossover divergence with controllable moving average type

$indicator = IndicatorManager::macdwcmat($ohlvc);

obv

On balance volume

$indicator = IndicatorManager::obv($ohlvc);

Testing

$ composer test

Security

If you discover any security related issues, please use the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

indicators's People

Contributors

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