How I Achieved a 74% Profit Using Michael Harris’s Trading Pattern in Python | Full Backtest

  Рет қаралды 21,868

CodeTrading

CodeTrading

Күн бұрын

Пікірлер: 66
@lorensaunders6034
@lorensaunders6034 3 күн бұрын
I love that you test all these ideas out so thoroughly. It always gives me more to add to my own strategies (or not add). Thank you.
@CodeTradingCafe
@CodeTradingCafe 3 күн бұрын
Thank you, makes total sense, the purpose here is not to present full strategies, but to test simple ideas/indicators/patterns that can be plugged or added into strategies with other indicators and filters.
@alison7959
@alison7959 3 сағат бұрын
Very good video, congratulations on the explanation!!!, in this video alone I learned a lot, I urgently need to learn Python lol
@CodeTradingCafe
@CodeTradingCafe 56 минут бұрын
Glad it was helpful! Thank you for your support.
@simonescelsa
@simonescelsa Күн бұрын
Technical analysis Always work over a time frame with the underlying trending in one direction. Even a long short strategy stops working when the market starts trending downwards as the movements tend to be much faster on the way down and TA signals lag.
@CodeTradingCafe
@CodeTradingCafe 22 сағат бұрын
I agree the uptrend pace is different than the downtrend especially for stocks, crashes happen fast, so it's better to split strategies into long only and short only strategies with different approaches.
@stedocli6387
@stedocli6387 18 минут бұрын
Would it be ideal to look at the higher time frame to gauge when to run the trading bot? Like looking for optimal conditions for it to perform it?
@gvidalcantavella
@gvidalcantavella 4 күн бұрын
Nice video, thank you! I was just wondering why using fixed percentage instead of using the ATR like in different videos.
@CodeTradingCafe
@CodeTradingCafe 3 күн бұрын
Glad it was helpful! fixed percentage versus ATR no particular reason, actually all of these trade management methods are not the purpose of most of the videos testing indicators and patterns, these (indicators and patterns) are usually used for entry meaning to enter a position and open a trade, however the rest is how to manage the trade once it's opened and for that there are lots of approaches...
@TheEcherriman
@TheEcherriman 4 күн бұрын
Great work again. Thank you
@CodeTradingCafe
@CodeTradingCafe 3 күн бұрын
Thank you for your support!
@stedocli6387
@stedocli6387 21 минут бұрын
Thank you for making such helpful content. In the video, you suggested manually managing trade exits to potentially improve algorithmic trading performance. Would implementing RL be an effective approach to better exit trade exit strategies?
@More2lifee
@More2lifee 4 күн бұрын
Amazing..learnt new things!! Thanku
@CodeTradingCafe
@CodeTradingCafe 3 күн бұрын
Glad to hear that, thank you!
@cybern9ne
@cybern9ne 4 күн бұрын
New subscriber - Thank you!
@CodeTradingCafe
@CodeTradingCafe 3 күн бұрын
Awesome, thank you!
@orlandonestoreulateandia864
@orlandonestoreulateandia864 4 күн бұрын
Excellent, a question where can I learn how to connect py code with Tradingview? Thank you very much
@WannaBeQuant_SUB
@WannaBeQuant_SUB 4 күн бұрын
U can't. Only data can exit trading view with webhooks in json format
@CodeTradingCafe
@CodeTradingCafe 3 күн бұрын
Not sure this is possible unless thay are selling an API which might not be a free option (if it exists)
@eitan71
@eitan71 11 сағат бұрын
great video - again ! when you use candle patterns' can you also test on different coins of crypto please? Thank you for sharing your great work !
@CodeTradingCafe
@CodeTradingCafe 57 минут бұрын
Yes we can run the same code on different data
@dorviignatusnunana2605
@dorviignatusnunana2605 2 күн бұрын
Dear CodeTrading, where do you place your limit or entry during backtesting...Is it the same as the current_close
@CodeTradingCafe
@CodeTradingCafe Күн бұрын
Hi, yes once the pattern is confirmed the signal is at the end/close of the current/last candle.
@preetipics
@preetipics 21 сағат бұрын
thanks very much as always.this one looks interesting. Is there any way I can reach you to see if you would be willing to backtest a really interesting forex strat that has been performing very well recently please?
@CodeTradingCafe
@CodeTradingCafe Сағат бұрын
Hi, thank you, if the strategy is really tested it might be worth it, if you have time send me the details by email codingntrading at gmail com I will check it out.
@MrRahul15937
@MrRahul15937 3 күн бұрын
Among all these strategies which one is your favourite
@CodeTradingCafe
@CodeTradingCafe 3 күн бұрын
daily timeframe, support resistance with rejection candles happening around key levels, this the entry study but then comes the trade management or exit decision and that's much harder.
@tramesh007
@tramesh007 3 күн бұрын
@@CodeTradingCafe by any chance did you code the support & resistance with rejection candles?
@CodeTradingCafe
@CodeTradingCafe Күн бұрын
Not together here on YT but you can check these videos for some help: kzbin.info/www/bejne/g5zIlJeYe7WgfLs kzbin.info/www/bejne/rpzcZI2feNh4etU kzbin.info/www/bejne/l3ubgJpjnrGUl9U
@eitan71
@eitan71 11 сағат бұрын
@@CodeTradingCafe Thank you for sharing !
@franciscotafur9079
@franciscotafur9079 2 күн бұрын
would it be logical to optimize and find the best TP and SL parameters for short positions and do the same for long position, this way you dont use the same parameters for long and short posibly yielding better results? would this overfit the data?
@CodeTradingCafe
@CodeTradingCafe Күн бұрын
Actually I like your idea, especially for stocks they usually have different speed in climbing and dropping, so having 2 different sets of exit values makes total sense. Regrading overfitting... we are always overfitting somehow can't really totally get rid of it.
@arnohmoins6661
@arnohmoins6661 3 күн бұрын
I haven’t done Python in many years. Great job on this work! Personally, I do the same in C# on NT8, focusing on futures markets (ES, NQ, YM), which have been heavily traded by retail traders in recent years thanks to access through prop firms. I haven’t watched all the videos yet. What is your favorite strategy among those you’ve backtested?
@CodeTradingCafe
@CodeTradingCafe Күн бұрын
Thanks for sharing! A full favorite strategy I don't have one, it depends on how the market looks (trending or sideways), but I do have favorite indicators (support and resistance levels along with candles patterns on the daily timeframe).
@ronaldhet4241
@ronaldhet4241 Күн бұрын
Hi, I have a strategy but i don't know how to implement it. I have tested it but manually, it's in hour frame and it gives good result in daily frames. Also it gives good number of trades in a month (around 20). Can you give me a hand?
@CodeTradingCafe
@CodeTradingCafe 22 сағат бұрын
If you really really tested it, then we can backtest it in python, send me the details by email codingntrading at gmail com
@differentone_p
@differentone_p 2 күн бұрын
okay now show the real money you got, account balance
@CodeTradingCafe
@CodeTradingCafe Күн бұрын
It's slow 10 to 20 % yearly ... no get rich quick scheme sorry to disappoint.
@factoryofgaming5229
@factoryofgaming5229 2 күн бұрын
I think there is data leakage here, but I could be mistaken. We don’t know what the current candle high will be before it closes, hence you have to shift the time series by 1. I am not sure if this will mean you can keep the current win rate and profitability :(
@CodeTradingCafe
@CodeTradingCafe Күн бұрын
Hi, there is no leakage as long as we run the test at the end of every candle meaning after the candle has closed, these are daily candles so at the end of every day we can test for the pattern occurrence.
@hermesus6831
@hermesus6831 4 күн бұрын
Which time frame?
@CodeTradingCafe
@CodeTradingCafe 3 күн бұрын
daily my favorite
@CodeTradingCafe
@CodeTradingCafe Сағат бұрын
M1 is deadly
@christophafalg4294
@christophafalg4294 4 күн бұрын
Do you use tickdata?
@CodeTradingCafe
@CodeTradingCafe 3 күн бұрын
No need, just daily because the pattern is checked only when the last candle is closed.
@AndreSilva-cb3tz
@AndreSilva-cb3tz 4 күн бұрын
Hi, how far are the strategies you present us in all your videos from being profitable in the "real world". I mean, if we create a bot to trade based on this strategy, for example, would it be profitable? If not what would be the next steps to take bebidos the o és you mentioned?
@CodeTradingCafe
@CodeTradingCafe 3 күн бұрын
Hi, I usually present and test single indicators or double indicators strategies, and I often neglect the trade management part. For a profitable real world strategy you need additional indicators for confirmation (they must be tested) and a looooot of work on the trade management (and risk management) part which in my opinion is the hardest. It's relatively easy to find a winning set of indicators but the trade and risk management are where the difference is made.
@AndreSilva-cb3tz
@AndreSilva-cb3tz 3 күн бұрын
@@CodeTradingCafe Thank you for answering! Do you have something on your list about going deeper on trade management? I think it would be interesting to share that knowledge with all of us. Keep your excellent work!
@CodeTradingCafe
@CodeTradingCafe Күн бұрын
It's harder to put this into a video, I would say the best is to exit/manage the trade manually because this relies a lot on experience of the trader, experience is mainly reading patterns that are red flags the trades should be closed because the market might be reverting, for example opposite candle patterns, reaching a key level ... the issue is that there are lots of scenarios that are harder to cover in videos although I do include some from time to time in the backtests.
@yamitanomura
@yamitanomura 3 күн бұрын
I test this with bitcoin 1h data from 2018 to nov 2024. The result is very bad. :(
@CodeTradingCafe
@CodeTradingCafe Күн бұрын
Hi, these patterns only work on daily timeframe, any lower timeframe will NOT work for sure.
@arremztife871
@arremztife871 2 күн бұрын
Can I integrate MT5 ?
@CodeTradingCafe
@CodeTradingCafe Күн бұрын
Needs to be translated to mql5
@vincentg9570
@vincentg9570 3 күн бұрын
Very interesting thanx 🤩 Do you think it is possible for you to create a series of videos or even a masterclass to detail the process of generating robots through machine learning with Python, but the way the EA Studio or StrategyQuant apps do it? It is a matter of automatically creating robots from tests of combinations of indicators and money management rules, then filtering by certain criteria (number of trades, performance, minimum profit factor, minimum R-squared for equity, etc.), then setting up an automatic forward testing with filtering of the best robots, then a Monte Carlo testing with filtering of the best robots according to our criteria. All this data processing chain would be like a great funnel to automatically filter and select the best seeds. It would be great please 🙏
@CodeTradingCafe
@CodeTradingCafe Күн бұрын
Hi, thank you for your support. Actually your idea is great, but it's a lot of work/time. I am not sure this is good for YT video :) maybe I will break it into fragments in the future.
@vincentg9570
@vincentg9570 Күн бұрын
@@CodeTradingCafe Oh thank you very much! Yes in small pieces, I'm sure other people would be interested
@TheDoktorot
@TheDoktorot 4 күн бұрын
Anyone used this in their automated trading?
@CodeTradingCafe
@CodeTradingCafe 3 күн бұрын
From his book he probably used these for entry signals but the trade management (exit and risk management) are not be forgotten and these were not detailed in the book...
@edwinceriola1542
@edwinceriola1542 3 күн бұрын
Thats is a perfect chaos strategy ahah
@CodeTradingCafe
@CodeTradingCafe Күн бұрын
Well maybe, but someone (M Harris) made some buck out of it.
@simonescelsa
@simonescelsa Күн бұрын
​@@CodeTradingCafeyes he made a buck by selling a book
@CodeTradingCafe
@CodeTradingCafe 22 сағат бұрын
Traders do make make some money ... but much less than what people think, this is why they start selling books, also they get some exposure.
@tundedankano52
@tundedankano52 3 күн бұрын
Oh Gosh! These Stuffs are just too complicated for me.Could not make anything from what I have just watched.Is Trading this complicated?😮
@CodeTradingCafe
@CodeTradingCafe Күн бұрын
Hi, no trading is not, it's the coding part. You can just check the videos for the input, the strategy and the results, skip the coding, if the results are good you can keep the idea for your manual trading.
@Wotanhelm
@Wotanhelm 4 күн бұрын
Probably much easier to do this in MQL5 without all the dataframe and backtesting stuff. I mean you pretty much have to be a Python expert to use this code , but if you were a Python expert you probably won't be watching these videos.
@CodeTradingCafe
@CodeTradingCafe 3 күн бұрын
... or learning to be a python expert
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 74 МЛН
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 135 МЛН
路飞做的坏事被拆穿了 #路飞#海贼王
00:41
路飞与唐舞桐
Рет қаралды 26 МЛН
Convert TradingView Indicators into Strategies with AI (IT FINALLY WORKS)
21:49
I Went Down a Rabbit Hole Trying To Recycle All My Tech Waste
15:41
Trading with Python: Simple Scalping Strategy
13:47
CodeTrading
Рет қаралды 104 М.
I’ve Switched to UV for Python, and So Should You
17:35
ArjanCodes
Рет қаралды 67 М.
How I Nailed Trading with the MACD Indicator (Step-by-Step Guide)
21:58
Ross Cameron - Warrior Trading
Рет қаралды 477 М.
ChatGPT o1: Turtle Strategy in Python Makes 319%
19:17
Algo-trading with Saleh
Рет қаралды 114 М.
SMC Secrets EXPOSED With Power Of Three
13:29
Smart Risk
Рет қаралды 40 М.
Automated Price Break Out Detection: Algorithmic Trading In Python
16:34
How To Build A Trading Bot In Python
18:46
CodeTrading
Рет қаралды 845 М.
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 74 МЛН