I don’t know if anyone has encountered this problem or it had a similar problem with the extension of the PHP trader:
http://php.net/manual/en/book.trader.php
Any help would be really appreciated, here is what I did:
- “Installed” the DLL and updated my php.ini to load the extension.
- I have a php page with "print_r (get_extension_funcs (" trader ")); and created an array with all the functions of the trader, so I assume that it is installed normally.
- I ran various functions of the moving average / adx / cci and I got an array of results.
BUT whenever I try to run ANY of the candle recognition functions, I get a "False" response, which, looking at the link below, means that the function does not work correctly. I expect that an array of 6 results is not a boolean value of "False".
http://php.net/manual/en/function.trader-cdldoji.php
$open = [112.818, 112.226, 111.725, 112.144, 112.463, 112.205];
$high = [113.21,113.257,112.476,112.53,112.554,112.716];
$low = [112.253,112.219,111.497,111.474,111.653,112.134];
$close = [112.339,112.804,112.234,111.716,111.993,112.483];
$test1 = trader_cdldoji($open, $high, $low, $close);
var_dump($test1);
I am really struggling with this because the code above is so simple that I cannot believe that it does not work, I also tried the following:
$open = [112.818, 112.226, 111.725, 112.144, 112.463, 112.205];
$high = [113.21,113.257,112.476,112.53,112.554,112.716];
$low = [112.253,112.219,111.497,111.474,111.653,112.134];
$close = [112.339,112.804,112.234,111.716,111.993,112.483];
$test1 = array(trader_cdldoji($open, $high, $low, $close));
var_dump($test1);
I really hope that I did something really stupid that I just don’t see after several hours of hair stretching! Any help is much appreciated, thanks everyone
George