FIBONACCI Trading Strategy in Python on Intraday data [must watch] PART I

Поделиться
HTML-код
  • Опубликовано: 29 сен 2024

Комментарии • 69

  • @Algovibes
    @Algovibes  Год назад +9

    Thanks a lot for watching and thanks a lot Arun!
    I am hyped to backtest this over the long term so I rely on you guys pushing this video.
    Just an additional note: In the loop at the end I am just showing the base logic. Everything is rightly calculated but you need to start the iteration AFTER the first hour candle. So it should rather be:
    for index, row in day_one[2:].iterrows():
    .....

    • @arunkamath
      @arunkamath Год назад +1

      Thank you so much ❤️

    • @Algovibes
      @Algovibes  Год назад

      @@8moons853 Sure! Just check out the About section on my channel.

    • @ShankavKaushik
      @ShankavKaushik 11 месяцев назад

      @@arunkamath I am totally amazed that you also found out this idea. I actually have been working on this thing for a long time now . I also developed an indicator that plots the 0.5. 0.618 and 1.5, 1,618 levels based on the first 5 min or first 1 min candle. The accuracy rate is good of the reversals or any highs and lows that form during the day for nifty. If you read this comment let us connect and discuss about it.

  • @ThriveMinutes0
    @ThriveMinutes0 Год назад +2

    Hi 👋
    Can u make a tutorial how to develop a Tool that can execute trades faster that enter the app of Binance and make the order ,that will help when there is news and u want to react fast and buy .is this possible?
    Thx❤

    • @Algovibes
      @Algovibes  Год назад +1

      Sure! I have a whole playlist on doing exactly that (cryptobot playlist). Be invited to explore that and let me know if you need anything else!

    • @ThriveMinutes0
      @ThriveMinutes0 Год назад +1

      @@Algovibes thx sir , not a bot that make trades alone I mean a tool on desktop that I manage it and enter a trade on it and the trade enters at binnace the hole idia to be faster in enter trade than enter the Binance app and to a trade

  • @delfinoburger4798
    @delfinoburger4798 8 месяцев назад +1

    My dear, could you create an algorithm that identifies harmonic patterns?

    • @Algovibes
      @Algovibes  8 месяцев назад

      Thanks for the suggestion! Will see what I can do

  • @ersineser7610
    @ersineser7610 Год назад +2

    Thank you for sharing another great video. I am wondering next videos about this strategy.
    I have question : If i join to code access pack, can i download your previous codes.
    Greetings.

    • @Algovibes
      @Algovibes  Год назад +1

      Welcome buddy. Yes there are not all but a lot of notebooks uploaded! Looking forward to welcome you as a channel member :-)

    • @ersineser7610
      @ersineser7610 Год назад +1

      @@Algovibes Thank you for your reply, i have joined your channel now.

    • @ersineser7610
      @ersineser7610 Год назад +1

      i sent email to your mail address at your profile page. I am waiting your reply. Thanks.

  • @kevthedestroyer1044
    @kevthedestroyer1044 Год назад +3

    Amazing video and can't wait for the second part, I do have one question tho. Should we calculate entry, sl, and tp at the first hour for each day? meaning if the day ends and we got to Jan 2 we need to recalculate the entry, sl, and tp right?

    • @Algovibes
      @Algovibes  Год назад +2

      Thanks buddy. Yes that's the challenge which will be covered in the follow up video. In a nutshell: You need to only pull new levels if you are currently not in a position when the day begins. When you are still in a position from the previous day you are keeping the old levels.

  • @tegabyteX
    @tegabyteX Год назад +3

    Very explanatory video... You just got yourself a subscriber.. Thanks a bunch
    ps: I'd also appreciate it if you can create a free beginners course which explains trading concepts with python here on RUclips and some basic strategies.
    Thank you very much and I'm looking forward to watching more of your videos. Cheers

    • @Algovibes
      @Algovibes  Год назад

      Thanks a lot for subscribing man, that's a big support!
      Be invited to check out my other videos - I am doing and did quite a lot of stuff ranging from beginner to advanced topics. Be invited to e.g. check out the Python for Finance playlist and Cryptobot playlist.

  • @weilun0099
    @weilun0099 2 месяца назад

    Hi may i know the 1st hour candle here is with reference to what timezone?

  • @sheps5656
    @sheps5656 Год назад +2

    Would be very interesting to know if this works on stock Indices like DAX and NASDAQ and even Forex pairs.

    • @arunkamath
      @arunkamath Год назад +1

      It should. I got this strategy for nifty. People use first 5 to 15 minutes candle.

    • @Algovibes
      @Algovibes  Год назад

      Agreed. Should be testing that as well. Thanks for the suggestion!

  • @darth-sidious
    @darth-sidious Год назад +1

    If you ignore high and lows columns you make big mistake because this is a glitch in this strategy. If there is a spike on low or high the sell on profit or stop loss can easily happen few times a day. So it will be nice to see this simulation on entirely year but with highs and lows and start from $100.

    • @Algovibes
      @Algovibes  Год назад +1

      It's not a mistake at all. As said in the video we are only considering closed candles. You CAN construct a strategy with intra candle movements but you won't be able to design it without pulling more granular data.

    • @darth-sidious
      @darth-sidious Год назад

      My mistake I forgot trading bot is market taker not market maker.

  • @kiloromeo4725
    @kiloromeo4725 Год назад +2

    Round 0.382 is the proper inverse of the Fibonacci ratio round 0.618.

    • @Algovibes
      @Algovibes  Год назад

      I noticed that as well but it doesn't matter as it is not part of the strategy.

  • @tmyersf4
    @tmyersf4 Год назад +1

    I probably would have checked if a high of any of the intraday candles broke the target and add that as a win and vice versa if a low of an intraday candle falls below the stop loss line as being a loss. In a live trading scenario you would exit the trade immediately upon hitting the target or stop loss and not still be in the trade if it closes back below. I would also register the entry price as the 0.618 price and not the close. You see a candle could also open below the entry line and close above the target line. In which case this code would miss that. So more things to consider.😁Sorry I am just thinking out loud... I know its just a simple scenario and a bit of fun. Good job. 👍

    • @Algovibes
      @Algovibes  Год назад

      Very good thoughts! Problem with that is: How can you know in a case where both conditions (High above tp / Low below SL) occur which one was occurring first? You can't say without pulling more granular data (which you can definetly do but makes the coding more complex)

  • @joearcuri3377
    @joearcuri3377 Год назад +1

    great "series" man

  • @rollinas1
    @rollinas1 Год назад +1

    Curious what you think about dividend-paying shares and strategies about buying/selling them. Cheers!

  • @SanjayRaut-l4v
    @SanjayRaut-l4v 6 месяцев назад +1

    superb

  • @joserivera7349
    @joserivera7349 Год назад +1

    Thanks for sharing Fibonacci with Python. Maybe you should follow with forecasting.

    • @Algovibes
      @Algovibes  Год назад

      Hi buddy, what in specific would you be interested in? Thx!

  • @anilmm2005
    @anilmm2005 Год назад +1

    Thanks a lot @algovibes for another interesting content. Looking forward to next part eagerly. One suggestion would be to use any other asset class except crypto to analyse these results. Crypto doesn't have any underlying asset.

    • @Algovibes
      @Algovibes  Год назад

      Thanks a ton for the suggestion and for watching as well ofc.

  • @HyiPizdaSkovoroda
    @HyiPizdaSkovoroda Год назад +1

    This is the same thing I asked you a year ago in the comments on RUclips, thank you for fulfilling my wish :)

    • @Algovibes
      @Algovibes  Год назад +1

      Nice 😁 Sorry for delivering that late. Sometimes you just need to remind of stuff. I am always thankful for suggestions!

  •  Год назад +1

    Wie wäre es mal mit einem online-Dashboard mit fastAPi oder flask zur Darstellung der Assets und deren current prices. Und der Auflistung der trades (new, fill, canceled) und der Einer trading Historie ? Das wäre doch auch ein guter 3 Trailer oder?🎉😊

    • @Algovibes
      @Algovibes  Год назад

      Ist eine cool Idee, agreed. Ich hab schon n paar Dashboards gecovered mit streamlit wenn du an sowas interessiert bist. vielleicht kannst du da was sinnvolles finden.

  • @hackmedia7755
    @hackmedia7755 Год назад +1

    do you have any software packages ready to edit for one of the major Investment Firms such as Etrade, TDAmeritrade, Interactive Brokers, or Tradestation? It would be nice to have code ready to go for live automated trading so I can edit and make my own strategies.

    • @Algovibes
      @Algovibes  Год назад

      Well I am using Python for that. Or did I just not get your question?

    • @hackmedia7755
      @hackmedia7755 Год назад

      @@Algovibes what brokers do you have setup for trading with a bot?

  • @bryan-9742
    @bryan-9742 Год назад

    Really good stuff. Quick question, am I doing this right:
    for ii in day_one:
    conditions = [((in_position == False) & (day_one.Close >= entry)),
    ((in_position == True) & (day_one.Close >= tp) | (day_one.Close

  • @arunkamath
    @arunkamath Год назад +1

    Thanks for this algo vibes. In the 3rd video can you please consider high and the low. Because during high momentum days, it sometimes closes directly above the TP. So our entry would be higher than the TP price. Even if it closes below the TP price, the difference is very small so the profit seems negligible.

    • @Algovibes
      @Algovibes  Год назад

      Welcome buddy! You mean the intra candle high and low?

    • @arunkamath
      @arunkamath Год назад

      @@Algovibes yes please.

  •  Год назад +1

    Moinsen. Mega Ding. Ich hab das mal fix in tradingview mit pinescript berechnet. Ich hab jedoch die 0:00 bis 0:59:59 Daten als berechnungsgrundlage genutzt. Ich sag ma so täglich zw. 0,3 und 1,5 A%. Bis jetzt 2 losses. Bei über 100 trades. Funktioniert etwas angepasst an die Eigenarten auch für eth. 🎉

    • @Algovibes
      @Algovibes  Год назад

      Danke! Hast du fees mit berücksichtigt?

    •  Год назад

      @@Algovibes okay. Nein. Aber die sind bei Bybit nur 0.01% als Limit (entry) und takeprofit/ sl (0,06 % als market Order)

  • @JCoyk
    @JCoyk Год назад +1

    Thanks for the great video, I am learning so much from you, very knowledgeable. I can't believe information like this is free!

    • @JCoyk
      @JCoyk Год назад +1

      On another note, what IDE are you using to calculate the I/O as you go? is it an extension that you are using? I'm using VS Code

    • @Algovibes
      @Algovibes  Год назад

      Very welcome! Happy to read. I am using Jupyter Notebook here. VSC is a great pick as well. It also has an extension for .ipynb files which I am using in my videos mostly.

    • @JCoyk
      @JCoyk Год назад

      @@Algovibes Awesome, thanks for the information, I'm just getting started so when I was watching, I kept having to print lines to follow but now I know! keep up the content love it!

  • @miguelcruz570
    @miguelcruz570 Год назад +1

    Hey @AlgoVibes! this is awesome! are you including the short side of the strategy or just focusing on the long side? also, when are you uploading part 2?

    • @Algovibes
      @Algovibes  Год назад +1

      Hi Miguel🙋🏻 Thanks mate. Short selling probably in part 3. First covering the long side. Probably releasing next weekend. I do not have much time during the week (unfortunately).

    • @miguelcruz570
      @miguelcruz570 Год назад

      @@Algovibes Yes please! It would be really interesting to see a long-short trading strategy simulated with your approach!

    • @Luis-i5w5v
      @Luis-i5w5v 9 месяцев назад

      @@Algovibes and Short selling never happened.

  • @haidar901
    @haidar901 Год назад

    If you want gold quality content this guy is just what you need, and damn it , its free! the least we can give back is support. please share it with to anyone you know that is interested for these kind of contents!
    Lastly thank you algovibes ! :)

    • @Algovibes
      @Algovibes  Год назад

      Thank you so much for your kind words my friend. Appreciate you!

  • @jerrywang3225
    @jerrywang3225 Год назад

    Another great video, regarding the iterrows for loop, do you think we should skip the first row since we won't trade on the first hour or am I understanding it wrong, let me know. Thanks

    • @Algovibes
      @Algovibes  Год назад

      Thanks a ton Jerry :-) Please check the pinned comment regarding your point.

  • @rtr195807
    @rtr195807 Год назад

    Am curious like an arrow bow to the next video. ;-)

    • @Algovibes
      @Algovibes  Год назад

      Haha :-) Thanks for your comment mate. You are making future content possible with that!

  • @tudatostrader
    @tudatostrader Год назад +1

    Awesome video!

    • @Algovibes
      @Algovibes  Год назад

      Thanks a lot Marcell. Appreciate your comment!