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
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
Thank you for your support. Good luck to you.
Thank you sir. I am trying with your code. May god bless you.
Thank you for your support, good luck!
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?
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!
very well explained , thank you !!! 30 pips is that approx 1.5% ???
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
Thankyou for the work you do on your posts, can you include the Transcription for this post please
Hi, thank you for your comment. I tried to add the transcription but for some reason it's not working.
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
Hi thank you for your comment, did you mean explain or code these?
@@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!
@@santhosh6700 I see, I will add it all to the list, but I am going to need time... list is already long
@@CodeTradingCafe ok bro..I will wait no problem..thank your efforts
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.
You can use talib functions in Python for candles but I prefer manual detection at least I know what is happening in the functions
hello, how did you find this value " bodydiff[row]
Hi yes actually it's empirical just to avoid zero bodydiff like no visible body candles. You can modify it according to your data
Im fan of you. But i have a question: Trend field contain future information isnt it?
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.
Sir i want learn , respect u sir from my hart Thanks...
Thank you very much for your warm comment, Good luck to you and enjoy learning.
@@CodeTradingCafe , Hi Sir, I request can u code for SMA & EMA & RSI Crossover signal for combined all indicator..
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...
@@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...
@@vns9bepositivemindset82 hi, actually it is already available in talib library..
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
That's kind of challenging but I will give it a try (might be later though the list is long)
Hi, Can you mention which video i can "Strategy" and "Backtest" file code
Hi, I am not sure I understand what you mean
@@CodeTradingCafe hi, I saw import backtest and import strategy in other codes. So need code for this to import.
@@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
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. 👍
Hi, piplim is the amount of price movement to touch a SL or Take profit
@@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 .
@@eliotharreau7627 it's not in percentage it's in number of pips like 300e-5 is 30 pips
@@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.
In this case you have to modify piplimit variable accordingly depending on the currency
Hi, can you help program a strategy similar to this. High win rate
Hi, check my latest videos I improved some indicators you might be interested in
MY SUGGESTION TRY BACKTESTING WITH HARMONIC PATTERNS....... I'm multiple problems...your attempt will be appreciated
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 🙂
@@CodeTradingCafe thank, I still appreciate 👍
Recently I have been looking at pattern formations using ML
Sir,
Good morning can you create India bank nifty strategy
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!
Can you provide pad strategy because I don't knowledge python programming
Could you share this code ?
Hi, the code is shared in the link in the description of the video, you can download it as a jupyter notebook file.
please acticve subtitle.thanks
sorry for some reason it's not working
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?
First line is not linked to the error, you're simply not getting any signal 1, check your signal conditions