-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit b023714
Showing
7 changed files
with
1,772 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# editorconfig.org | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
end_of_line = lf | ||
indent_size = 2 | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.{html,twig,md}] | ||
indent_size = 2 | ||
|
||
[*.php] | ||
charset = utf-8 | ||
indent_style = tab | ||
indent_size = 4 | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
vendor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Exponential Moving Average | ||
|
||
## Instalation | ||
|
||
``` | ||
composer require romulodl/ema | ||
``` | ||
|
||
or add `romulodl/ema` to your `composer.json`. Please check the latest version in releases. | ||
|
||
## Usage | ||
|
||
```php | ||
$ema = new Romulodl\Ema(); | ||
$ema->calculate([10, 12, 14, 20, 14, 10, 11]); | ||
``` | ||
|
||
it also contains a static method: | ||
|
||
```php | ||
Ema::calculateStatic([10, 12, 14, 20, 14, 10, 11]); | ||
``` | ||
|
||
|
||
## 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 EMA as a basic step. | ||
I am also planning to open-source the other indicators (not the trading bot) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"name": "rdelazzari/ema", | ||
"description": "EMA without the PECL trader extension", | ||
"require-dev": { | ||
"phpunit/phpunit": "^8.5" | ||
}, | ||
"authors": [ | ||
{ | ||
"name": "Romulo De Lazzari", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"require": {}, | ||
"autoload": { | ||
"psr-4": { | ||
"Romulodl\\": "src/" | ||
} | ||
} | ||
} |
Oops, something went wrong.