PHPackages                             reccur/candlestick - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. reccur/candlestick

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

reccur/candlestick
==================

Analyzes different trends and patterns in a candlestick chart

v1.0.0(4y ago)333MITPHPPHP &gt;=7.2

Since Feb 4Pushed 3y ago1 watchersCompare

[ Source](https://github.com/reccur/candlestick-package)[ Packagist](https://packagist.org/packages/reccur/candlestick)[ RSS](/packages/reccur-candlestick/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Candlestick
===========

[](#candlestick)

[![Stars](https://camo.githubusercontent.com/59381865cd6616341f336f3db5329cdd18ac77b615233a4b17a229c9a35ed6d5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f7265636375722f63616e646c65737469636b2d7061636b616765)](https://camo.githubusercontent.com/59381865cd6616341f336f3db5329cdd18ac77b615233a4b17a229c9a35ed6d5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f7265636375722f63616e646c65737469636b2d7061636b616765)[![Forks](https://camo.githubusercontent.com/8b3e83ef073b04638530d598c22fd2d391806fbb60c5556628d2ececac86a0f1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f7265636375722f63616e646c65737469636b2d7061636b616765)](https://camo.githubusercontent.com/8b3e83ef073b04638530d598c22fd2d391806fbb60c5556628d2ececac86a0f1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f7265636375722f63616e646c65737469636b2d7061636b616765)

Candlestick is a laravel package that helps to analyze various patterns, structures and trends in candlesticks

Features
--------

[](#features)

- Use it with Facade or as a library
- Change various thresholds and multipliers in config/candlestick.php file
- Includes patterns for single candle, dual candles and triple candles

Detectable Patterns
-------------------

[](#detectable-patterns)

### Single Candle Patterns

[](#single-candle-patterns)

- DOJI
- MARUBOZU
- CLOSING\_MARUBOZU
- OPENING\_MARUBOZU
- HAMMER\_OR\_HANGING\_MAN
- INVERTED\_HAMMER\_OR\_SHOOTING\_STAR
- DRAGONFLY\_DOJI
- GRAVESTONE\_DOJI
- SPINNING\_TOP

### Dual Candle Patterns

[](#dual-candle-patterns)

- BULLISH\_KICKER
- BEARISH\_KICKER
- BULLISH\_ENGULFING
- BEARISH\_ENGULFING
- BULLISH\_HARAMI
- BEARISH\_HARAMI
- BEARISH\_HARAMI
- PIERCING\_LINE
- DARK\_CLOUD\_COVER
- TWEEZER\_BOTTOM
- TWEEZER\_TOP

### Triple Candle Patterns

[](#triple-candle-patterns)

- MORNING\_STAR
- EVENING\_STAR
- THREE\_WHITE\_SOLDIERS
- THREE\_BLACK\_CROWS
- THREE\_OUTSIDE\_UP
- THREE\_OUTSIDE\_DOWN
- THREE\_INSIDE\_UP
- THREE\_INSIDE\_DOWN
- DARK\_CLOUD\_COVER\_CONFIRMED

Installing Candlestick
----------------------

[](#installing-candlestick)

The recommended way to install Candlestick is through [Composer](https://getcomposer.org/).

```
composer require reccur/candlestick
```

### Laravel without auto-discovery:

[](#laravel-without-auto-discovery)

If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php

```
Reccur\Candlestick\CandlestickServiceProvider::class,
```

If you want to use the facade, add this to your facades in app.php:

```
'Candlestick' => Reccur\Candlestick\Facades\Candlestick::class,
```

### Config

[](#config)

Copy the package config to your local config with the publish command:

```
php artisan vendor:publish --provider="Reccur\Candlestick\CandlestickServiceProvider"
```

You may change the following settings in the published config/candlestick.php file

```
'MARUBOZU_WICKS_THRESHOLD' => 5,
'HAMMER_SHORTER_WICK_THRESHOLD' => 5,
'HAMMER_LONGER_WICK_MULTIPLIER' => 2.5,
'DOJI_SHORTER_WICK_THRESHOLD' => 2,
'DOJI_WICK_MULTIPLIER' => 15,
'SPINNING_TOP_WICKS_MULTIPLIER' => 5,
'SPINNING_TOP_WICKS_DIFFERENCE_THRESHOLD' => 5,
```

Usage
-----

[](#usage)

### Single Candlestick

[](#single-candlestick)

```
$candle = Candlestick::single([
    'date'   => '2022-01-02',
    'o'      => 300.00,
    'h'      => 300.00,
    'l'      => 292.00,
    'c'      => 292.10,
    'volume' => 15623,
]);

$candle->color();
// Output: RED

$candle->pattern();
// Output: OPENING_MARUBOZU
```

Or use laravel Method Chaining

```
$pattern = Candlestick::single([
    'date'   => '2022-01-03',
    'o'      => 1784.00,
    'h'      => 1785.00,
    'l'      => 1750.00,
    'c'      => 1777.00,
    'volume' => 120,
])->pattern();

// Output: HAMMER_OR_HANGING_MAN
```

#### Getters

[](#getters)

GetterMethodDate-&gt;date()Open-&gt;o()High-&gt;h()Low-&gt;l()Close-&gt;c()Volume-&gt;volume()Color-&gt;color()Upper Wick (%)-&gt;upper\_wick()Body (%)-&gt;body()Lower Wick (%)-&gt;lower\_wick()Wicks (%)-&gt;wicks()Pattern-&gt;pattern()### Dual Candlesticks

[](#dual-candlesticks)

```
$candle1 = Candlestick::single([
    'date'   => '2022-01-31',
    'o'      => 508.00,
    'h'      => 508.00,
    'l'      => 491.00,
    'c'      => 502.00,
    'volume' => 25171,
]);

$candle2 = Candlestick::single([
    'date'   => '2022-02-01',
    'o'      => 500.00,
    'h'      => 527.00,
    'l'      => 491.00,
    'c'      => 520.00,
    'volume' => 75030,
]);

Candlestick::dual($candle1, $candle2)->pattern();

// Output: BULLISH_ENGULFING
```

### Triple Candlesticks

[](#triple-candlesticks)

```
Candlestick::dual($candle1, $candle2, $candle3)->pattern();

// Output: THREE_BLACK_CROWS
```

License
-------

[](#license)

Candlestick is made available under the MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1562d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e2de652837d58994c1b45309bc7223e60d1bdf9923ea49ee168b3381986bb798?d=identicon)[reccur](/maintainers/reccur)

---

Top Contributors

[![reccur](https://avatars.githubusercontent.com/u/3498905?v=4)](https://github.com/reccur "reccur (18 commits)")

### Embed Badge

![Health badge](/badges/reccur-candlestick/health.svg)

```
[![Health](https://phpackages.com/badges/reccur-candlestick/health.svg)](https://phpackages.com/packages/reccur-candlestick)
```

###  Alternatives

[krakjoe/pthreads-polyfill

A polyfill for pthreads

80134.9k1](/packages/krakjoe-pthreads-polyfill)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
