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);
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);