Code A Simple Moving Average Stock Trading Strategy Using Python

preview_player
Показать описание
#Programming #Python
Code A Simple Moving Average Stock Trading Strategy Using Python

Disclaimer: The material in this video is purely for educational purposes and should not be taken as professional investment advice. Invest at your own discretion.
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
⭐Please Subscribe !⭐
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀

▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
🐦🔥🐤 Support The Channel🐤🔥🐦
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
⭐Get the code and data sets or just support the channel by becoming a supporter on Patreon:
⭐Website:
⭐Helpful Python Programming Books
► Hands-Machine-Learning-Scikit-Learn-TensorFlow:
► Learning Python:
►Head First Python:
Рекомендации по теме
Комментарии
Автор

@Computer Science, I just want to thank you for everything you do. I’m about to start my new job next week and you’ve helped me learn so much about python and programming concepts over the last few years. Cheers!

ibrahimwone
Автор

m.. 54 a.n.d my wife 50 we are both retired with over $3 million in net worth and no dept's. Currently living Smart and frugal with our money. Serving and investing life Style in the stock market made it possible for us this early even till now we earn weekly.Thanks to fire movement.

beckylunch
Автор

I am a new subscriber and I am loving your videos.

TheBtrivedi
Автор

Your videos are amazing and I always learn a lot from them. Thanks for sharing.

musicalbirds
Автор

At 17:23, why is it marked to buy if the price is below the MA? I have the impression you inverted all the buy and sell marks... (What I see: you would have had a profit on the 1st trade on april-may; then you should have stopped the 2nd trade on june; but if you decided not to sell below the price you bought, you would have just hold it and bought more a few days later, when the price closes above the MA, and then you would have closed the position with profit on mid-aug... Just to buy again a couple of days later, closing the position on mid-sept, with a little profit.)

rafaelsz
Автор

I think that you are using the close price of the same day for your predictions. You should shift the buy and sell signals one day ahead. Then you could add some split on your buy and sell prices. A few %'s

amandinelevecq
Автор

any idea how to code in python: how "respected" is as example the sma50? how much does it act as support/resistance with a measured and reliable number?

valueray
Автор

Thanks for the vid! Could you please add to this strategy buy/sell offset using volatility such as ATR * multiple. This way buy/sell signals are generated at current price volatility/deviation from the mean. The deviation from the mean is not equal in different market modes, so it would be good to use different ATR*multiple for each market mode. Market modes are more then just up/down/ranging, momentum should also be part of this set of modes. It gets complicated when you have to consider all scenarios/modes, but if you starts with few mentioned above it is easy to extend the market conditions. Thanks!

homealone
Автор

hi, how can i integrate cash condition in "if" function. For example, i have only 10.000 Cash and can't invest more .
Thanks for help.

ira
Автор

My google colab said this was wrong
#Get the buy and sell list
strat = strategy(df)
df['Buy'] = strat[0]
df['Sell'] = strat[1]
@Computer Science, could u help me

mikeliu
Автор

Is there a programmatic way to pick stocks that may be profitable puts/calls within a timeframe?

richardortiz
Автор

Hai why u used CO rather then jupyter??..just asking.

zarithsofia
Автор

why do you use yahoofinance for data ?

capture-everything
Автор

There is no subscription to those who do not share their codes for free !
Dislike !

bekirboyalikli
welcome to shbcf.ru