Skip to content

[Function Returned Unexpected Results] #12

Description

@uguraltinsoy

Function Name:

Trader

Input Variables:

Arrays

Expected Results:

RSI

Actual Results:

What results did you actually receive?

Comparison Source:

Ekran Resmi 2022-09-28 01 09 06

Activity

  1. removed their assignment
    on Sep 29, 2022
  2. jb-lopez commented on Sep 29, 2022

    @jb-lopez
    Contributor

    I'm going to need more details because it looks like you have a few bugs in your code from that screenshot.

  3. uguraltinsoy commented on Sep 29, 2022

    @uguraltinsoy
    Author
    <?php
    
    namespace LupeCode\phpTraderNative;
    use LupeCode\phpTraderNative\Trader;
    
    require_once __DIR__.'/vendor/autoload.php';
    
    $close_value = array();
    $rsi = Trader::rsi($close_value, 14);
    echo "RSI >> $rsi";
  4. jb-lopez commented on Sep 30, 2022

    @jb-lopez
    Contributor

    You don't want to set your namespace to LupeCode\phpTraderNative, your projects namespace will be something different. And you cannot echo the results like that. An array cannot be implicitly converted to a string in PHP. Also you are passing in an empty array. There is nothing to calculate.

    I'm not sure what you expect this code to do.

  5. locked and limited conversation to collaborators on Oct 11, 2022
  6. converted this issue into a discussion #15 on Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions