Highly Profitable Stochastic + RSI + MACD Trading Strategy? Testing Data Traders strategy in Python

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

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

  • @ふらちゃん-y6i
    @ふらちゃん-y6i 2 ปีที่แล้ว +12

    Thanks a lot for the videos. Learning a lot from them already.
    In case you need to stop the warning messages regarding the df.append deprecation, replace the commented line below, with the bottom 2 lines:
    #dfx = dfx.append(mask, ignore_index=True)
    dfxn = pd.DataFrame([mask])
    dfx = pd.concat([dfx, dfxn])

    • @Algovibes
      @Algovibes  2 ปีที่แล้ว +1

      Thanks a lot for your input mate, appreciate it!

  • @St.PatricksTrades2
    @St.PatricksTrades2 3 ปีที่แล้ว +5

    I love to see it. My first time seeing your channel, this is very interesting to me Ive never used an algorithm before but these are the 3 indicators I trade off of with heavy bias to the stochastics. This would really make my life a whole lot easier

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

      Thanks for your feedback buddy :-)

  • @Oiutrem
    @Oiutrem 3 ปีที่แล้ว +6

    Your content is awesome! Please keep doing the great job!
    I would like to suggest for you to do something with divergences, I’m trying to build something with it but I’m stuck.

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

      www.google.com/url?q=th-cam.com/video/9o6BG-dCgco/w-d-xo.html&sa=D&source=editors&ust=1631517918283000&usg=AOvVaw0y4I1XE4AvOWsy3w3fxlTf
      This is the strategy that I’m trying to backtest

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

      Thanks a lot for your kind words and also for sharing the strategy. Really appreciate it.

  • @toddroloff93
    @toddroloff93 8 หลายเดือนก่อน +1

    Thanks for the videos, very informative and I always come away learning something new. 👨‍🎓

    • @Algovibes
      @Algovibes  8 หลายเดือนก่อน +1

      Very happy to read. Thanks mate! Be invited to check out my other vids and let me know what you think!

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

    Thanks for the video. I found a 15m timeframe with a 20 lookback provided better results on BTC-USD but I used a MACD over/under Signal trigger instead of MACD over or under 0 etc.

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

      Thanks for watching and sharing your strategy!

  • @shagarcool
    @shagarcool 7 หลายเดือนก่อน +1

    Thanks for this video. I have a question. Which is more beneficial in long run for Algo trading? Python or mql5. And why?

  • @Dr.Sortospino
    @Dr.Sortospino ปีที่แล้ว +1

    Matlab fanatic here that cannot connect to brokers API so it's learning Python. Thank you for these videos
    I think here makes more sense to buy when RSI is

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

      Nice :-) Welcome to my channel, I basically got over 180 videos which you are kindly invited to check out.

    • @Dr.Sortospino
      @Dr.Sortospino ปีที่แล้ว

      @@Algovibes I really am doing it!
      but simple question, if I want to plot the data from stock, or RSI, without the weekend, how do you do?
      on matlab is supereasy, but here I couldn't find anything immediate

  • @AlgoTradingX
    @AlgoTradingX 3 ปีที่แล้ว +2

    Cool! Nice to discover a fellow algo trader. ❤️

  • @tyadolph1835
    @tyadolph1835 2 ปีที่แล้ว +3

    Thanks for sharing this video it was very helpful! I am new to python and was just curious as to why you chose lags=4, and how the output would be different if you chose another value?

  • @ok.mogart
    @ok.mogart ปีที่แล้ว +1

    Super. One suggestion, when you are explaining about programming the indicators, first show it on chart as it becomes easy to visualize while coding.

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

      Thanks for the suggestion!

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

    Thanks for your video. Amazing content.
    Why can't you have a buy trigger when the stoch fast (K) and slow (D) lines are below 20?
    Or have a a sell trigger when the lines above 80?
    These seem to be the stronger oversold and overbought "regions".
    in you video you stipulated the signals to be between (20.80).

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

      Thanks a ton Pedro! Was just sticking to the strategy presented by DT. But ofc do your amendments and test them. If you find anything interesting let me know!

  • @randomdude79404
    @randomdude79404 3 ปีที่แล้ว +7

    Could you perhaps do a video where you introduce stop loss and take profit levels in the pandas backtest ? I think this would make it even more realistic as this is how most of us trade .

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

      Hi buddy,
      did you already check the vid implementing a trailing stop loss?
      th-cam.com/video/V6z1ME3-0_I/w-d-xo.html

  • @tommylaw661
    @tommylaw661 2 ปีที่แล้ว +1

    Great Job! Thank for your sharing.

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

      Thx for watching Tommy :-)

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

    excellent TH-cam channel, congratulations, I ask you a question, where could I include the balance variable in testing mode, to know if it gives me profits or losses, the script

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

    Nice and clear video. Looking forward to the exit strategy of this strategy.

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

      Hi buddy, thanks a lot :-)

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

    What can we say except priceless content!!

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

      Thank you very much for your kind words 💜

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

    Great videos! If we join at the code access level, do we have access to previous videos code books, like this one? I've watched many of your videos and want all of them :-). But not sure if you have a repository still of these code books from 6 months or more in the past?

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

      Hi man, thanks a lot! :-)
      There are already a lot of notebooks (including this one) in the drive but if you need older ones you can also reach out.
      Happy to welcome you as a member!

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

    what macbook version do you have? thank you btw i'm your fan ~

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

      M1 Mac, thanks buddy :-)

  • @blackbramfisch6954
    @blackbramfisch6954 2 ปีที่แล้ว +1

    Hi, AlgoVibes. I'm commenting from South Africa. I love your videos. I just want to know what IDE are you using in this video?

    • @Algovibes
      @Algovibes  2 ปีที่แล้ว +1

      Hi buddy, greetings to 🇿🇦 ! Thanks a lot for your kind words.
      I am using Jupyter Notebook here (rather not an IDE).

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

      @@Algovibes Thanks bro. Keep up the good work :-)

  • @knawursztlow2416
    @knawursztlow2416 2 ปีที่แล้ว +1

    That was great, everything explained very simply and straight, thank you.
    Have you thought about creating bot based on triple SuperTrend, RSI and EMA?

    • @Algovibes
      @Algovibes  2 ปีที่แล้ว +1

      Thanks for watching man! Not yet but I noted it, thanks for the suggestion! BTW I have built a bot based on that strategy as well, be kindly invited to check it out.

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

    I tested for a whole day and no trades have been detected. However the conditions were present many times in Binance. Thank you anyway for your efforts. Go on

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

      Hi buddy. This shouldn't be the case but I am quite sure it is most probably because of the lag method. If you are just working without lags it should always hit when the conditions are present.

  • @abeneshkumaresan2282
    @abeneshkumaresan2282 2 ปีที่แล้ว +1

    Another great knock by Algo vibes. Can you share some binance futures startegy where we can use LONG and SHORT for futures trading.

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

      Thank you very much Abenesh!

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

    Very clear and brilliant! As always, tks!

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

      Thank you buddy! :-)

  • @maurosogni7419
    @maurosogni7419 2 ปีที่แล้ว +1

    Thank you Algo for the videos.
    Do you have any video in which you BACKTEST some strategy in which you define EntryPoint and then set "take Profit" and "Stop Loss"?

    • @Algovibes
      @Algovibes  2 ปีที่แล้ว +1

      Thanks a lot Mauro,
      yeah, pretty sure I covered it here:
      th-cam.com/video/4MnNft7Squk/w-d-xo.html

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

    nice havent done any crypto strategies. first time using ta. helps me get better at python.

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

      That's awesome to hear! :-)

  • @davidjack5876
    @davidjack5876 2 ปีที่แล้ว +1

    Great vid, I was wondering wondering how much higher the profit was compared to the increase in value

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

      Thanks mate, good question! Should have covered that, good point.

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

    Thanks for sharing your skills, maybe you could add a condition to the Stoch to be increasing or decreasing when it's greater than or less than...and also to the mac's histogram to be increasing.

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

    Thanks a lot, for the effort you put in. All your videos are really helpful!
    I get an error with the actuals;
    TypeError: '

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

      Thanks mate. Can you pass me a timestamp where you are getting this error? thx!

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

    Great Video!
    Copied this code down to try and mess around and noticed when doing the following line, certain valid trades on the initial rows were being dropped:
    actuals = frame[frame.Buying_dates > frame.Selling_dates.shift(1)]
    I managed to get around this by implementing the following instead:
    drop_rows = []
    for i in range(len(frame) -1):
    if frame.iloc[i].Selling_dates == frame.iloc[i+1].Selling_dates:
    drop_rows.append(i+1)
    actuals = frame.drop(index=drop_rows)
    This just loops through and drops the next row if the selling date of the current iteration matches the next row and thus removing duplicates etc whilst still maintaining the valid trades that appear to get dropped on the previous method...
    I'm sure there's a slightly cleaner way of dropping within the loop but my brain is slowing down for the day!
    Would love to get your comments or feedback on this! Thanks again or the video, top stuff :)

    • @Algovibes
      @Algovibes  2 ปีที่แล้ว +1

      Hey man, thank you very much. I am sorry coming back so late to you, this comment was running into the held of review section.

    • @deniszhuravlev9874
      @deniszhuravlev9874 2 ปีที่แล้ว +1

      This is too complicated.
      just use:
      actuals = frame.drop_duplicates(subset = 'Selling_dates', ignore_index = True)

    • @genaladeen7276
      @genaladeen7276 2 ปีที่แล้ว +1

      @@deniszhuravlev9874 Nice one!
      Was quite early in to writing code then.. simplicity is always the answer

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

    just wonderful, thank you

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

      Thank you my friend!

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

    Love this video
    Can't help but feel it worked better on crypto because they generally had/have a bullish market.
    I mean look at ETH, one good GREEN trade cancels out like three wrong REDS

    • @Algovibes
      @Algovibes  2 ปีที่แล้ว +1

      Thanks a lot David! I applied that on crypto here in case you are interested:
      th-cam.com/video/X50-c54BWV8/w-d-xo.html
      Let me know what you think!

  • @tobyonabolu4395
    @tobyonabolu4395 2 ปีที่แล้ว +1

    This is great love your content

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

      Thanks buddy

  • @_eFe_666
    @_eFe_666 2 ปีที่แล้ว +1

    Hi Algo. Great stuff! Keep it up. Question, i replaced the yfinance lib with the binance API to be able to back test what ever coin with no 60day limit that yfinance has. But when I compare results you show here with BTC I get diff results. Any feedback is greatly appreciated. Thx!

    • @Algovibes
      @Algovibes  2 ปีที่แล้ว +1

      Thanks mate. Could you elaborate a bit more on what's exactly different. Thx a lot in advance

    • @_eFe_666
      @_eFe_666 2 ปีที่แล้ว +1

      ​@@Algovibes of course! and thx for all the support. I'm using this dataframe with the binance api pd.DataFrame(client.get_historical_klines('BTCUSDT', '30m', '15 Jul, 2021', '10 Sep, 2021')) . Trying to simulate the same timeframe you have in this video, but I only get 1 entry in the actuals. Why could it be?

    • @Algovibes
      @Algovibes  2 ปีที่แล้ว +1

      @@_eFe_666 I just executed this exact syntax and I got 2728 rows. Can you double check?

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

      ​@@Algovibes Correct! That is the amount of rows in the dataframe. But then after all the triggers and calculations buy_dates/sell_dates and buyprices/sellprices sin in this video I only get 1 (one) row in the ACTUALS frame. How about you?

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

      @@Algovibes So my doubt is if the result could be that different using the yf lib or the binanace api ?

  • @darkDRAGONmind117
    @darkDRAGONmind117 2 ปีที่แล้ว +1

    Hi, nice content and understandable for me as a beginner in crypto. Would an AI be better to find a trading strategie? You just need many more datas but with the api of binace it should not be a problem.

    • @Algovibes
      @Algovibes  2 ปีที่แล้ว +1

      Thanks man. Yes, applying ML is on my list. Anyhow thanks a lot for your suggestion.

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

      @@Algovibes you habe so much knowladge about stock that you could make one big table of data from binance with f.e. the heatmap of coalition between the coins as bias that make the ML realy great

  • @telanerv
    @telanerv 12 วันที่ผ่านมา

    learning how to script out my strats in python for backtesting purposes. if you have any resources to share that could help i'd be so grateful. thank you for your content learning a lot through it!

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

    Thank you. I hope I gonna understand it one day (I'm a rookie)

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

      Thanks for watching :-) Fingers crossed!

  • @诗雨黄-m3r
    @诗雨黄-m3r 3 ปีที่แล้ว +1

    I tried coding your strategy is really helpful,but i suggest that we can count the sum of triggerring the strategy in a period,which is sorted,then choosing the top 5 stocks,that i called "hot stocks".It's not mature suggestion,just an idea shared😄

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

      Thanks mate for your comment and also for sharing your thoughts!

    • @诗雨黄-m3r
      @诗雨黄-m3r 3 ปีที่แล้ว

      @@Algovibes i am Continuing learnning your lesson,it's easy to start by your ways,thanks a lot😁

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

    The actuals test will always drop the first buying date, right? In practice, I think a different exit strategy would work better than waiting for the next sell signal. The sell signal would be a better short entry than a long exit.

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

    Hi bro, thank your for your amazing videos, please upload more videos about binance algorithmic trading

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

      Hi mate, thanks a lot for your kind comment.
      I surely will.

  • @vishnuajit5492
    @vishnuajit5492 2 ปีที่แล้ว +1

    Brilliant!

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

      thanks buddy. Happy you like it!

  • @mrotaveria
    @mrotaveria 2 ปีที่แล้ว +1

    Thanks for these videos, I am learning a lot from you.
    One thing I noticed is that when you calculate the actuals using "actuals = frame[frame.Buying_Dates > frame.Selling_Dates.shift(1)]", it works but is always removing the first row of the frame (even if it's a valid pair of dates). Maybe for the first row when it tries to do a comparison to a non existing previous selling date it returns false, hence removing the row. In your video you can observe that the first two lines are removed. The 2nd one correctly removed because of the logic, but the first one should have remained. Check 18:54 and then 19:10.
    Can you think of any solution to not trim the first line? For now I didi as :
    actuals = frame[(frame.Buying_Dates > frame.Selling_Dates.shift(1)) | (frame.index==0)]

    • @Algovibes
      @Algovibes  2 ปีที่แล้ว +1

      Hi man, thanks a lot. That's awesome to hear.
      Yes, I am aware of that and covered it here at around minute 13:
      th-cam.com/video/rYfe9Bg2GcY/w-d-xo.html

    • @mrotaveria
      @mrotaveria 2 ปีที่แล้ว +1

      @@Algovibes cool , will implement that approach, its cleaner, thanks

  • @NitinPatil-zg4oi
    @NitinPatil-zg4oi 2 ปีที่แล้ว +1

    In TA-Lib-0.4.24, ta.momentum attribute is not there, hence can you please provide the alternative, Thanks

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

      Using ta here and not talib! It's a different library, can you double check?

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

    Thanks for this one! Did you manage to code the crypto bot with this one? I'd be interested to see the results :) Also, I was following your video but wanted to implement the exit strategy of the original video (x% of profit) but I'm currently stuck. I'm new to Dataframes, but I guess I need to keep track of the buying price using the buying triggers you showed in the video, and whenever the buying price meets the exit condition (this is the part I'm struggling to do with DFs) sell the position. Do you have an example in another video where you keep track of buy price in the position and match it with a row in DF that meets the condition to sell and so on? I've found videos in your channel that have exit condition independent of buying condition (example cross SMAs), but it's getting difficult when your selling condition depends on your buying price.

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

      Welcome mate. Yes, I already did that here:
      th-cam.com/video/X50-c54BWV8/w-d-xo.html
      Regarding your 2nd question, can you check this one here?
      th-cam.com/video/rYfe9Bg2GcY/w-d-xo.html
      I think I was doing something in the direction. Ofc correct me if I got you wrong.

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

      Hi Martín, did you figure out how to incorporate a stop loss or take profit into this backtesting code? I've been spending many hours trying to work it out using the same logic you were suggesting of defining the buy price by referring to the close price on the same row as where the buy condition occurred. But my python knowledge is near non existent so I'm having a lot of trouble!

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

    thanks for the good tutorial. can you please make video on back testing?

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

      Thx :-)
      Already got some videos on that. Could you elaborate on what you would be interested in? Thanks in advance!

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

      @@Algovibes Yes, I am go throughout All videos in your play list. Thanks for you making such a good videos.

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

    I would like to suggest a dollar cost average video on spy or another stock, with variable amount or day of the month

  • @raspotin2
    @raspotin2 3 ปีที่แล้ว +2

    Nice content but I would have integrated the brokerage fees into account, and checked also the stock trend in the same period to avoid overly optimistic results.
    Also, I think that using a proper backtesting library in python would be great to have rigorous backtesting results.

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

      Thanks for your feedback and sharing your thoughts!

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

      @@Algovibes Hi How can I contact you for some explainer videos for my indicators strategy ?

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

      What do you consider as a 'proper backtesting library'?

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

    Great video Sir

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

      Thank you my friend!

  • @Hedriss10
    @Hedriss10 2 ปีที่แล้ว +1

    Nice bro!

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

      Thx buddy :-)

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

    As for other videos very interesting! I am asking to you if and where I could find the script to C&P on Phyton3 to try and experiment with this strategy with a demo account.

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

      Thanks mate. For code access you are warmly invited to become a channel member here:
      th-cam.com/channels/87aeHqMrlR6ED0w2SVi5nw.htmljoin

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

    Nice video and very clear even if we are not expert coder. However I noticed all your videos are based on historical datas from yf and not "real time" API where you would have a slightly different logic of coding right ? I don't know if that makes sense but I would love watching a next video with Binance API for example :)
    Cheers.

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

      my bad I think you made one

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

      Yep, I have a whole playlist on live implementations. Anyhow thanks a lot for your comment :-)
      th-cam.com/play/PL9ATnizYJ7f8_opOpLnekEZNsNVUVbCZN.html

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

    MVP

  • @eduardo9626
    @eduardo9626 2 ปีที่แล้ว +1

    ótimo video!

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

      Obrigado 😛

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

    if you calling strategy you need calculate how much droping and going up.If you find going up and down prices. you find bots :) DCA dolarcost avarage system more profitable strategy but we cant know how to working bulish accounts. And if you cant this. look 15 m chart ADR ATR indicator. ATR its mean avarage true range its mean real price. If you calling more profitable strategy (I bleave you you can) dont ignore ATR.

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

      Thanks for sharing your thoughts buddy!

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

    At 6:00 you begin code to apply the Boolean mask to df. shift(1) looks at the previous row of df, correct? If so then why is an error not generated when it runs that over the first row of df because there is no row before it?

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

      Shift is just shifting a whole column one row "downwards".
      I explained it in more detail here:
      th-cam.com/video/X9jjyh0p7x8/w-d-xo.html

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

      @@Algovibes I think my question still applies. If you shift the column down then wouldn't the first row value be NaN? In the video you linked, with regard to Volume you included .dropna() next. Why don't you have to do that here? Thanks!

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

      I actually tested this by making a list into a df and then trying df > df.shift(1) . The first cell is False. So I guess my question is why isn't that first cell a "name error" with NaN not being defined?

  • @al-aminibrahim1394
    @al-aminibrahim1394 2 ปีที่แล้ว +1

    But due to the fact that cryptos now are fluctuating, can I use this strategy, if you are to give me advice

    • @Algovibes
      @Algovibes  2 ปีที่แล้ว +1

      My videos are not an investment advice nor do I want to give investment advice :-) Simply coding tutorials.

    • @al-aminibrahim1394
      @al-aminibrahim1394 2 ปีที่แล้ว

      @@Algovibes okay thanks

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

    Can you help with this error when running the bot: 'ConnectionError: ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))'. Thanks

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

      this was with a binance connection

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

      Can you just instantiate the client again? So just execute client = Client(api_key,api_secret) again.
      Let me know if that solved the problem.

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

      @@Algovibes Thank you for your advise. It does open the connection again. My problem is that when tis error occurs it will stop the bot and I have to manually restart it.

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

      I just saw your video 'altcoin [high risk] live trading bot' and in it you included the solution to my problem. Thank you very much for your advise and for all your programs. You are a genius.

  • @UnknownUserx-xe1tm
    @UnknownUserx-xe1tm 2 ปีที่แล้ว +1

    is it possible to keep track of the trading fees along with the trades ?

    • @Algovibes
      @Algovibes  2 ปีที่แล้ว +1

      Yes! Covered fees e.g. here:
      th-cam.com/video/HB1CLz0Z1NY/w-d-xo.html

    • @UnknownUserx-xe1tm
      @UnknownUserx-xe1tm 2 ปีที่แล้ว

      @@Algovibes great, thank you for your job and for the feed-back. good luck.

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

    So good tnx 👌🙏

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

      Thanks a lot mate! :-)

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

    please make a video to code relative strength of a stock i am new to coding that indicator i am listining a lot

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

      Hi buddy, thanks a lot for your comment :-)
      Did you check out the RSI videos?
      e.g. here:
      th-cam.com/video/pB8eJwg7LJU/w-d-xo.html
      and here:
      th-cam.com/video/rYfe9Bg2GcY/w-d-xo.html

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

      @@Algovibes i have watched most of your videos but i am not talking about rsi rs to index

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

      @@sumeetsheokand8886
      Ah I See.
      Did you watch the momentum videos?
      Example momentum videos:
      th-cam.com/video/5W_Lpz1ZuTI/w-d-xo.html
      and
      th-cam.com/video/YIsKSQh1xpY/w-d-xo.html
      If that's also not what you are looking for, could you elaborate? Thanks in advance!

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

    How is the result of the trading strategy compared to just investing in the asset?

    • @r.7442
      @r.7442 3 ปีที่แล้ว

      Looks like Btc outperforms. I appreciate the video, but unless the strategy is incedibly good in bear markets it doesnt look very good.

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

    Greaaaaaaaaaaaaaaaaaat video! In my script, the values no return array, only dict, then, don't measure of result :'(

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

      Thanks a lot for your comment :-) Could you elaborate on when this is happening? Happy to help!

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

      @@Algovibes The return of the profitcalc function is a list [008 -007 006], without comma!
      In fact, it should be an array containing: {[008, -007, 006]}... Could you send me your code to compare the execution? Thanks

  • @lucksimi3320
    @lucksimi3320 2 ปีที่แล้ว +1

    Hi
    Can you share the code? Thanks

  • @jackroark6928
    @jackroark6928 2 ปีที่แล้ว +1

    ⭐❤

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

    Goog Morning and Thanks for your Video.
    How can i download source code of your script?
    Thanks

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

      Hi buddy, thanks a lot for your comment.
      Source code isn't published anywhere yet.

  • @y.c.breddy3153
    @y.c.breddy3153 3 ปีที่แล้ว +1

    Are you developed a robot based on your strategy brother I want develop robot based on strategy can you help me

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

      How can I help?

    • @y.c.breddy3153
      @y.c.breddy3153 3 ปีที่แล้ว

      Present I have a robot .ex4 is it possible to add stop loss condition or can I convert .ex4 into source file and I want to make robot i

    • @y.c.breddy3153
      @y.c.breddy3153 3 ปีที่แล้ว

      Hi brother present I have two robots 1. Expert awesome (it's working on demo account only and not working on real account how can I activate serbo for real account that robot format is .ex4 file only 2.i want add stop loss condition to robot .ex4 file is it possible brother 3. I want make a robot based on my strategy can you help me brother

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

    Can you send me the whole code to run in bybit ...lm blind in code but can't skip a second in ur coding tutorial...l just wish and aspire one day l can code

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

    fantastique

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

      Thank you mate :-)

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

    Ufff... I don't have this momentum function in ta package ... I really hate this problem ... :(

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

      That can be solved. So you import ta (not ta-lib but ta) right?

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

    why to write things that after will be cancelled?

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

      Can you elaborate?

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

    Algum brasileiro pra me dizer quais os parâmetros ele usou??

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

      Which parameters do you mean?

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

      @@Algovibes the parameters of macd

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

    A bot on this strategy please using binance api.

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

      Already did that. Be kindly invited to check it out:
      th-cam.com/video/X50-c54BWV8/w-d-xo.html

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

    Waiting for the crypto bot on this strategy

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

      Thanks for your feedback mate! It is coming in the upcoming weeks for sure.

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

    Please provide the file so that we can directly access the code

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

      I am focussing on content atm. Thanks for your understanding!

  • @muayda9675
    @muayda9675 2 ปีที่แล้ว +1

    Hello my friend, why is there no ta.momentum.stoch function in the TALIB library

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

      Hi buddy, using ta here which is a different library than TAlib.
      Check it out here:
      technical-analysis-library-in-python.readthedocs.io/en/latest/

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

    could you upload the code please?

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

      Hi mate,
      the engagement is too low on this one. But maybe in the next weeks/months.

  • @khawajadanyialahmad45
    @khawajadanyialahmad45 2 ปีที่แล้ว +1

    please make a bot with this strategy

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

      Already did here:
      th-cam.com/video/X50-c54BWV8/w-d-xo.html
      Be invited to let me know what you think below that vid!

  • @TheDon0715
    @TheDon0715 2 ปีที่แล้ว +1

    I sent an email for source code, please provide. Thank you!

    • @Algovibes
      @Algovibes  2 ปีที่แล้ว +1

      Hi Ibrahim, just added it to the Drive.

  • @VivekSharma-qc1gj
    @VivekSharma-qc1gj 3 ปีที่แล้ว +1

    Can you please give ipynb file ?

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

      Didn't publish it yet

  • @rollinas1
    @rollinas1 2 ปีที่แล้ว +1

    Does this even work? Asking for a friend lol

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

      What exactly? :D

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

    Too bad it's not open source ! Bye bye.

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

      All content is free. The memberships help me to keep the content free!
      Therefore please don’t leave and also consider becoming a channel member to get access to the code! Thanks a lot in advance and looking forward to have you on board again! :-)

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

    @gettriggers definition, i'm having "TabError: inconsistent use of tabs and spaces in indentation" and could not solve it :(

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

      The error is already providing you the solution. You somewhere messed up with the indentations.

  • @sspmetal
    @sspmetal 2 ปีที่แล้ว +1

    Did have you tried the Pandas_ta library?

    • @Algovibes
      @Algovibes  2 ปีที่แล้ว +1

      Yea, but I prefer ta. Thanks a lot for the input tho!

  • @goninhos1164
    @goninhos1164 2 ปีที่แล้ว +1

    Goodnight!
    I cannot resolve this error:
    File "", line 5
    mask = (df['%K'].shift(i) < 20) & (df['%D'].shift(i) < 20)
    ^
    IndentationError: expected an indented block
    I'm using google collab, If you can help me, I will be very grateful, as I really enjoyed the video.

    • @goninhos1164
      @goninhos1164 2 ปีที่แล้ว +1

      the first error was resolved but this one appeared:
      File "", line 6
      else:
      ^
      SyntaxError: invalid syntax

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

      Hi man, thanks a lot for watching.
      On first sight these are fundamental errors such as indentation as so on. Be sure that you really understood the flow of execution in Python before going through this stuff. I have a lot of stuff on that in my Python Introduction playlist.