The link to the code: drive.google.com/file/d/1F0UWpUYrSpC7WDqNswqy8-p6eBrIdYqN/view?usp=sharing And the data file: drive.google.com/file/d/1I-BnwgPh4ZnRXyAio8lzBH4y5yqgoIVd/view?usp=sharing
@kurdmanpar5706
Жыл бұрын
Thank you 🙏🙏🙏
@manojnambiar1120
Жыл бұрын
Useless
@tradewithaakash2939
Жыл бұрын
What an amazing content for people who are interested in learning algo trading. thankyou once again.
@CodeTradingCafe
Жыл бұрын
Thank you for your support!
@dirtysordidscene
Жыл бұрын
awesome work! please continue making price action based pattern analysis videos!
@CodeTradingCafe
Жыл бұрын
Thank you! will definitely revisit in the future.
@meawpong2008
Жыл бұрын
Thank you brother.This VDO very helpful looking for next VDO.
@CodeTradingCafe
Жыл бұрын
Thank you for your support! much appreciated and more is coming :)
@tansutazegul8297
3 ай бұрын
Amazing stuff. My question is the following, How can we perform flag scanning in all stocks in an index?
@CodeTradingCafe
3 ай бұрын
Hi, thank you for your comment. We need to put the pattern detection in a function that we would call and apply to different dataframes with different datasets, it's a simple approach but it works.
@TensaiCollectibles
Жыл бұрын
Wish I found your KZitem sooner before wasting money on nonsense udemy courses.
@CodeTradingCafe
Жыл бұрын
The problem with most courses is that they teach the very basics which you probably already know. Books are nicer you can go at your own pace and a lot more information in books (in my opinion). Good luck, and thank you for your supportive comment!
@Luca_040
11 ай бұрын
I am using the NDX index with 1min data and detect_flag function never finds a flag..
@CodeTradingCafe
11 ай бұрын
probably the parameters need to be adjusted to 1 min data. This is kind of specific, but for sure there must be flags there.
@username42
Жыл бұрын
nice tutorial but is there anyway to implement this into tradingview to get future projections of long and short positions?
@CodeTradingCafe
Жыл бұрын
I don't use tradingview but I am sure using pine you can translate the code for tradingview and use your custom indicator.
@amritwt
9 ай бұрын
how can we integrate this with our broker in order to execute it in a live market with live data? excellent video as always.
@CodeTradingCafe
9 ай бұрын
first you will need to check if the broker offers an API, for example using Oanda or Interactive Brokers... check this video kzitem.info/news/bejne/uJmcsZWQhWano3Y
@MrBhavishya
9 ай бұрын
Thanks for such a wonderful content . Can you please make some video for Eliot wave as well
@CodeTradingCafe
9 ай бұрын
Thank you for your support, it's possible but the list of requests is very long.
@MrBhavishya
9 ай бұрын
@@CodeTradingCafe can you please publish what would be coming next. I can't miss your single video.
@CodeTradingCafe
9 ай бұрын
Thanks for your support, of course I can, it's actually a good idea for other viewers as well.
@noviriustomeisho6630
Жыл бұрын
You said higher than neighbors = high, but there's a point between the 2nd and 3rd purple dot that is not labeled as a high
@CodeTradingCafe
Жыл бұрын
Hi thank you for your comment, it has to be higher than N neighbors on the left and N neighbors on the right otherwise it's not a local high. I hope this answer helps.
@MukeshKumar-ym6me
Жыл бұрын
Sir,try to make video on ICT lux algo indicator which is very popular on trading view.which is based on ICT smart money concept.
@CodeTradingCafe
Жыл бұрын
Hi thank you for your support, I will look into it but some indicators on trading view are not open source so it's not always accessible I will check other resources and maybe code it myself. And please bear with me it will take a some time since I have a long list of requests, all of these are interesting to go through.
@phaneendhraajaythota1025
Жыл бұрын
How do you manage funds allocation if you trade multiple stocks in a single account.. while re entries.. how much capital to be considered.
@CodeTradingCafe
Жыл бұрын
Hi, good question, I would set my risk, let's say 5% (that's large but it's ok), then I divide this percentage by the number of assets I want to trade, so let's say 5 assets then we only risk 1% per asset not more. That's one approximate simple way of doing it. Good luck!
@kurdmanpar5706
Жыл бұрын
Thank you for the good video you provided. Where can I get the code for this program?
@CodeTradingCafe
Жыл бұрын
Hi, thank you for your support, check the pinned comment it's there, good luck!
@anonymouscoward9643
Жыл бұрын
Have you made any serious money using any of your techniques? Can you do an overarching video which summarizes lessons learned about all these techniques? The code link is missing.
@CodeTradingCafe
Жыл бұрын
Hi, thank you for the heads up, I added a pinned comment with the links, it should work now. For the money I did make some money but it's always proportional to the amount you invest, and I don't like to risk much so I didn't get much... but still a trip here holidays there booster, not complaining.
@hadynvanderberg8562
Жыл бұрын
@@CodeTradingCafecan you give an example of a share that you made money on and a date range? So we can see how to apply this code
@swastika4860
Жыл бұрын
@@CodeTradingCafegreat strategy
@gvidalcantavella
Ай бұрын
One question, why not using Williams fractal function to automate the higher highs and higher lows?
@CodeTradingCafe
Ай бұрын
In this case we were not looking for higher highs with higher lows, the triangle is lower highs and higher lows, so the pattern is easily achievable with regression. In other cases we can still use the Williams fractal function but it's just a small part of the solution.
@halilibrahimsicak
Жыл бұрын
My brother. Can you write the Python code that finds falling trend breaks in the stocks list, flag pattern, double bottom, triple bottom formation and plots it with matplotlib and throws it on telegram when it occurs?
@CodeTradingCafe
Жыл бұрын
I guess an email works well and is simpler to implement if you are not familiar with coding.
@halilibrahimsicak
Жыл бұрын
@@CodeTradingCafe You are right. I want to be notified as soon as it occurs.
@jodhvirsingh8677
Жыл бұрын
My question too
@pedromucavele8180
Жыл бұрын
@@CodeTradingCafesó how does it work with email I am not familiar with coding.
@antrikshkandhari3641
Жыл бұрын
Great Video! How can I get the link for the code?
@CodeTradingCafe
Жыл бұрын
Hi thank you, I added a pinned comment with the links, they should work now. Good luck!
@antrikshkandhari3641
Жыл бұрын
@@CodeTradingCafe I ran it on a bunch of US stocks. Always 0 detected with different parameters as well. Any guidance on what I am missing? Thanks!
@user-vm1yx2vc4b
6 ай бұрын
Hi Can you combine all patterns in a python code?
@CodeTradingCafe
6 ай бұрын
Yes it's possible.
@user-vm1yx2vc4b
6 ай бұрын
@@CodeTradingCafe many thanks! Let me know
@eliotharreau7627
Жыл бұрын
Hi, very nice project. You ar a King. Can you make a video with the backtesting of this strategy , it will be very interessant. 👍
@CodeTradingCafe
Жыл бұрын
Thank you for your support! I could backtest it in the future, I usually choose the most powerful indicators to backtest, to be honest the flag pattern is rare on high timeframes, and too noisy on lower timeframes, I don't think the backtest will be very positive, But there is only one way to find out!
@preetipics
Жыл бұрын
Awesome thankyou. Any chance of building a bot uisng ICT/Smart money concepts including orderblocks, FVG, change of structure? thanks
@CodeTradingCafe
Жыл бұрын
Hi, thank you for your support. The idea is great but I personally try to avoid fully automated bots I don't believe they always work well. I would assume a bot detecting patterns and sending us a message is better so we can avoid false positives. Now I just have to find a good month where I am not under life and work pressure :)
@preetipics
Жыл бұрын
@@CodeTradingCafe that makes a lot of sense! Some code for the alerts as you said would be amazing..I know what you mean about finding the time though:) just to make sure I understand though..you prefer alerts based on various rules that you can then manually review and then enter a trade? Must only work on higher time frames no?
@CodeTradingCafe
Жыл бұрын
Hi, yes exactly, alerts on my phone (the best strategies for me work on 4H or daily so lots of waiting) then I simply enter my app on my phone and verify if it's a good signal or a false positive, and decide to enter the market or drop it for the next signal.
@preetipics
Жыл бұрын
@@CodeTradingCafe brilliant, makes sense! Thanks for your replies as always
@preetipics
Жыл бұрын
Do you have video on making the phone alerts at all?
@Swoledier
Жыл бұрын
Sir can you please make a tutorial on how to make a trading bot for binary options trading please
@CodeTradingCafe
Жыл бұрын
Hi, I have a lot of requests so I will be late for this. If you have a strategy get one of my codes and adapt it, it should work. Good luck!
@Swoledier
Жыл бұрын
@@CodeTradingCafe hello sir. Thanks. I hope you can make a video of it. I will be waiting. Thank you so much sir
@yuvalbra
Жыл бұрын
Thanks great video, if i need to find Flag Pattern at given all the function as you mention?
@CodeTradingCafe
Жыл бұрын
Hi, thank you for your support, you will need the function I mentioned in the video. Good luck!
@yuvalbra
Жыл бұрын
i mean you got a symbol and get the data from yfinanace , how you can find at what place you have a flag? @@CodeTradingCafe
@shivamdubey4783
Жыл бұрын
Df=df[df['volume']!=0]what does this mean sir plzz
@CodeTradingCafe
Жыл бұрын
it's to filter candles with volume = 0 and consider only positive volume candles.
@steeltormentors
Жыл бұрын
great video! been looking for this for a long time! one small thing that's bothering me: how do we set the x axis to have proper datetime index instead of just numbers? would be great if we can see the dates when the patterns are forming instead of just numbers as the index. Liked and subscribed!!
@CodeTradingCafe
Жыл бұрын
Thank you for your support, you can set the datetime as index, using 'df['Date'] = pd.to_datetime(df['Date'])' and then 'df.set_index('Date', inplace=True)'
@steeltormentors
Жыл бұрын
@@CodeTradingCafe hey thanks for the response. I just modified your code and ran it via Google Colab: in the first cell it works fine: import pandas as pd df = pd.read_csv("/content/EURUSD_Candlestick_1_Hour_BID_01.07.2020-15.07.2023.csv") df.columns=['time', 'open', 'high', 'low', 'close', 'volume'] df.time = pd.to_datetime(df.time) # pd.to_datetime #Check if NA values are in data df=df[df['volume']!=0] df.reset_index(drop=True, inplace=True) df.set_index('time', inplace = True) #set time as the index df.isna().sum() df.head(10) however in the second cell there's an error: TypeError Traceback (most recent call last) in () 19 return 0 20 ---> 21 df['pivot'] = df.apply(lambda x: pivotid(df, x.name,3,3), axis=1) /usr/local/lib/python3.10/dist-packages/pandas/_libs/tslibs/timestamps.pyx in pandas._libs.tslibs.timestamps._Timestamp.__add__() TypeError: Addition/subtraction of integers and integer-arrays with Timestamp is no longer supported. Instead of adding/subtracting `n`, use `n * obj.freq` I just asked chatGPT to solve the issue and it ran fine for several cells but it produced a weird chart
@Luca_040
8 ай бұрын
@@CodeTradingCafe It's not working, then I got problems in the pivotid function: TypeError: Addition/subtraction of integers and integer-arrays with Timestamp is no longer supported. Instead of adding/subtracting `n`, use `n * obj.freq`
@Rene-Mijs
Жыл бұрын
hello where can i download Flag Pattern Trading
@CodeTradingCafe
Жыл бұрын
Hi, there is a link in my pinned comment. Good luck!
@Rene-Mijs
Жыл бұрын
it works thank you! @@CodeTradingCafe
@markus27183
Жыл бұрын
How profitable is this strategy?
@CodeTradingCafe
Жыл бұрын
Hi, this is not a full strategy it's an indicator, but you can use it within a strategy if needed.
@markus27183
Жыл бұрын
what did you back test the strategy for this indicator on and how did it do? (buy when indicator indicates buy and sell when indicator indicates sell)
@CodeTradingCafe
Жыл бұрын
I didn't backtest this one, just used it manually, either scalping inside or waiting for the break out.
@thinketh2408
Жыл бұрын
Hi bro can you share your one alog that at least make some profit not much but be a starting point for newbies...
@CodeTradingCafe
Жыл бұрын
Some indicators on this channel are advantageous, look for the Rayner Theo backtest for example.
@thinketh2408
Жыл бұрын
@@CodeTradingCafe ok i will
@DIGIL.
Жыл бұрын
Did you try any machine learning based methods?
@CodeTradingCafe
Жыл бұрын
Hi, I did plenty and neural networks I have a playlist for these: kzitem.info/door/PLwEOixRFAUxZO-WTGS1rJ4ijvkUePWg_-
@nbamek899
Жыл бұрын
There is no way to find patterns in python, recently I saw a library called stumpy which does pattern recognition but I dont know if it works.
@CodeTradingCafe
Жыл бұрын
Hi, thank you for the heads up I haven't tried the stumpy yet, sounds interesting though.
@nbamek899
Жыл бұрын
@@CodeTradingCafe please have a look into it, it seems promising if you could dissect it better for us, it also looks simple though
@SuperWayneBruce
Жыл бұрын
there is no link in the description?
@CodeTradingCafe
Жыл бұрын
Hi, I just added a pinned comment with the links, let me know if it works for you.
@tiberiuiordache
Жыл бұрын
Hi! thanks for the video. I can't find the colab in the description, can you please double check? Thanks!
@CodeTradingCafe
Жыл бұрын
Hey thank you for your support, I added a pinned comment for this, sorry for the delay.
@MukeshKumar-ym6me
Жыл бұрын
Sir,code link is missing
@CodeTradingCafe
Жыл бұрын
Hi, sorry, I just added a pinned comment with the links, it should work now. Good luck and happy coding!
@MukeshKumar-ym6me
Жыл бұрын
Sir , please add code to view flag part on char also.that will help to understand better
@pratskhanna
7 ай бұрын
The code in comments and video are not same, stop scamming people.
@CodeTradingCafe
7 ай бұрын
So this is your definition of scam? The code is the same, it's simply that sometimes the parameters are slightly different after experimentation.
Пікірлер: 97