2017 © Pedro Peláez
 

library indicators

Laravel package for trading indicators.

image

laratrade/indicators

Laravel package for trading indicators.

  • Monday, January 15, 2018
  • by amavis442
  • Repository
  • 0 Watchers
  • 6 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Laratrade Indicators

Latest Version on Packagist ![Software License][ico-license] Build Status ![Coverage Status][ico-scrutinizer] Quality Score ![Total Downloads][ico-downloads], (*1)

Laravel package for trading indicators., (*2)

Requirements

Make sure all dependencies have been installed before moving on:, (*3)

Install

Pull the package via Composer:, (*4)

``` bash $ composer require laratrade/indicators, (*5)


## Usage Via dependency injection ``` php <?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, (*6)

``` php <?php, (*7)

use Laratrade\Indicators\Facades\IndicatorManager;, (*8)

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


## Indicators - [`admi`](#admi) - [`atr`](#atr) - [`ao`](#ao) - [`bb`](#bb) - [`cmo`](#cmo) - [`cci`](#cci) - [`htit`](#htit) - [`hts`](#hts) - [`httvcm`](#httvcm) - [`mmi`](#mmi) - [`mfi`](#mfi) - [`macd`](#macd) - [`macdwcmat`](#macdwcmat) - [`obv`](#obv) ### `admi` Average directional movement index ```php $indicator = IndicatorManager::admi($ohlvc);

atr

Average true range, (*10)

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

ao

Awesome oscillator, (*11)

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

bb

Bollinger bands, (*12)

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

cmo

Change momentum oscillator, (*13)

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

cci

Commodity channel index, (*14)

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

htit

Hilbert transform instantaneous trendline, (*15)

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

hts

Hilbert transform sinewave, (*16)

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

httvcm

Hilbert transform trend versus cycle mode, (*17)

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

mmi

Market meanness index, (*18)

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

mfi

Money flow index, (*19)

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

macd

Moving average crossover divergence, (*20)

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

macdwcmat

Moving average crossover divergence with controllable moving average type, (*21)

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

obv

On balance volume, (*22)

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

Testing

bash $ composer test, (*23)

Security

If you discover any security related issues, please use the issue tracker., (*24)

Credits

License

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

The Versions

15/01 2018

dev-master

9999999-dev https://github.com/laratrade/indicators

Laravel package for trading indicators.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel trading indicators