承接 romulodl/ema 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

romulodl/ema

最新稳定版本:v3.0.0

Composer 安装命令:

composer require romulodl/ema

包简介

EMA without the PECL trader extension

README 文档

README

Calculate the EMA of giving values.

Ema

Instalation

composer require romulodl/ema

or add romulodl/ema to your composer.json. Please check the latest version in releases.

Usage

$ema = new Romulodl\Ema();
$values = $ema->calculate(array $values, int $period = 9);
// return array, $values[0] being the last one

For example:

$ema = new Romulodl\Ema();
$ema->calculate([10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]);

Why did you do this?

The PECL Trading extension is crap and not everyone wants to install it. I am building a trading bot and building more complex trading indicators that use the EMA as a basic step.

统计信息

  • 总下载量: 712
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 8
  • 点击次数: 1
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 8
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2020-05-16