Education channel providing simple and quick lessons on related topics: Python, Data Analysis, Machine Learning and data driven applications like stocks and currencies trading. I hope these videos will be of help, Good luck to you in your coding journey !
🍓Discover how easy Python can be. Learning Courses Discounts (links below): * Algorithmic Trading In Python * Python basics, * Object Oriented Programming In Python * Data Analysis In Pandas And NumPy * Machine Learning In Trading
Python is easy to learn and if I could do it then surely you can as well !
DISCLAIMER: The information contained in this channel is presented for educational purposes ONLY, I am NOT a financial expert nor a financial consultant, if you decide to use any of the content of this channel you may do so at your own responsibility. Although I do my best to provide reliable information I am NOT responsible for any losses incurred due to any trading systems presented on this channel.
great content. just subscribed. when i comment this line: df=df[df.High!=df.Low] winrate drops to around 45% which is huge is this step something you do for most strategies or is this part of this setup specifically? Will play around and report soon
after going through codility.. its a trash ..its not gonna bring any good devs to an industry. given we have alot of libs , available docs, this is again bringing back to 2000 decade of coding ....
Excellent work! Thanks. A future modification can be to add code that validates a breakout. You want to avoid fake breakouts. This can only be validated when a breakout is detected followed by a retest of the identified level then a confirmation candle in the right direction is detected. I would also add volume to the algorithm. A good breakout always occurs with strong volume
It doesn't mention whether duplicates are sent in. Convert to set, then sort, then compare the first and last items could result in a quicker algorithm.
Hi Ziad, thank you for the content you put out you have had a real impact in my life focussing my passion for data science which even led to a job teaching fintech with edX. It has been amazing watching you over the past 2 years and growing my skillset I truely wish you everything great in life. Please continue producing great content! Sidenote to anyone else reading this comment never made any money with automated trading and that is mostly on me, just loved the learning part of it and still continue to.
Great to hear! Thank you for leaving this comment. Even if you didn't make money trading you already did a lot by being consistent these last 2 years and you grew your skills for sure this is already a big win. On the other hand, medallion, renaissance technologies, the all time and space wizards of automated trading are averaging 60% returns per year, so keep this in your math if you ever wonder how good should a system be, I would say anything above 10% per year is excellent (not getting rich though :) ). I think I will have to make a video about this to raise awareness.
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.
Have you built a time series pattern algorithm that checks day close to next day close, including premarket and postmarket for ES? This is not a technical pattern trading pattern like head and shoulders, etc. It's like a Stochastic signal with repeated patterns in time-series. There are about 11 repeated day trade time-series patterns. Could you look at the ES to scan repeated time-series patterns? Python would likely catch half of the signals in 60 days of real-time trading with yfinance. Timeframe would be 5 minute and 15 minutes for the time-series pattern signals.
Hi, I think I understand what you mean, I did try time series before I also tried facebook's algorithm Prophet check this video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-lmoHsgSKBNA.html
Hi, just want to say I've watched many videos about this topic and that this is the best one because you let me see the mistake in other's results that look good superficially
@@CodeTradingCafe I created a mobile Robot 🤖 that works on ea convertor.. so for the robot to work need to be coded into a PC Robot 🤖 so that it can work on mobiles
Hi Ziad. Just watched the video and is (once again) a real gem, both for traders and coders. It has everything I wished for (lol). I hope you and your family are and stay safe
bro you tell about best platform for learn this advance like strategy by using python and which platform is best and where how to learn all think which course is best for make this own strategy .
Hello? Trust you're doing good? Good work here. Please I have a request. Been trying for months now to create an automated trading system strictly and focused on ICT model Technically ICT is wide but [ Time of the day and silver bullet strategy ] is enough for intraday trading. I really appreciate if you do something towards this two strategies No matter what method you use, I will follow as long as it works. Thank you
Hi, i have been following your strategy videos for quite long time. I have a doubt. I tested the strategy and have two results by slight change of parameters. Both are similar in terms of returns but only the draw down percentage has difference. Which one you pick is best. Equity Final [$] 169606.161181 Equity Peak [$] 169606.161181 Return [%] 69.606161 Buy & Hold Return [%] 2708.265852 Return (Ann.) [%] 0.0 Volatility (Ann.) [%] NaN Sharpe Ratio NaN Sortino Ratio NaN Calmar Ratio 0.0 Max. Drawdown [%] -11.757779 Avg. Drawdown [%] -1.85357 Max. Drawdown Duration 15591.0 Avg. Drawdown Duration 819.776316 # Trades 202.0 Win Rate [%] 50.49505 Best Trade [%] 9.480857 Worst Trade [%] -4.584625 Avg. Trade [%] 0.264254 Max. Trade Duration 208.0 Avg. Trade Duration 22.054455 Profit Factor 1.385732 Expectancy [%] 0.283124 SQN 2.032166 ********************************************************************************* Equity Final [$] 170082.355832 Equity Peak [$] 171779.073593 Return [%] 70.082356 Buy & Hold Return [%] 2708.265852 Return (Ann.) [%] 0.0 Volatility (Ann.) [%] NaN Sharpe Ratio NaN Sortino Ratio NaN Calmar Ratio 0.0 Max. Drawdown [%] -6.216913 Avg. Drawdown [%] -0.98357 Max. Drawdown Duration 8847.0 Avg. Drawdown Duration 457.862069 # Trades 82.0 Win Rate [%] 60.97561 Best Trade [%] 9.480857 Worst Trade [%] -2.258203 Avg. Trade [%] 0.651874 Max. Trade Duration 120.0 Avg. Trade Duration 21.780488 Profit Factor 2.382913 Expectancy [%] 0.66805 SQN 3.163725
Hi I would pick the second, because the number of trades is lower this means less commissions, also the drawdown is lower, meanwhile the profit factor is much higher. Good luck.
I tried to replicate the exact same results and found that you were using a gap window of 6 equal to the pivot window. That would do the trick. But of course you should have increased the gap.
Hi, I remember promising you over a year ago a video on vectorbt and it's still on my conscience :) I know i must start using it (I fell like telling you I will start doing it as soon as possible but I am afraid to skip again lol).
It's python coding, if you are not familiar with the python language it's better to just watch the videos here and focus on the results, so I do the backtesting and you can get if a strategy is good or not. Meanwhile if you are really motivated you can learn coding in python (you will need 6 months to master for trading).
Hi, I didn't really get where you downloaded the data from. I downloaded daily data from Yahoo finance for the same period and noticed that the data is actually quite different. Could you share the source with us? Thanks in advance!
Very good analysis. But you cannot consider a statistically robust model with only 80 events! Minimum 1000, optimal 2500, ideal 10,000, at that point, all the indicators you have used stop being profitable. You may have taken small segments, which randomly, give positive returns with 80 events. Like when you toss a coin, at one point you may get 80 heads in 100 attempts, but in the long run, 10,000 events, it will be 50/50. That is why robustness is necessary in the analysis. I invite you to do the backtest in H4 over a period of 20 years for 10 assets, with your programming capacity you can do it and there the commercial indicators perish. You have to look for other "little things" to be profitable, which is clearly possible! Great work colleague!
Hi, thank you. I agree statistically 80 events are still short somehow. But at the same time the test was on 7 assets and I think around 7 years each. So that's a lot of candles already I assume I could include cryptos and stocks and increase this to around 300 events max considering the data. Now about using the strategy on the 4H timeframe I am not sure it would still work as well simply because a daily rejection is stronger than a 4H rejection. What do you think?
If the statistical advantage exists, it should be able to be expressed in any time frame, from W1 to M1. Considering that the shorter the time frame, the greater the impact of commissions, the model must be balanced in that direction for it to be profitable. Another way to check if this combination of indicators you used works is to measure it in the number of suitable events, 2500, for which you should include about 220 assets, taking into account that if you filter, and that number drops to 600 events for example, you are still short of events, and you should re-measure that new filtered scenario in more products. Perhaps in the end you will end up with a portfolio of 700-1000 assets and its operation, if it is not completely automated, I doubt it can be done.
Do these strategies work on daily candles, i use a simple strategy using bbands and vwap, it's profitable but showing only 5-6 trades in a year for one stock. I am thinking of selecting 10 stocks. What do you suggest, will this many signals normal when using daily candles?
Hi, yes I agree some good selective signals are not as frequent you can run the same strategy on let's say 20 assets in parallel so you get more signals. For sure you need to backtest it first. Just one thing using VWAP on the daily timeframe you might need to adjust the volume reset duration.
Anyone has some good documentation about simulated annealing for financial data. Been reading some thesisses about the subject but no in depth information
@@CodeTradingCafe i would say it's worth the effort. You will (very likely) have no positive result but the knowledge, the way if thinking you learn during your research is possible worth more than the result.
Well usually higher timeframes are easier to deal with like daily timeframe, if you apply to lower timeframes it's more difficult especially if you include commissions.
bro you can talk about how to create strategy in Indian stock market because this market always (new days) show gap Up and gap Down so you tell about how to create strategy code in Indian stock market 😐
Hi, I have no experience in the Indian market I wouldn't know what's best, you can adapt any of my codes to the asset of your choice though, it might work.
Hi, you can download the jupyter notebook file from the link in the description, the code is there (I honestly don't remember what was after the function :) )