Skip to content

trader_cdlengulfing() always returning false #20

Description

@pandglobal

From manual page: https://php.net/function.trader-cdlengulfing


This trader_cdlengulfing() needs to be updated as it returns false always, even when an engulfing pattern was submitted to it yet it returns false. same thing with most of trader candle sticks pattern detecting function.
Example:
// Previous candle (1st)
$prev_open = 25;
$prev_high = 30;
$prev_low = 20;
$prev_close = 22;

// Current candle (2nd)
$current_open = 18;
$current_high = 48;
$current_low = 15;
$current_close = 40;

$open = array($prev_open, $current_open);
$high = array($prev_high, $current_high);
$low = array($prev_low, $current_low);
$close = array($prev_close, $current_close);

$engulfing = trader_cdlengulfing($open, $high, $low, $close);
var_dump($engulfing);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions