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.
@CodeTradingCafe3 күн бұрын
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.
@alison79593 сағат бұрын
Very good video, congratulations on the explanation!!!, in this video alone I learned a lot, I urgently need to learn Python lol
@CodeTradingCafe56 минут бұрын
Glad it was helpful! Thank you for your support.
@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.
@CodeTradingCafe22 сағат бұрын
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.
@stedocli638718 минут бұрын
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?
@gvidalcantavella4 күн бұрын
Nice video, thank you! I was just wondering why using fixed percentage instead of using the ATR like in different videos.
@CodeTradingCafe3 күн бұрын
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...
@TheEcherriman4 күн бұрын
Great work again. Thank you
@CodeTradingCafe3 күн бұрын
Thank you for your support!
@stedocli638721 минут бұрын
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?
@More2lifee4 күн бұрын
Amazing..learnt new things!! Thanku
@CodeTradingCafe3 күн бұрын
Glad to hear that, thank you!
@cybern9ne4 күн бұрын
New subscriber - Thank you!
@CodeTradingCafe3 күн бұрын
Awesome, thank you!
@orlandonestoreulateandia8644 күн бұрын
Excellent, a question where can I learn how to connect py code with Tradingview? Thank you very much
@WannaBeQuant_SUB4 күн бұрын
U can't. Only data can exit trading view with webhooks in json format
@CodeTradingCafe3 күн бұрын
Not sure this is possible unless thay are selling an API which might not be a free option (if it exists)
@eitan7111 сағат бұрын
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 !
@CodeTradingCafe57 минут бұрын
Yes we can run the same code on different data
@dorviignatusnunana26052 күн бұрын
Dear CodeTrading, where do you place your limit or entry during backtesting...Is it the same as the current_close
@CodeTradingCafeКүн бұрын
Hi, yes once the pattern is confirmed the signal is at the end/close of the current/last candle.
@preetipics21 сағат бұрын
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Сағат бұрын
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.
@MrRahul159373 күн бұрын
Among all these strategies which one is your favourite
@CodeTradingCafe3 күн бұрын
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.
@tramesh0073 күн бұрын
@@CodeTradingCafe by any chance did you code the support & resistance with rejection candles?
@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
@eitan7111 сағат бұрын
@@CodeTradingCafe Thank you for sharing !
@franciscotafur90792 күн бұрын
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Күн бұрын
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.
@arnohmoins66613 күн бұрын
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Күн бұрын
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Күн бұрын
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?
@CodeTradingCafe22 сағат бұрын
If you really really tested it, then we can backtest it in python, send me the details by email codingntrading at gmail com
@differentone_p2 күн бұрын
okay now show the real money you got, account balance
@CodeTradingCafeКүн бұрын
It's slow 10 to 20 % yearly ... no get rich quick scheme sorry to disappoint.
@factoryofgaming52292 күн бұрын
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Күн бұрын
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.
@hermesus68314 күн бұрын
Which time frame?
@CodeTradingCafe3 күн бұрын
daily my favorite
@CodeTradingCafeСағат бұрын
M1 is deadly
@christophafalg42944 күн бұрын
Do you use tickdata?
@CodeTradingCafe3 күн бұрын
No need, just daily because the pattern is checked only when the last candle is closed.
@AndreSilva-cb3tz4 күн бұрын
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?
@CodeTradingCafe3 күн бұрын
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-cb3tz3 күн бұрын
@@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Күн бұрын
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.
@yamitanomura3 күн бұрын
I test this with bitcoin 1h data from 2018 to nov 2024. The result is very bad. :(
@CodeTradingCafeКүн бұрын
Hi, these patterns only work on daily timeframe, any lower timeframe will NOT work for sure.
@arremztife8712 күн бұрын
Can I integrate MT5 ?
@CodeTradingCafeКүн бұрын
Needs to be translated to mql5
@vincentg95703 күн бұрын
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Күн бұрын
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Күн бұрын
@@CodeTradingCafe Oh thank you very much! Yes in small pieces, I'm sure other people would be interested
@TheDoktorot4 күн бұрын
Anyone used this in their automated trading?
@CodeTradingCafe3 күн бұрын
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...
@edwinceriola15423 күн бұрын
Thats is a perfect chaos strategy ahah
@CodeTradingCafeКүн бұрын
Well maybe, but someone (M Harris) made some buck out of it.
@simonescelsaКүн бұрын
@@CodeTradingCafeyes he made a buck by selling a book
@CodeTradingCafe22 сағат бұрын
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.
@tundedankano523 күн бұрын
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Күн бұрын
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.
@Wotanhelm4 күн бұрын
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.