MOST Effective (?) MACD Strategy for DAYTRADING Crypto - Backtesting Data Traders Strategy in Python

Поділитися
Вставка
  • Опубліковано 4 лис 2024

КОМЕНТАРІ • 36

  • @suriyashopping407
    @suriyashopping407 2 роки тому +4

    First

    • @Algovibes
      @Algovibes  2 роки тому

      👑 Thanks for your comment mate!

  • @eliotharreau7627
    @eliotharreau7627 2 роки тому +1

    It seems working, we will try it. Thank you brother.

    • @Algovibes
      @Algovibes  2 роки тому

      Thanks for watching mate!

  • @BoHorror
    @BoHorror 10 місяців тому

    Trading Plan:
    Trend-Based System:
    Instruments: Works with indices and FX, excluding stocks.
    Timeframes: Any timeframe, with the ideal choices being 1-hour, 4-hour, daily, or weekly.
    Determining Primary Trend:
    If 30 EMA > 60 EMA, the trend is UP; vice versa for a DOWN trend.
    Only take trades that follow the trend. Longs for long trends, shorts for short trends.
    Entry: Price close above 15 EMA.
    Confirmation: Next bar closes higher.
    Stop Loss: 15 or 30 EMA.
    Use a volume indicator as extra confirmation. Ideal for 4 hour and daily however.
    1 Trade consist of 2 Trades
    2 Trades with a SL of 1.5 ATR
    1 Trade with a TP of 1 ATR, another one without a TP
    When one trade reaches one 1 TP. adjust the other trades SL to be the TP of the other trade that just reached profit

  • @kennithsmit2356
    @kennithsmit2356 2 роки тому +3

    Thanks for the great work.
    I am learning alot from them as always😀

    • @Algovibes
      @Algovibes  2 роки тому +1

      Awesome. Thanks a lot for your comment :-)

  • @anshmiester78900
    @anshmiester78900 2 роки тому +1

    Another great video. Thanks for making

    • @Algovibes
      @Algovibes  2 роки тому

      Thanks a ton for watching and your comment :-)

  • @markgamache6377
    @markgamache6377 2 роки тому +1

    If you optimize SL TP for a single coin and MAC D you might over fit. How do you guard against that?

    • @Algovibes
      @Algovibes  2 роки тому +1

      I wouldn't necessarily optimize for SL/TP but rather check that the SL/TP is in alignment with the "usual" move of the asset (e.g. in terms of volatility).

  • @int2str
    @int2str 2 роки тому +2

    Tried this on the Russel 1000 stocks. It's so bad I'm almost inclined to use this strategy and do the opposite of what it tells me :D. What are the default MACD parameters in your library, btw.?
    Results from my own backtest library:
    Positions 1429
    Average profit -0.64 %
    Longest duration 63
    Average duration 5.09
    Wins 425 (29.7 %)
    Average win 5.55 %
    Largest win 18.92 %
    Consecutive wins 12
    Losses 1004 (70.3 %)
    Average loss -3.26 %
    Largest loss -21.98 %
    Consecutive losses 52

    • @Algovibes
      @Algovibes  2 роки тому +1

      Haha :D I didn't test it on stocks yet. Did you take daily data?
      The default parameters of MACD are 26/12/9.
      Thanks a ton for watching and your comment btw!

    • @int2str
      @int2str 2 роки тому +1

      @@Algovibes yupp daily data. Same defaults - great.
      Yes, I watch all your videos and have implemented a backtest library because of this (C++ because my Python sucks...). Heck, I'm even trading one of the strategies you've presented in an actual account now. :)
      So yeah, thanks for your videos and the inspiration. Keep it up :)

    • @maryanmandzyuk4187
      @maryanmandzyuk4187 2 роки тому

      @@int2str witch strategy do you trading?

    • @eliotharreau7627
      @eliotharreau7627 2 роки тому

      I dont know the Russell 1000, but every strategy must be adapted to the asset, the time frame, the market, ect.... you must add more indicators and more meta informations so you dont take all trades.

  • @behdad0979
    @behdad0979 2 роки тому +1

    Very nice like always man... but I have a question every time of you! Why you don't make a SHORT or SELL strategy? pls make both SHORT and LONG strategies together and back test them pls... love you

    • @Algovibes
      @Algovibes  2 роки тому

      Hi mate, thanks a lot. I actually have tons of videos on short strategies so I am not quite sure what you are talking about.

  • @siuwaiyeung5225
    @siuwaiyeung5225 2 роки тому +1

    Sir, can you do a demo of 1) DJI 2) back testing optimization focus on Return and Win Rate

    • @Algovibes
      @Algovibes  2 роки тому

      Hi :-) Could you elaborate on your suggestion? Thx a lot!

  • @flydr2
    @flydr2 2 роки тому +1

    Seems to work on larger timeframes but not on lowers... Still a decent strategy

  • @benswilley7851
    @benswilley7851 2 роки тому +1

    Just got this working and stoploss also appears to be a "magic number" because accepted more or less volatility kills the strategy as well.

  • @borism4849
    @borism4849 2 роки тому

    The problem is that the strategy that you are testing and the buy and hold strategy are not computed on the same timeframe...

    • @Algovibes
      @Algovibes  2 роки тому

      Buy and Hold is never on a timeframe. It is simply the return of the asset itself.

    • @borism4849
      @borism4849 2 роки тому

      @@Algovibes Buy and hold really starts on January 1, 2022. But the strategy you implement, because you have NA values at the start of the dataset (because of the moving averages), does not really start on January 1, 2022.

  • @alexclevario4516
    @alexclevario4516 2 роки тому

    Hello, Sir. I follow you for a long time. You are very brilliant dev. I learn a lot of things from you. I need your help about a thing. Im trying to get datas of an indicator but unfortunately I couldnt make it happen yet. Please could you make a video about it ? The name of indicator that Im trying to get data is DRO( Detrended Rhytm Ossilator) . This ossilator produces numbers and my main purpose is gathering those numbers in excel. I would appriciate a lot if you could help me with this. Thanks in advance.

    • @alexclevario4516
      @alexclevario4516 2 роки тому

      I have a found a strategy by using this indicator. It works almost perfectly. But Im doing it manually now. Im writing those numbers in excel by myself. But that would be very good if you write a script to get DRO indicators data. Then I can share my stratedy with you. And you can take profit from this. Thanks in advance

  • @jouellette899
    @jouellette899 2 роки тому

    ill be skipping this whole video because Data Trader has proven to not know anything about strategies, his vids have been debunked numerous times and as a trader that uses MACD as one of my soul indicators i can tell u right now that THIS is not the professional way to use the MACD. Sure it will gain you SOME results, but only when trend is established, theres a few far better ways to use it that will give u optimal entries....... honestly i was disappointed reading the title and getting my hopes up

    • @eliotharreau7627
      @eliotharreau7627 2 роки тому

      Oh yes ! ok my friend and, what are these best ways to use the macd so ?? 😎

    • @sercan272727
      @sercan272727 2 роки тому

      All strategies have limitations, nobody is gonna share something that has edge on UA-cam, get over it folks. It's up to you to refine these

    • @jouellette899
      @jouellette899 2 роки тому

      @@eliotharreau7627 bullish and bearish divergence, combined with proper location of the signal and macd lines under or above the 0 line, combine that with a confirming RSI bullish or besrish divergence and a confirmed momentum shift is a great start.
      Dont get my previous msg wrong, i love algovibes videos but im tired of seeing data trader's used a credible references

    • @eliotharreau7627
      @eliotharreau7627 2 роки тому

      @@jouellette899 Ok, divergence strategies are best, but it s more difficult to program.

    • @Algovibes
      @Algovibes  2 роки тому +2

      First of all: Please don't skip videos because of the title and at least give them a chance.
      I just want to make clear that I don't promote anyone. I want to give you the tools to backtest certain strategies.
      I don't have a problem with UA-camrs at all presenting trading strategies but the goal is by no means to promote anything.
      Only thing problematic in my viewpoint is, when someone is selling the idea of profitable trading (by e.g. selling a course claiming to make you a profitable trader).