Charting Stocks and Forex Part 21 - How to calculate exponential moving average in python

preview_player
Показать описание
This is the twenty-first video in the series for stock price analysis, teaching you how to calculate an

exponential moving average in python. The purpose of the videos in this series is to teach you how to

program your own charting and technical analysis of stocks or Forex.

This is beneficial for you if you plan to do any sort of algorithmic, high-frequency, or any sort of

automated trading.

Рекомендации по теме
Комментарии
Автор

hey, thanks for videos!!

I try to use this func for my analysis. But I think my results weights the initial values more, rather then the latest ones...

The reason for the might be the format of my data source. Since Google takes the latest data in last row of csv, Yahoo takes the lates data in the first row.

I see that your function is suitable for Yahoo. I use Google Fin as my data source. Thus I need to turn your function revers.. How do I do that? Any ideas? Please help! :)

umutalihandikel
Автор

Hey, so I've been watching all the videos in this series, and they are pretty great. I ran into a weird issue a couple of videos back, but just ignored it, but the problem persists.

It seems as if I can run this program with any stock, as long as I downloaded the data using the first program we wrote, except for 'GOOG'. The data looks the same to me, but I keep getting this error, which is caught by our main try/except loop: 'Failed main loop x and y must have same first dimension.'

This only happens, I think, with google.

mikaelakleinfelter
Автор

Please, how do I write a Python program that asks the user for the information from part 1(stock data) and performs
exponential smoothing based on it? The program should have the ability to allow the user to input alpha, display the
graph of the original data and the “smoothed data” and have the user verify if this model is appropriate.
If it is not then it should loop asking for new entries for alpha until the user indicates the model is
appropriate.

Theophilusbraimah
join shbcf.ru