Green Line Breakout Calculator | Python For Finance Episode 4

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 ธ.ค. 2024

ความคิดเห็น • 83

  • @Gustavo-so7zk
    @Gustavo-so7zk 4 ปีที่แล้ว +13

    I would absolutely love the idea of programming alerts when a stock breaks through the green line like you said at the end of the video. That would be awesome.

    • @RichardMoglen
      @RichardMoglen  4 ปีที่แล้ว

      I think its definitely do-able!

    • @markus231
      @markus231 4 ปีที่แล้ว

      ​@@RichardMoglen greate idea! Have you done it already? btw yur website is down? knowledgeintowealth.com/

  • @anilmm2005
    @anilmm2005 2 ปีที่แล้ว

    Wonderful video. Please keep these series going Richard

  • @UtsavShukla400
    @UtsavShukla400 11 หลายเดือนก่อน

    This is very helpful. Please keep the series going!

  • @yingkitchow5160
    @yingkitchow5160 4 ปีที่แล้ว +1

    Ive watched all previous 3 videos on this python series, I have learnt a lot from you! love what you're doing here. keep up the great work mate!

    • @RichardMoglen
      @RichardMoglen  4 ปีที่แล้ว

      Thanks man! Have a great weekend!

  • @actuallyme7860
    @actuallyme7860 3 ปีที่แล้ว +1

    I love this series so much! Gives me such a good introduction to algo trading and Python in general. Thank you for that.

  • @the_growth_mindset.
    @the_growth_mindset. 3 ปีที่แล้ว +1

    The fact that there are 0 dislikes says it all. Great video!

  • @josephgibbons1195
    @josephgibbons1195 4 ปีที่แล้ว

    Thanks again for another awesome video! I adjusted 'while' loop to be a 'for' loop and used a list of tickers, plus I added an empty list which got filled with tickers of stocks whose most recent greenline is within 2 months so I can add them to my watchlist! It really is so fun following these videos and applying them to my own research.

    • @RichardMoglen
      @RichardMoglen  4 ปีที่แล้ว

      It's great to see someone get so much out of them! I have a modified version of the program that saves all the greenlines so I can generate alerts when a stocks crosses above a green line. Have a good one Joseph!

    • @IIChewyBaccaII
      @IIChewyBaccaII 4 ปีที่แล้ว

      Would you mind posting your script? Sounds really amazing

    • @veeravelaga2551
      @veeravelaga2551 3 ปีที่แล้ว

      @@RichardMoglen The Green Line date are coming as month end dates as we are grouping by month. Can you share the program that can alert for Green line cross

  • @kenhammond7061
    @kenhammond7061 4 ปีที่แล้ว +2

    Thanks for doing these videos Richard

  • @More2lifee
    @More2lifee ปีที่แล้ว

    liked and subcribed!! u rock !! learing a lot of basic things from u!! ur teaching method is amazing! straight to the point n simple! on top u have a dedicated google drive code list!!wow!!hats off to ur dedicaton towards ur knowledge and passion towards teaching the audience!!😎💛-Your new subscriber!!

  • @davidgalea430
    @davidgalea430 3 ปีที่แล้ว

    Thank you, Richard, great instructional videos

  • @carolynloveland9374
    @carolynloveland9374 3 ปีที่แล้ว +1

    Good Evening Richard! Just watched this for the first time. I'd be extremely interested in looking at a program that emails you alerts when you hit a green line. Love your work . Dont know how you manage to find all the time to do this and be a full time student. You rock!

  • @secretpanda0072
    @secretpanda0072 4 ปีที่แล้ว +1

    Great stuff Richard!

  • @Jay21121
    @Jay21121 4 ปีที่แล้ว +2

    Great video... thank you for posting! Would be really helpful for those of us who are learning Python to comment each line of code, to detail what's happening. I have to do that for my own code, so I can remember later what I'm doing :-)

    • @RichardMoglen
      @RichardMoglen  4 ปีที่แล้ว +1

      Jay good point, I will comment every line today and re-upload the code.

  • @antoniommota31
    @antoniommota31 3 ปีที่แล้ว +1

    Hello!, @Richard Moglen, I'm from Brazil, thank you so much for learning

  • @steverosenthal294
    @steverosenthal294 4 ปีที่แล้ว +1

    Thanks for creating the program. It would be very beneficial if an Excel spreadsheet with symbols could be incorporated with the program to due a loop through the symbols. Also, the notification feature you mentioned would be an excellent addition.

    • @RichardMoglen
      @RichardMoglen  4 ปีที่แล้ว +1

      I will post the excel version in the google drive folder. Once I get the alerts up and running I will make a video on that as well.

    • @steverosenthal294
      @steverosenthal294 4 ปีที่แล้ว

      How do you access the google drive folder? Thanks again SR.

    • @RichardMoglen
      @RichardMoglen  4 ปีที่แล้ว

      @@steverosenthal294 there's a link in the description

    • @steverosenthal294
      @steverosenthal294 4 ปีที่แล้ว

      I have to ask where is the description?

    • @RichardMoglen
      @RichardMoglen  4 ปีที่แล้ว

      @@steverosenthal294 if you click show more under the video and my name that's the description

  • @kasranasiri1502
    @kasranasiri1502 3 ปีที่แล้ว

    hi Richard thankyou so much for this series this is soo helpful for me thankyou .

  • @pedrolefteen
    @pedrolefteen 4 ปีที่แล้ว

    Great series! Cheers from Brazil!

    • @RichardMoglen
      @RichardMoglen  4 ปีที่แล้ว

      Thanks Pedro! I hope you are keeping safe!

  • @hannes6116
    @hannes6116 3 ปีที่แล้ว

    Great stuff, thanks

  • @vijayakumarkj80
    @vijayakumarkj80 ปีที่แล้ว

    Hi Richard, It is a great series and you have explained the strategy in the Python program really well. What would be the strategy to exit the stock If I had entered the stock during the Green Line Break out?

  • @mitchc2618
    @mitchc2618 4 ปีที่แล้ว +1

    Hey Richard, thanks for sharing this video. I'm curious, what setup are you using to stream? Thanks!

    • @RichardMoglen
      @RichardMoglen  4 ปีที่แล้ว

      Hey Mitch I use OBS Studio to record and stream. Camera is an 80d.

  • @shikharkhatkar8879
    @shikharkhatkar8879 3 ปีที่แล้ว

    At 9:49 what do you mean by "make sure we are not in this third month". Green line will anyways be drawn right?

    • @RichardMoglen
      @RichardMoglen  3 ปีที่แล้ว

      You must see three closed months before drawing a green line

    • @shikharkhatkar8879
      @shikharkhatkar8879 3 ปีที่แล้ว

      @@RichardMoglen Yeah, that's true but we are using counter for that purpose. why '((index.month != now.month) and (index.year != now.year))' ?

  • @tomtucker4925
    @tomtucker4925 4 ปีที่แล้ว +1

    Richard, your code uses the monthly highs (which are derived from the daily highs) to determine a stock’s all time high and the value of the green line. Yahoo’s closing prices are adjusted for stock splits, but the daily highs are not. Do you see a need to modify the program logic to adjust the daily highs for splits?

    • @RichardMoglen
      @RichardMoglen  4 ปีที่แล้ว

      Hi Tom I see what you mean. Personally I've never had an issue even with stocks which have split

  • @MOTfarris
    @MOTfarris 2 ปีที่แล้ว

    This is also a great one! Thanks for the tutorial. BTW a colon is ":" a semicolon is ";"

  • @apsarag3635
    @apsarag3635 2 ปีที่แล้ว

    Hi Richard.Awesome video.Can you please provide the logic as i have some difficulty in understanding it

  • @RichardMoglen
    @RichardMoglen  4 ปีที่แล้ว +1

    The reason I include the ((index.month != now.month) or (index.year != now.year)): condition is to make sure the current month does not activate a green line.

    • @michaelscarn7375
      @michaelscarn7375 4 ปีที่แล้ว +1

      but what does year has to do with it? Isn't month condition not enough? Great stuff btw.

  • @vineetsharma1621
    @vineetsharma1621 2 ปีที่แล้ว

    Hi Richard, thanks for this video, very well explained, one ques why only 3 months counter?

    • @vineetsharma1621
      @vineetsharma1621 2 ปีที่แล้ว

      also let me know, your BUY after breakout or after passing 3 months?

  • @paulchoi8
    @paulchoi8 4 ปีที่แล้ว +1

    Thanks for the video. Could also visualize the outcome pls?

    • @RichardMoglen
      @RichardMoglen  4 ปีที่แล้ว

      Hi Paul, what do you mean by visualize

  • @Ravi-sl5ms
    @Ravi-sl5ms 3 ปีที่แล้ว

    Thanks Richard, could you please provide names of the books on 'python for the stock market' that we can follow to get more details on what you are teaching here in this course..

  • @davidbond9783
    @davidbond9783 4 ปีที่แล้ว +1

    Awesome video!!!!:-)

    • @RichardMoglen
      @RichardMoglen  4 ปีที่แล้ว

      Thanks jf! Have a great weekend!

  • @eleanortay2389
    @eleanortay2389 3 ปีที่แล้ว +1

    Hi Richard, does this code take into account that within the 3 months that the stock does not exceed its current green line value, it might drop dramatically, even below its previous green line value?

    • @RichardMoglen
      @RichardMoglen  3 ปีที่แล้ว

      Yep how far it drops below does not matter

    • @Alem_Mehari
      @Alem_Mehari 11 หลายเดือนก่อน

      It’s called a stop loss. Lol

  • @sulamoon777
    @sulamoon777 4 ปีที่แล้ว

    Hi, thank you for the great video! May I ask the excel file used in excel version is the same as episode 3?

    • @RichardMoglen
      @RichardMoglen  4 ปีที่แล้ว

      It's an updated version that I get from Marketsmith every week

  • @jayjayjayjayjaylu5
    @jayjayjayjayjaylu5 4 ปีที่แล้ว +1

    Hey Richard, again thank you for the python series! I have a question regarding the error that was mentioned at the near end of the video. How is it that when we drop values with a volume of fewer than 1000 shares, the error is automatically eliminated?

    • @RichardMoglen
      @RichardMoglen  4 ปีที่แล้ว

      Its because for some tickers there is previous history in the yahoo database. if you look at df.head() of some stocks you will see some weird data but always the volume is much less than normal. So this statement trims the days at the start with very little volume to start the dataframe at the true IPO

  • @shikharkhatkar8879
    @shikharkhatkar8879 3 ปีที่แล้ว

    Hey bro. Great content. i have a question
    "if counter==3 and ((index.month != now.month) and (index.year != now.year)):".
    Shouldn't this be the if statement (instead of or I used and) because we want the same month in the same year and not the same month or the same year

  • @luka2987
    @luka2987 4 ปีที่แล้ว

    When the program asks for a stock symbol, is it possible to print something along the lines "There is not any stock with a symbol of" + "stock" + "please try another symbol" when the user inputs an invalid ticker symbol like 123 and if so how and where could i implement it in the code. Like is it possible to check if the stock input is in yf data base? Pretty messy question sorry for that :D.

    • @RichardMoglen
      @RichardMoglen  4 ปีที่แล้ว

      No problem that's a good question. You could absolutely set up an input protection while loop. In the look check if it is all letters and catch an error if there isn't any info on the ticker. Loop that until the conditions are satisfied

  • @mank511
    @mank511 4 ปีที่แล้ว +1

    Plz upload a video for Indian share market...

  • @rajesha5798
    @rajesha5798 4 ปีที่แล้ว

    Can we use the same strategy for a Redline - SELL the stock when it breaks the Low....?

  • @MrAmananeja
    @MrAmananeja 2 ปีที่แล้ว

    Hello, How are you doing? Just got into the world of finance. Is the code available to download?

  • @michaelscarn7375
    @michaelscarn7375 4 ปีที่แล้ว

    Would you say that the following structure could be replaced by having a counter set to 4?
    " if counter==3 and ((index.month != now.month) or (index.year != now.year)):"

  • @pressrepeat2000
    @pressrepeat2000 3 ปีที่แล้ว

    I really wish you were doing more of these Python tutorials and some more of these advanced videos. The market and stock stuff you’re doing now is done by some many others and it doesn’t feel useful (and TBH you don’t have anything unique to say there vs hundreds of others trading-focused accounts), while your programming / Python videos really are unique and really “something special” because you do them so well and so clearly, in a very unique way. The trading / market stuff isn’t bad but it’s just not special, like this.

  • @mikelayman5972
    @mikelayman5972 ปีที่แล้ว

    Yes GLV Email

  • @TraderPulse
    @TraderPulse 4 ปีที่แล้ว +1

    Why does the consolidation period have to be 3 months?
    Where do I learn more about this green line concept?

    • @RichardMoglen
      @RichardMoglen  4 ปีที่แล้ว +1

      It's to ensure a significant base. I made a video dedicated to it: th-cam.com/video/pV4rXBw3cYo/w-d-xo.html

  • @rounaktosh6576
    @rounaktosh6576 2 ปีที่แล้ว

    Hey, can u pls explain the idea behind the index.month/year != Now.month/year pls😅

  • @sundaresann4749
    @sundaresann4749 4 ปีที่แล้ว

    Next video concept:
    How to retrieve live stream of data from excel and use with python?
    Suppose if column A1 is updated every second, how can we use the last updated value and store it in a variable? Here I'm talking about LTP and ATP

    • @RichardMoglen
      @RichardMoglen  4 ปีที่แล้ว +1

      I believe that the normal way of converting an excel file to a pandas dataframe would still work for this. Just need to specify which column you want and everything should work.

    • @sundaresann4749
      @sundaresann4749 4 ปีที่แล้ว

      @@RichardMoglen Yeah that's good only if we're working with historical data. Here its live data which gets updated every second, the same method is not working, because once pandas df is initiated it calls the first initiated value in the df, not the recent updated value in excel even though the variable is in while loop to get reinitialize df.

  • @michaelscarn7375
    @michaelscarn7375 4 ปีที่แล้ว

    Right now there no stock on the market that satisfy all these conditions)

    • @RichardMoglen
      @RichardMoglen  4 ปีที่แล้ว

      ESTC is a recent one that I have been watching