Backtesting Rayner Teos 26,210% Turtle Trading Strategy in Python

Поделиться
HTML-код
  • Опубликовано: 16 дек 2023
  • In this video we are testing the Enhanced Turtle Trading Strategy presented by Rayner Teo in Python.
    Check out my website here:
    www.pythonforfinance.info
    Get the Notebook/Source code by becoming a Tier-3 Channel member:
    / @algovibes
    Rayners video:
    • This SIMPLE Trading St...
    Disclaimer: This video is not an investment advice and is for informational and educational purposes only.
    #Python #Trading #Strategy
  • НаукаНаука

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

  • @yiminghu4684
    @yiminghu4684 4 месяца назад +1

    Thank you! Look forward for the follow up video!

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

      Thanks a lot for leaving a comment and I will see what I can do!

  • @ragnarocking
    @ragnarocking 5 месяцев назад +2

    love your tutorials. Very easy to follow

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

      Thank you my man :-)

  • @TheEcherriman
    @TheEcherriman 5 месяцев назад +1

    Thank you - there seems to be a bit of a chasm between what Rayner suggested and what you found !

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

      Welcome mate. Thanks for watching!

  • @christosck
    @christosck 4 месяца назад +1

    thank you great material once again. i believe this implementation is missing sell conditions to capture profit, as with stop losses alone you are just taking an unecessary beating.

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

      thanks mate! Quite a good point

  • @toddroloff93
    @toddroloff93 4 месяца назад +1

    Nice Job!!

  • @wilmenmedina9615
    @wilmenmedina9615 5 месяцев назад +1

    The best channel ❤❤❤❤

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

      Thanks mate. I man delighted to read this!

  • @reubenstanley9822
    @reubenstanley9822 5 месяцев назад

    Can you make a video on the Alpaca API?

  • @anilmm2005
    @anilmm2005 5 месяцев назад +1

    Excellent one but yes no of trades and returned are way too low for this one . Waiting for the follow up video

  • @newbiebyte4377
    @newbiebyte4377 Месяц назад

    can you make a video about short squeeze calculation ?

  • @jean-francoislebroch9171
    @jean-francoislebroch9171 5 месяцев назад +2

    Great! Thank you, try to implement the short side, it's part of the gravy

    • @Algovibes
      @Algovibes  4 месяца назад +1

      Thanks buddy, I will!
      Cheers

  • @redspidermkv4525
    @redspidermkv4525 5 месяцев назад +1

    Hi, I may have missed something but your if statements, first, you open a position when you're not in one, setting in_position = True
    You then go straight into the next if statement, if in_position. Perhaps use a continue in the previous if statement? Technically, its possible you're at the lowest point in your 10 day history so it might look like you just opened a position and then immediately closed it again?
    Granted your buy and sell price will be the same so PnL will be 0 for the day but feels like its not an accurate run of the strategy...

    • @parkuuu
      @parkuuu 4 месяца назад

      Yeah it's either he puts a continue below the `in_position=True` or put the 2nd statement in an elif clause instead of IF

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

      Commented on that on another comment. In general: Agreed. In this case: Not necessary (due to a very low probability of occurrence).

  • @tjoppies
    @tjoppies 5 месяцев назад +1

    Brilliant thanks - you always make it look so easy :) - Could you explain how you find the ticker symbols available to look at? Also, might be interesting to look at different timeframes like the 4hours etc as it might produce more trades. also agreed with below adding the short side would be very useful KR

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

      Thanks mate! I am usually just hammering in the symbol I am interesting in into the finance yahoo website and getting the symbol thrown out.

  • @tracywang1
    @tracywang1 3 месяца назад +1

    Should we use adj close or close?

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

      Hard so say in general - it really depends

  • @its_code
    @its_code 5 месяцев назад +1

    ❤❤❤❤❤❤❤😊😊😊😊wowow

  • @killsterak16
    @killsterak16 5 месяцев назад

    Why not you adding the `continue` after your buy condition?
    So that way you will not execute the sell condition on the same candle.
    I was trying to generate signals for my strategies using similar backtest logic and got some absurd signals. Turned out that absent `continue` was a bug that was messing my signals generation logic out.

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

      First of all: Good comment, agreed in general. I didn't do it on this one because the probability you will have a signal on the same candle is so low, I just didn't implement it. You can add it, it won't change anything on the outcome.

  • @TESLA_MOTOR
    @TESLA_MOTOR 5 месяцев назад +3

    How does this trading stuff work? I'm really interested but I just don't know how it go about it. I heard people really make it huge trading

    • @Nicolewhit
      @Nicolewhit 5 месяцев назад

      You actually need an expert trader assign by a registered brokerage company to help you out. I currently trade with Mrs Mary Gail Benner. I think she's the best when it comes to investment.

    • @CYBERTRUCK18
      @CYBERTRUCK18 5 месяцев назад

      Mary Gail is the real deal when it comes to trading. I'm a living testimony too.

    • @TESLA_MOTOR
      @TESLA_MOTOR 5 месяцев назад

      Please how do I contact her?

    • @Nicolewhit
      @Nicolewhit 5 месяцев назад

      She's on telegram

    • @Nicolewhit
      @Nicolewhit 5 месяцев назад

      Grimhal 👈
      That's her username