TA-Lib / trader を php インストールにインストールしたところです。私の PHP はあまり良くなく、トレーダーのドキュメントがあっても、ちょっとしたガイダンスが必要です。データベースから値の配列をロードし、それらを「trader_sma」に送信して小さな移動平均を取得したいと考えています。私の疑似コードは次のようになります。
<?php
$finance = $dbrequest("SELECT close_price FROM market_table WHERE stock='$symbol');
//So now $finance is an array with all of the stocks closing prices
//how do I place it into this function? I also need to 'count' the rows in
//the array to send them into $timePeriod?
//array trader_sma ( array $real [, integer $timePeriod ] )
?>
どんな助けでも感謝します。ありがとう。