Automated Price Action Patterns Analysis In Python

Поделиться
HTML-код
  • Опубликовано: 7 июн 2024
  • This video provides an explanation on how to combine Candlestick Analysis Patterns in Python and check the number of signals as well as the accuracy of the price action predictions. The methods are compatible with automated trading. A good method to look for relatively strong signal from price action movements, Candle Stick Analysis, Engulfing Patterns, Price Action Analysis...
    🍓 If you want to follow structured courses with more details and practice exercises check my "About" page for Discount Coupons on my Udemy courses covering: Python basics, Object Oriented Programming and Data Analysis with NumPy and Pandas, ... more courses are on the way drop me a message if you have a particular interesting topic! Good luck!
    #python #algorithmictrading #tradingstrategy
    Program File:
    drive.google.com/file/d/1DcGW...
    Data File:
    drive.google.com/file/d/1v2Bf...
    00:00 Price Action Candles Introduction
    00:35 Shooting Star, Hammer, Hanging Man, Engulfing Pattern
    03:10 Python Price Action Detection
    12:13 Price Action Analysis Results
    18:45 Plotting Price Candles In Python

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

  • @aashishrana9356
    @aashishrana9356 2 года назад +3

    I was stuck on a problem from last 3 days.
    And after watching this video my problem got solved
    Thanks man
    Keep up the good work

    • @CodeTradingCafe
      @CodeTradingCafe  2 года назад +1

      Thank you for your support. Good luck to you.

  • @loganathansiva7063
    @loganathansiva7063 2 года назад +3

    Thank you sir. I am trying with your code. May god bless you.

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

    Thanks for a great video..One thing I found missing in this video was an explanation of 'closeResistance' and closeSupport' functions . I saw your other video on Support and resistance as well but I am not able to see those there as well. Can you share the link of the video I you've covered it in some other video?

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

      Hi, sorry I missed your comment a while ago! Honestly I don't remember which video was it, but it's simply checking if the price is within a fixed range from the closest support resistance level. I hope it helps!

  • @benheynderickx1729
    @benheynderickx1729 2 года назад +2

    very well explained , thank you !!! 30 pips is that approx 1.5% ???

    • @CodeTradingCafe
      @CodeTradingCafe  2 года назад +1

      Hi Ben, thank you for your comment, in fact, we can't put a percentage on 30 pips because this will depend on several parameters, like the lot size, the risk reward ratio, ...
      However, just to be clear about this video it's supposed to be a tool for comparing different candles patterns and maybe also combined with technical indicators, in brief you compare the percentages of the different patterns you have in mind and you can choose which one is the "strongest" or more reliable.
      ... Still you need a proper strategy SL TP etc... Which was not presented in this video

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

    Thankyou for the work you do on your posts, can you include the Transcription for this post please

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

      Hi, thank you for your comment. I tried to add the transcription but for some reason it's not working.

  • @santhosh6700
    @santhosh6700 2 года назад +2

    Nice video sir.
    Can you explain for the following patterns.
    1) Cup and handle
    2) head and shoulders and IHNS
    3) Flag pattern
    4) Triangle pattern

    • @CodeTradingCafe
      @CodeTradingCafe  2 года назад

      Hi thank you for your comment, did you mean explain or code these?

    • @santhosh6700
      @santhosh6700 2 года назад +1

      @@CodeTradingCafe both sir.
      Psychology behind this pattern and coding.
      I knew it's hard to code this to identify.... atleast pls explain theoretically in Trading View website.
      Thank you!

    • @CodeTradingCafe
      @CodeTradingCafe  2 года назад +1

      @@santhosh6700 I see, I will add it all to the list, but I am going to need time... list is already long

    • @santhosh6700
      @santhosh6700 2 года назад +1

      @@CodeTradingCafe ok bro..I will wait no problem..thank your efforts

  • @priyansh02chawda
    @priyansh02chawda 2 года назад +1

    Hi, nice video, can u share in a file the code of all the pattern detecting candles, Actually I'm testing the accuracy of all candles and can't use talib in python because it does not shows the implementation code.

    • @CodeTradingCafe
      @CodeTradingCafe  2 года назад

      You can use talib functions in Python for candles but I prefer manual detection at least I know what is happening in the functions

  • @marceloferreira950
    @marceloferreira950 2 года назад +2

    hello, how did you find this value " bodydiff[row]

    • @CodeTradingCafe
      @CodeTradingCafe  2 года назад

      Hi yes actually it's empirical just to avoid zero bodydiff like no visible body candles. You can modify it according to your data

  • @xuushuur
    @xuushuur 2 года назад +2

    Im fan of you. But i have a question: Trend field contain future information isnt it?

    • @CodeTradingCafe
      @CodeTradingCafe  2 года назад

      Thank you 🙂, yes the trend column has the future direction and I am using it to compare the signal prediction with the real trend in percentage or accuracy.

  • @vns9bepositivemindset82
    @vns9bepositivemindset82 2 года назад +1

    Sir i want learn , respect u sir from my hart Thanks...

    • @CodeTradingCafe
      @CodeTradingCafe  2 года назад +1

      Thank you very much for your warm comment, Good luck to you and enjoy learning.

    • @vns9bepositivemindset82
      @vns9bepositivemindset82 2 года назад +2

      @@CodeTradingCafe , Hi Sir, I request can u code for SMA & EMA & RSI Crossover signal for combined all indicator..

    • @CodeTradingCafe
      @CodeTradingCafe  2 года назад +1

      Hi, it is possible however if you combine too many parameters it's not a good idea, the signals you will get can be so scarce, I will add this to the list...

    • @vns9bepositivemindset82
      @vns9bepositivemindset82 2 года назад +2

      @@CodeTradingCafe Thanks for reply Sir . please try my request, i just want to learn with different conditions and toughness code make learn more python SIR.. Once again thanks for ur reply...

    • @santhosh6700
      @santhosh6700 2 года назад +1

      @@vns9bepositivemindset82 hi, actually it is already available in talib library..

  • @lucksimi3320
    @lucksimi3320 2 года назад +2

    HI
    Can you make a python program that scan all chart patterns( head shoulder, flag, etc...) stocks in SP500 and show buy and sell signal, thanks

    • @CodeTradingCafe
      @CodeTradingCafe  2 года назад +2

      That's kind of challenging but I will give it a try (might be later though the list is long)

  • @nilesh168
    @nilesh168 2 года назад +1

    Hi, Can you mention which video i can "Strategy" and "Backtest" file code

    • @CodeTradingCafe
      @CodeTradingCafe  2 года назад

      Hi, I am not sure I understand what you mean

    • @nilesh168
      @nilesh168 2 года назад

      @@CodeTradingCafe hi, I saw import backtest and import strategy in other codes. So need code for this to import.

    • @CodeTradingCafe
      @CodeTradingCafe  2 года назад

      @@nilesh168 yes these are packages to be installed, the package name is backtesting.py you can add those to your python using pip install command

  • @eliotharreau7627
    @eliotharreau7627 2 года назад

    Hi Bro, very good for a base trading bot project. But I dont understand for the piplim = 300e-5 or 0e-5 what is exactly meaning ? Thnx. 👍

    • @CodeTradingCafe
      @CodeTradingCafe  2 года назад

      Hi, piplim is the amount of price movement to touch a SL or Take profit

    • @eliotharreau7627
      @eliotharreau7627 2 года назад +1

      @@CodeTradingCafe Yes. I mean its how much pourcent of the price, by example 300e-5 ? Or can you write it with comma ?? Thank you Bro .

    • @CodeTradingCafe
      @CodeTradingCafe  2 года назад

      @@eliotharreau7627 it's not in percentage it's in number of pips like 300e-5 is 30 pips

    • @eliotharreau7627
      @eliotharreau7627 2 года назад +1

      @@CodeTradingCafe Yes, pips is for the forex. I try to find the correct representation for crypto by example for btc/usdc ? Is it the same pip ? I try the algo for crypto it is working well almost 80% . But i m not sure if it s the same pip !!! 😉 And I wondering 30 pips it s a much cents ?? To be profitable the algo must win minimum 0.03 cent($) per trade . Thnx.

    • @CodeTradingCafe
      @CodeTradingCafe  2 года назад

      In this case you have to modify piplimit variable accordingly depending on the currency

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

    Hi, can you help program a strategy similar to this. High win rate

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

      Hi, check my latest videos I improved some indicators you might be interested in

  • @top10top54
    @top10top54 2 года назад +2

    MY SUGGESTION TRY BACKTESTING WITH HARMONIC PATTERNS....... I'm multiple problems...your attempt will be appreciated

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

      Finally a year later I did it, I will record a video as soon as I can in couple of weeks. sorry for the delay 🙂

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

      @@CodeTradingCafe thank, I still appreciate 👍

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

      Recently I have been looking at pattern formations using ML

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

    Sir,
    Good morning can you create India bank nifty strategy

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

      Hi, the strategies presented here are generic you can try any on the India markets and test if they work, maybe in the future I will make something more specific since it was requested many times. Good luck!

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

      Can you provide pad strategy because I don't knowledge python programming

  • @phuoctrung2392
    @phuoctrung2392 10 месяцев назад +1

    Could you share this code ?

    • @CodeTradingCafe
      @CodeTradingCafe  10 месяцев назад

      Hi, the code is shared in the link in the description of the video, you can download it as a jupyter notebook file.

  • @sibiljas3628
    @sibiljas3628 2 года назад +1

    please acticve subtitle.thanks

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

    While I write the code "df.reset_index(drop=True, inplace=True)
    df[df['signal']==1].count() the result is zero. What did I miss?

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

      First line is not linked to the error, you're simply not getting any signal 1, check your signal conditions