LupeCode/phpTraderInterface · TraderTrait.php
php logo
public static function linearreg_slope(array $real, int $timePeriod = null): array
    {
        $timePeriod = $timePeriod ?? 14;
        $return     = trader_linearreg_slope($real, $timePeriod);
        static::checkForError();

        return $return;
    }
Similar code snippets
1.
LupeCode/phpTraderInterface · TraderTrait.php
Match rating: 81.46% · See similar code snippets
php logo
public static function linearreg(array $real, int $timePeriod = null): array
    {
        $timePeriod = $timePeriod ?? 14;
        $return     = trader_linearreg($real, $timePeriod);
        static::checkForError();

        return $return;
    }
2.
LupeCode/phpTraderInterface · TraderTrait.php
Match rating: 74.61% · See similar code snippets
php logo
public static function linearreg_angle(array $real, int $timePeriod = null): array
    {
        $timePeriod = $timePeriod ?? 14;
        $return     = trader_linearreg_angle($real, $timePeriod);
        static::checkForError();

        return $return;
    }
3.
LupeCode/phpTraderInterface · TraderTrait.php
Match rating: 73.54% · See similar code snippets
php logo
public static function linearreg_intercept(array $real, int $timePeriod = null): array
    {
        $timePeriod = $timePeriod ?? 14;
        $return     = trader_linearreg_intercept($real, $timePeriod);
        static::checkForError();

        return $return;
    }
4.
LupeCode/phpTraderInterface · TraderTrait.php
Match rating: 69.67% · See similar code snippets
php logo
public static function tsf(array $real, int $timePeriod = null): array
    {
        $timePeriod = $timePeriod ?? 14;
        $return     = trader_tsf($real, $timePeriod);
        static::checkForError();

        return $return;
    }
5.
LupeCode/phpTraderInterface · TraderTrait.php
Match rating: 68.63% · See similar code snippets
php logo
public static function cmo(array $real, int $timePeriod = null): array
    {
        $timePeriod = $timePeriod ?? 14;
        $return     = trader_cmo($real, $timePeriod);
        static::checkForError();

        return $return;
    }
6.
LupeCode/phpTraderInterface · TraderTrait.php
Match rating: 67.34% · See similar code snippets
php logo
public static function midpoint(array $real, int $timePeriod = null): array
    {
        $timePeriod = $timePeriod ?? 14;
        $return     = trader_midpoint($real, $timePeriod);
        static::checkForError();

        return $return;
    }
7.
LupeCode/phpTraderInterface · TraderTrait.php
Match rating: 67.1% · See similar code snippets
php logo
public static function rsi(array $real, int $timePeriod = null): array
    {
        $timePeriod = $timePeriod ?? 14;
        $return     = trader_rsi($real, $timePeriod);
        static::checkForError();

        return $return;
    }
8.
LupeCode/phpTraderInterface · TraderTrait.php
Match rating: 67.0% · See similar code snippets
php logo
public static function dema(array $real, int $timePeriod = null): array
    {
        $timePeriod = $timePeriod ?? 30;
        $return     = trader_dema($real, $timePeriod);
        static::checkForError();

        return $return;
    }
9.
LupeCode/phpTraderInterface · TraderTrait.php
Match rating: 66.68% · See similar code snippets
php logo
public static function sma(array $real, int $timePeriod = null): array
    {
        $timePeriod = $timePeriod ?? 30;
        $return     = trader_sma($real, $timePeriod);
        static::checkForError();

        return $return;
    }
10.
LupeCode/phpTraderInterface · TraderTrait.php
Match rating: 66.68% · See similar code snippets
php logo
public static function max(array $real, int $timePeriod = null): array
    {
        $timePeriod = $timePeriod ?? 30;
        $return     = trader_max($real, $timePeriod);
        static::checkForError();

        return $return;
    }