lavolp3 / MMM-AVStock

MagicMirror module for displaying stock price with yfinance API
MIT License
38 stars 18 forks source link

movingAverage not working #81

Open Zwillyzz opened 1 month ago

Zwillyzz commented 1 month ago
        //disabled:true,
        module: "MMM-AVStock",
        position: "top_left",
        config: {
              symbols : ["AAPL", "AMZN", "GOOGL", "TSLA", "NVDA", "UBER", "NNE"],
              alias: ["APPLE", "AMAZON", "GOOGLE", "TESLA", "NVIDIA", "UBER", "NANO"],
          chartDays: 180,
          chartType: 'candlestick',
          coloredCandles: true,  
          mode : "table", 
          showChart: true,
          chartInterval: "daily", 
          decimals : 2,
          movingAverage: {type: "SMA", periods: [50]}
        }
    },

Everything's solid except for that. Graph does not show a MA line.

lavolp3 commented 1 month ago

You are right, that is an artifact from the alphavantage times. Have not included it with the new yfinance API. Don't even know if it exists there. Need to check

Zwillyzz @.***> schrieb am So., 15. Sept. 2024, 20:16:

  //disabled:true,
  module: "MMM-AVStock",
  position: "top_left",
  config: {
        symbols : ["AAPL", "AMZN", "GOOGL", "TSLA", "NVDA", "UBER", "NNE"],
        alias: ["APPLE", "AMAZON", "GOOGLE", "TESLA", "NVIDIA", "UBER", "NANO"],
    chartDays: 180,
    chartType: 'candlestick',
    coloredCandles: true,
    mode : "table",
    showChart: true,
    chartInterval: "daily",
    decimals : 2,
    movingAverage: {type: "SMA", periods: [50]}
  }

},

Everything's solid except for that. Graph does not show a MA line.

— Reply to this email directly, view it on GitHub https://github.com/lavolp3/MMM-AVStock/issues/81, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEZHL3M3VJIW4CG4KWVTI53ZWXFGTAVCNFSM6AAAAABOIA522CVHI2DSMVQWIX3LMV43ASLTON2WKOZSGUZDOMBYG4ZTGOA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Zwillyzz commented 1 month ago

Awesome! Let me know.

Thanks for the reply. This project is a dream come true! Well done :)