php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62712 trader_obv does not return results
Submitted: 2012-07-31 21:31 UTC Modified: 2012-08-02 14:14 UTC
From: mike at saymikeo dot com Assigned: ab (profile)
Status: Closed Package: Trader (PECL)
PHP Version: 5.3.15 OS: OSX
Private report: No CVE-ID: None
 [2012-07-31 21:31 UTC] mike at saymikeo dot com
Description:
------------
input vars
array of numbers and time period

returns an empty array.

Thanks!

Test script:
---------------
************
PRICE DATA**
************
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 )



*************
VOLUME DATA**
*************

Array ( [0] => 24673200 [1] => 50672800 [2] => 41416800 [3] => 29481600 [4] => 32186900 [5] => 29166700 [6] => 23001400 [7] => 22290400 [8] => 15374500 [9] => 21276300 [10] => 21683100 [11] => 23409200 [12] => 21722700 [13] => 26108400 [14] => 21369400 [15] => 29805400 [16] => 20463500 [17] => 22902700 [18] => 21340500 [19] => 31774600 [20] => 24878900 [21] => 21940300 [22] => 30701500 [23] => 37528000 [24] => 36624400 [25] => 34090300 [26] => 29811100 [27] => 36820500 [28] => 34518400 [29] => 38442800 [30] => 32346800 [31] => 19145100 [32] => 14527500 [33] => 18076400 [34] => 21821300 [35] => 15272200 [36] => 13948100 [37] => 18988500 [38] => 16551800 [39] => 17941000 [40] => 17167900 [41] => 12179900 [42] => 14269400 [43] => 12771600 [44] => 17010900 [45] => 20031900 [46] => 25614900 [47] => 26153100 [48] => 22538900 [49] => 24813800 [50] => 20889100 [51] => 17721300 [52] => 11730900 [53] => 13589400 [54] => 18907800 [55] => 17568200 [56] => 18606400 [57] => 19892400 [58] => 13864700 [59] => 14325100 [60] => 13565300 [61] => 12395200 [62] => 21116500 [63] => 15556400 [64] => 10491800 [65] => 12351400 [66] => 11973300 [67] => 15728900 [68] => 12907200 [69] => 12827000 [70] => 11660800 [71] => 10169400 [72] => 10869800 [73] => 9883900 [74] => 7252100 [75] => 10108600 [76] => 15051400 )





Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-07-31 21:49 UTC] ab@php.net
-Status: Open +Status: Feedback
 [2012-07-31 21:49 UTC] ab@php.net
Hi Mike,

we've recently had this T3 (non)issue in bug #62698, are you sure here it's not 
the same? If 
you're not, please post also the time period you're using. If it brings results 
with no time period, it must be pretty much a too big lookback.

Thanks )
 [2012-07-31 22:02 UTC] mike at saymikeo dot com
This function does not ask for a timeperiod. This function only expects 2 
parameters which is real and volume data. I also pulled in about 1000 records 
which should be plenty for any look back function (i think). 

thanks,
 [2012-07-31 22:08 UTC] ab@php.net
Are you talking about http://www.php.net/manual/en/function.trader-t3.php as the 
title says?
 [2012-07-31 22:35 UTC] mike at saymikeo dot com
Hey I am sorry, for some reason my auto form filler put in the wrong title when I 
submitted this bug with the title from the last one.

This is in reference to the trader_obv function not the trader_t3 function.

thanks,
 [2012-08-01 23:55 UTC] ab@php.net
-Summary: trader_t3 does not return results +Summary: trader_obv does not return results -Status: Feedback +Status: Open
 [2012-08-02 00:55 UTC] ab@php.net
Automatic comment from SVN on behalf of ab
Revision: http://svn.php.net/viewvc/?view=revision&revision=326933
Log: fixed the rounding error, bug #62712, bug #62720
 [2012-08-02 09:19 UTC] ab@php.net
Fixed and testable with trunk.
 [2012-08-02 09:19 UTC] ab@php.net
-Status: Open +Status: Feedback
 [2012-08-02 13:11 UTC] mike at saymikeo dot com
Fixed with bug #62720. Thanks! --I have forgotten the password I setup with this 
bug, so could you close it please?
 [2012-08-02 14:14 UTC] ab@php.net
-Status: Feedback +Status: Closed -Assigned To: +Assigned To: ab
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 20:01:29 2024 UTC