PHP code example of alangustavo / trader-supertrend

1. Go to this page and download the library: Download alangustavo/trader-supertrend library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

alangustavo / trader-supertrend example snippets


TraderSupertrend::get(array $high, array $low, array $close, $timePeriod, $multiplier);

[ 
    [
        'close' => 13.58332345,
        'type'  => '-1'
    ],
    [
        'close' => $12.5468844,
        'type'  => 1
    ]
]