Bug #62698 [Com]: trader_t3 does not return results
| From: | mike at saymikeo dot com | Date: | Mon, 30 Jul 2012 18:10:23 +0000 |
| Subject: | Bug #62698 [Com]: trader_t3 does not return results | ||
| References: | 1 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-9649@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=62698&edit=1
ID: 62698
Comment by: mike at saymikeo dot com
Reported by: mike at saymikeo dot com
Summary: trader_t3 does not return results
Status: Feedback
Type: Bug
Package: Trader
Operating System: OSX
PHP Version: 5.3.15
Block user comment: N
Private report: N
New Comment:
Yes I am using the trunk. Here is a sample of the data I am passing.
$settings['period'] = 20;
$data = trader_t3($close, $settings['period']);
// This is set before the function but placed below for readability
$close = Array ( [0] => 568.1 [1] => 589.58 [2] => 585.56 [3] => 585.57 [4] =>
601.1 [5] => 605.96 [6] => 602.5 [7] => 599.34 [8] => 596.05 [9] => 606.98 [10]
=> 614.48 [11] => 617.62 [12] => 609.86 [13] => 599.55 [14] => 618.63 [15] =>
629.32 [16] => 624.31 [17] => 633.68 [18] => 636.23 [19] => 628.44 [20] => 626.2
[21] => 622.77 [22] => 605.23 [23] => 580.13 [24] => 609.7 [25] => 608.34 [26] =>
587.44 [27] => 572.98 [28] => 571.7 [29] => 560.28 [30] => 610 [31] => 607.7 [32]
=> 603 [33] => 583.98 [34] => 582.13 [35] => 585.98 [36] => 581.82 [37] => 565.25
[38] => 569.48 [39] => 568.18 [40] => 569.18 [41] => 570.52 [42] => 566.71 [43]
=> 558.22 [44] => 553.17 [45] => 546.08 [46] => 530.12 [47] => 530.38 [48] =>
561.28 [49] => 556.97 [50] => 570.56 [51] => 565.32 [52] => 562.29 [53] => 572.27
[54] => 579.17 [55] => 577.73 [56] => 560.99 [57] => 564.29 [58] => 562.83 [59]
=> 571.46 [60] => 571.72 [61] => 580.32 [62] => 571.17 [63] => 576.16 [64] =>
572.16 [65] => 571.53 [66] => 574.13 [67] => 585.78 [68] => 587.41 [69] => 585.74
[70] => 577.67 [71] => 582.1 [72] => 570.77 [73] => 572.03 [74] => 574.5 [75] =>
569.05 [76] => 584 )
Previous Comments:
------------------------------------------------------------------------
[2012-07-30 17:03:29] ab@php.net
Are you using trunk? This pattern works for me
var_dump(trader_t3(get_data("high", $data1)));
with the data and function from
tests/inc/data.php
tests/inc/func.php
As well when i pass a time period.
Please give more info on how you run it, how much data, which time period.
------------------------------------------------------------------------
[2012-07-30 16:09:58] mike at saymikeo dot com
Description:
------------
input vars
array of numbers and time period
returns an empty array.
Thanks!
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=62698&edit=1