Algorithmic Trading Using Money Flow Index (MFI) and Python

  Рет қаралды 27,748

Computer Science (compsci112358)

Computer Science (compsci112358)

Күн бұрын

#Python #Stocks #StockTrading #AlgorithmicTrading
Algorithmic Trading Strategy Using Money Flow Index (MFI) and Python
⭐Please Subscribe !⭐
⭐Website:
everythingcompu...
⭐Support the channel on Patreon:
► / computerscience
⭐Helpful Programming Books
► Python (Hands-Machine-Learning-Scikit-Learn-TensorFlow):
amzn.to/2AD1axD
► Learning Python:
amzn.to/3dQGrEB
►Head First Python:
amzn.to/3fUxDiO
► C-Programming :
amzn.to/2X0N6Wa
► Head First Java:
amzn.to/2LxMlhT
Disclaimer: The material in this video is purely educational and should not be taken as professional investment advice. Invest at your own discretion.

Пікірлер: 61
@-yehpu-lin4183
@-yehpu-lin4183 4 жыл бұрын
Where can I get the code?
@dandymoderne
@dandymoderne 4 жыл бұрын
You should directly import data from yfinance Pip install yfinance Pip install TA-Lib
@yapyoongsiew4394
@yapyoongsiew4394 4 жыл бұрын
I suggest you look up the library "TA-Lib", all technical indicators are in there. Maybe it might be helpful showing us how to connect to brokerage APIs like TD Ameritrade and E*Trade, thanks! Keep it up!
@MAtogable
@MAtogable 4 жыл бұрын
I'm using Alpha Vantage, a FREE API, altouhgt you have limited calls
@Heimandhisskateboard
@Heimandhisskateboard 3 жыл бұрын
If you are having problems with the "get_signal" function you may try to reset the index of the new_df data frame: new_df = new_df.reset_index(drop=True). The loop was looking for value 0,1,2,3,4..... but the new_df was indexed 14,15,16,17... due to the period of the MFI. Hope this helps someone!
@pkstock372
@pkstock372 3 жыл бұрын
typical_price=( df.Close+df.High+df.Low)/3 . Why it works? typical_price was not part of df yet ? same question to money_flow ?
@Stopinvadingmyhardware
@Stopinvadingmyhardware 2 жыл бұрын
Your people are that jealous of me. That’s simply unbelievable. You’re jealous of a homeless person
@Lejik007
@Lejik007 4 жыл бұрын
Can you explain what does mean period in the code, you put 14, and if I will put 7, how does it change my MFI?
@daankouwen5081
@daankouwen5081 3 жыл бұрын
Just look on how the mfi is calculated
@anthonywhyte8173
@anthonywhyte8173 4 жыл бұрын
Can you explain why we took the data from the period row to the end basically this line new_df = df[period:]
@anthonywhyte8173
@anthonywhyte8173 4 жыл бұрын
Thank you for sharing your knowledge. My "MFI" values are of the order 1.5 *10^8. I know they should between 0 and 100. It seems I'm calculating something wrong but I can't seem to point it out it's more of a logic error than a syntax error so quite difficult to spot. Also, I'm using a different dataset. But overall , you've been doing a good job. Thanks.
@anthonywhyte8173
@anthonywhyte8173 4 жыл бұрын
I had to change my mfi calculation to the formula on investopedia before getting the required value range, between 0 and 100. link to the investopedia page www.investopedia.com/terms/m/mfi.asp This is the final formula I used to calculate the money flow index money_index = 100 - (100 / (1 + (np.array(positive_mf)/ np.array(negative_mf))))
@arafathossan407
@arafathossan407 4 жыл бұрын
Can you please make a video on plant disease detection using image processing
@ComputerSciencecompsci112358
@ComputerSciencecompsci112358 4 жыл бұрын
That's a wonderful idea. I will definitely take your suggestion into consideration.
@arafathossan407
@arafathossan407 4 жыл бұрын
@@ComputerSciencecompsci112358 take love
@pkstock372
@pkstock372 3 жыл бұрын
ok ,it works now. Its panda core series . HaHa
@adamchilds9132
@adamchilds9132 4 жыл бұрын
Great video could you do a video on creating basic trendlines please thank you. :-)
@mrmuranga
@mrmuranga 4 жыл бұрын
thanks for taking the time....very useful
@ComputerSciencecompsci112358
@ComputerSciencecompsci112358 4 жыл бұрын
You are welcome!
@pkstock372
@pkstock372 3 жыл бұрын
i try this typical_price = ( df.Close+df.High+df.Low)/3 , in my Anacordia , it soesnt works , why ?
@Lejik007
@Lejik007 4 жыл бұрын
I think it will be good idea to show us how to connect to some APIs and trade with APIs using same algorithm.
@rajesha5798
@rajesha5798 3 жыл бұрын
These signals are for historical data......cant be of use unless we combine it to a price prediction...am I correct?
@raqe
@raqe 4 жыл бұрын
Hi Pro How can we use ZIGZAG indicator by Python ? I try using Ta-lib library but not found that indicator !! By googling i found very long solution but i need short one or built in formula
@christoffere425
@christoffere425 3 жыл бұрын
What does the x-axis show?
@phill2441
@phill2441 3 жыл бұрын
Can you help me please? I got a problem with cell [3] i got error because df is not defined
@wahyudwil
@wahyudwil 3 жыл бұрын
Hi, I have an error message when adding the Buy and Sell column, the type error is DataFrame is not callable. Could you help me to fix this error? thanks
@ericwilson8665
@ericwilson8665 4 жыл бұрын
These coding tutorials are awesome! Thanks!
@ComputerSciencecompsci112358
@ComputerSciencecompsci112358 4 жыл бұрын
Thank you !
@clarence2c408
@clarence2c408 3 жыл бұрын
THANK YOU FOR YOUR CONTRIBUTION, SIR.
@pengaturcaraankuantum
@pengaturcaraankuantum 3 жыл бұрын
Wow! Thank you for sharing and teaching ... you're awesome.
@nandhuindian3181
@nandhuindian3181 2 жыл бұрын
Excellent
@ASNPersonal
@ASNPersonal 4 жыл бұрын
While running below code getting error "ValueError: operands could not be broadcast together with shapes (2504,) (0,)" # Calculate the money flow index MFI = 100 * (np.array(positive_mf) / (np.array(positive_mf) + np.array(negative_mf) )) MFI
@anthonywhyte8173
@anthonywhyte8173 4 жыл бұрын
Double check all your your i's and your 1's in the loops. It's very easy to make a typo. I had the same issue.
@Lejik007
@Lejik007 4 жыл бұрын
Can you create video about Market Facilitation Index(MFI) because it is have the same names
@sitasoni1707
@sitasoni1707 4 жыл бұрын
Owsome
@akhilkn225
@akhilkn225 4 жыл бұрын
👍
@Lejik007
@Lejik007 4 жыл бұрын
Hey, how r u , can you create video about Fibonacci Retracements
@k2icc
@k2icc 3 жыл бұрын
Nice to add an average line on it too.
@Connor-pj2tg
@Connor-pj2tg 4 жыл бұрын
As part of my final year project I'm trying to predict stress, how would you suggest I do this?
@hiw92
@hiw92 4 жыл бұрын
Man, what do you mean by “stress”?
@Connor-pj2tg
@Connor-pj2tg 4 жыл бұрын
@@hiw92 like anxiety. Panic. Stressful situations based on heart rate
@hiw92
@hiw92 4 жыл бұрын
@@Connor-pj2tg Did you study linear regression, something like econometrics?
@hiw92
@hiw92 4 жыл бұрын
@@Connor-pj2tg basically, if i had the project on predicting the heart rate, I would most likely use variables such as age of the person, his/her normal heart rate and heart rate at the previous period
@hiw92
@hiw92 4 жыл бұрын
@@Connor-pj2tg If you want, we could talk on Facebook or any other platform. I have studied the econometrics and advanced econometrics at uni.
@nsnilesh604
@nsnilesh604 3 жыл бұрын
Great explanation 👌
@AlexB-tn1ec
@AlexB-tn1ec 3 жыл бұрын
where can I get the file?
@AlonAvramson
@AlonAvramson 4 жыл бұрын
Also there is a library for importing price directly from Yahoo, using yfinance, yu might like to explore it,
@gacctom
@gacctom 3 жыл бұрын
thank you~
@herisoe4832
@herisoe4832 4 жыл бұрын
Awesome..
@AlonAvramson
@AlonAvramson 4 жыл бұрын
Thank you so much, it really helps me in my python learning.
@ComputerSciencecompsci112358
@ComputerSciencecompsci112358 4 жыл бұрын
Glad to hear!
@RiccardoVecchione
@RiccardoVecchione 4 жыл бұрын
Very good video but don't use google colab. You are intelligent and you can imagine why..........
@peterandersson1582
@peterandersson1582 4 жыл бұрын
Why?🤔
@RiccardoVecchione
@RiccardoVecchione 4 жыл бұрын
@@peterandersson1582 Don't you have the suspect that each line of code you write in google colab is copied and spied? Better to use an environment inside your own computer and possibly without microsoft. And above all disconnected from internet.
@ronwilliams4184
@ronwilliams4184 4 жыл бұрын
@@RiccardoVecchione Except that most people, even with viable code will still lose money, lol.
@RiccardoVecchione
@RiccardoVecchione 4 жыл бұрын
@@ronwilliams4184 of course... there are the shit strong powers on the market.... even with the best strong artificial intelligence it will not be possible to make money until the shit strong powers that are behind our puppet governments will be erased, cancelled from the face of the Earth.
@gkollias14
@gkollias14 4 жыл бұрын
what is 'shit strong powers on the market' and 'best strong artificial intelligence' ?
Stock Trading Using Bollinger Bands & Python
28:38
Computer Science (compsci112358)
Рет қаралды 19 М.
Errichto Stream, POI 22/1
3:55:08
Errichto Algorithms
Рет қаралды 157 М.
Watermelon magic box! #shorts by Leisi Crazy
00:20
Leisi Crazy
Рет қаралды 51 МЛН
哈哈大家为了进去也是想尽办法!#火影忍者 #佐助 #家庭
00:33
pumpkins #shorts
00:39
Mr DegrEE
Рет қаралды 34 МЛН
Web Scraping Stock Tickers Using Python
25:28
Computer Science (compsci112358)
Рет қаралды 24 М.
On-Balance-Volume (OBV) Stock Trading Strategy Using Python
30:33
Computer Science (compsci112358)
Рет қаралды 16 М.
Algorithmic Trading Strategy Using Three Moving Averages & Python
31:46
Computer Science (compsci112358)
Рет қаралды 54 М.
Build a full stack UBER EATS clone - 3/5 Days Challenge  🔴
3:59:46
notJust․dev
Рет қаралды 398 М.
Stock Trading Strategy Using Python & DEMA
23:42
Computer Science (compsci112358)
Рет қаралды 9 М.
Windows Privilege Escalation for Beginners
3:11:45
The Cyber Mentor
Рет қаралды 102 М.
Build a Realtime Chat App in React Native (tutorial for beginners) 🔴
3:49:50