관리-도구
편집 파일: trader_obv_bug62712.phpt
--TEST-- trader_obv() Bug #62712 trader_obv does not return results --SKIPIF-- <?php if (!extension_loaded("trader")) die("skip"); --FILE-- <?php $price = array(568.1, 589.58, 585.56, 585.57, 601.1, 605.96, 602.5, 599.34, 596.05, 606.98, 614.48, 617.62, 609.86, 599.55, 618.63, 629.32, 624.31, 633.68, 636.23, 628.44, 626.2, 622.77, 605.23, 580.13, 609.7, 608.34, 587.44, 572.98, 571.7, 560.28, 610, 607.7, 603, 583.98, 582.13, 585.98, 581.82, 565.25, 569.48, 568.18, 569.18, 570.52, 566.71, 558.22, 553.17, 546.08, 530.12, 530.38, 561.28, 556.97, 570.56, 565.32, 562.29, 572.27, 579.17, 577.73, 560.99, 564.29, 562.83, 571.46, 571.72, 580.32, 571.17, 576.16, 572.16, 571.53, 574.13, 585.78, 587.41, 585.74, 577.67, 582.1, 570.77, 572.03, 574.5, 569.05, 584); $volume = array(24673200, 50672800, 41416800, 29481600, 32186900, 29166700, 23001400, 22290400, 15374500, 21276300, 21683100, 23409200, 21722700, 26108400, 21369400, 29805400, 20463500, 22902700, 21340500, 31774600, 24878900, 21940300, 30701500, 37528000, 36624400, 34090300, 29811100, 36820500, 34518400, 38442800, 32346800, 19145100, 14527500, 18076400, 21821300, 15272200, 13948100, 18988500, 16551800, 17941000, 17167900, 12179900, 14269400, 12771600, 17010900, 20031900, 25614900, 26153100, 22538900, 24813800, 20889100, 17721300, 11730900, 13589400, 18907800, 17568200, 18606400, 19892400, 13864700, 14325100, 13565300, 12395200, 21116500, 15556400, 10491800, 12351400, 11973300, 15728900, 12907200, 12827000, 11660800, 10169400, 10869800, 9883900, 7252100, 10108600, 15051400); var_dump(trader_obv($price, $volume)); --EXPECT-- array(77) { [0]=> float(24673200) [1]=> float(75346000) [2]=> float(33929200) [3]=> float(63410800) [4]=> float(95597700) [5]=> float(124764400) [6]=> float(101763000) [7]=> float(79472600) [8]=> float(64098100) [9]=> float(85374400) [10]=> float(107057500) [11]=> float(130466700) [12]=> float(108744000) [13]=> float(82635600) [14]=> float(104005000) [15]=> float(133810400) [16]=> float(113346900) [17]=> float(136249600) [18]=> float(157590100) [19]=> float(125815500) [20]=> float(100936600) [21]=> float(78996300) [22]=> float(48294800) [23]=> float(10766800) [24]=> float(47391200) [25]=> float(13300900) [26]=> float(-16510200) [27]=> float(-53330700) [28]=> float(-87849100) [29]=> float(-126291900) [30]=> float(-93945100) [31]=> float(-113090200) [32]=> float(-127617700) [33]=> float(-145694100) [34]=> float(-167515400) [35]=> float(-152243200) [36]=> float(-166191300) [37]=> float(-185179800) [38]=> float(-168628000) [39]=> float(-186569000) [40]=> float(-169401100) [41]=> float(-157221200) [42]=> float(-171490600) [43]=> float(-184262200) [44]=> float(-201273100) [45]=> float(-221305000) [46]=> float(-246919900) [47]=> float(-220766800) [48]=> float(-198227900) [49]=> float(-223041700) [50]=> float(-202152600) [51]=> float(-219873900) [52]=> float(-231604800) [53]=> float(-218015400) [54]=> float(-199107600) [55]=> float(-216675800) [56]=> float(-235282200) [57]=> float(-215389800) [58]=> float(-229254500) [59]=> float(-214929400) [60]=> float(-201364100) [61]=> float(-188968900) [62]=> float(-210085400) [63]=> float(-194529000) [64]=> float(-205020800) [65]=> float(-217372200) [66]=> float(-205398900) [67]=> float(-189670000) [68]=> float(-176762800) [69]=> float(-189589800) [70]=> float(-201250600) [71]=> float(-191081200) [72]=> float(-201951000) [73]=> float(-192067100) [74]=> float(-184815000) [75]=> float(-194923600) [76]=> float(-179872200) }