Bitcoin Forum
May 08, 2024, 01:22:03 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: trader_aroon возвращает пустые значение в массиве  (Read 522 times)
shark255 (OP)
Full Member
***
Offline Offline

Activity: 224
Merit: 100



View Profile
January 27, 2014, 11:50:21 PM
 #1

Решил поиграться с индикаторами - AROON-ом в частности,
и какбе странно что он не вычисляется, может данных мало -
 
Code:
high:
Array
(
    [0] => 768.886
    [1] => 767.619
    [2] => 764.585
    [3] => 764.436
    [4] => 754.999
    [5] => 750
)
low:
Array
(
    [0] => 760
    [1] => 761.1
    [2] => 750.11
    [3] => 753.01
    [4] => 742
    [5] => 730
)

$result = trader_aroon($high, $low, 6);

В ответ - пустота -
Code:
Array
(
    [0] => Array
        (
        )

    [1] => Array
        (
        )

)

с ema все ок
1715131323
Hero Member
*
Offline Offline

Posts: 1715131323

View Profile Personal Message (Offline)

Ignore
1715131323
Reply with quote  #2

1715131323
Report to moderator
The block chain is the main innovation of Bitcoin. It is the first distributed timestamping system.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715131323
Hero Member
*
Offline Offline

Posts: 1715131323

View Profile Personal Message (Offline)

Ignore
1715131323
Reply with quote  #2

1715131323
Report to moderator
shark255 (OP)
Full Member
***
Offline Offline

Activity: 224
Merit: 100



View Profile
January 28, 2014, 11:44:32 AM
 #2

решил, третий параметр (time period) должен быть меньше кол-ва эл-ов массива high/low.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!