sir please make a video on swing trading strategy with their backtest
@CodeTradingCafe2 жыл бұрын
Something is already on the channel, watch carefully 🙂
@vikastiwari87572 жыл бұрын
@@CodeTradingCafe i had seen it but please make 1 or 2 more, from which we can choose it
@CodeTradingCafe2 жыл бұрын
@@vikastiwari8757 I will check for something good...
@rrjain3192 жыл бұрын
Thanks for showing how to backtest a strategy.. How can we make use this code for real time execution.. what all modification we need to do.. can you please share how this can be done..
@CodeTradingCafe2 жыл бұрын
Hi thank you for your support, I will make a video on how to go live with a strategy it's easier this way.
@rrjain3192 жыл бұрын
@@CodeTradingCafe Thanks this would be a great help..
@anderwork75712 жыл бұрын
Hello, I am trying to collect the data of each trade within the backtesting results. Reading the documentation, I have seen that the trades have a "pl_pct" attribute that reflects the profit or loss in percentage of each trade. I'm right? However, when I try to collect the trade data treating it as a dataframe: stats[_trade] I don't find the column referring to that property. How can I find that type of data (pl, pl_pct...) of each trade once the backtesting is done? Thank you
@cooperdes39502 жыл бұрын
From my experience I’ve found using a trailing sl of about a half a percent of current close works well for this type of mean reversion. Tested on QQQ 4h I’ve seen profit factors up to 3.7 with around 90 trades (since 6/1/18). However does not work nearly as well on other stocks, so likely needs more tweaking
@CodeTradingCafe2 жыл бұрын
Yes it's frustrating when it's working well on one stock and not much on another. Robustness is important as well.
@luismiguelgutierrez61732 жыл бұрын
What if you add two or more EMAs for trend detection. A slow EMA that corresponds to a higher time frame and two faster ones for a smaller timeframe, so every cross marks the beginning of the new trend. Regarding exits, you could possibly apply the RSI and the fast EMA cross strategy together.
@CodeTradingCafe2 жыл бұрын
Did something almost similar for the next video 🙂 will see how it goes...
@vikastiwari87572 жыл бұрын
@@CodeTradingCafe then eagerly waiting for it. Please make video on supertrend, macd as well
@CodeTradingCafe2 жыл бұрын
Lots on the list but nice to see the results at the end
@royconte793311 ай бұрын
Thanks for this awesome video. Can you do one with python codes for the William Alligator?
@CodeTradingCafe11 ай бұрын
Hi, thank you, it's on my list but not a priority to be honest, now focusing on live trading deployment and next maybe Machine Learning again.
@thinketh24082 жыл бұрын
Sir are algos for scalping are as good as for day trading? On what timeframe algos works best... Right now I'm into scalping and so far no algos and strategy seem to work.. Kindly share your reviews...
@CodeTradingCafe2 жыл бұрын
Hi, algos are different for scalping and day trading and different timeframes. Daily timeframe is usually easier than others for algorithms
@jdf21592 жыл бұрын
Do you maybe have a Python Source code for auto trendlines?
@CodeTradingCafe2 жыл бұрын
Hi, try this video might be useful and the code is downloadable as well kzbin.info/www/bejne/ppncZmp6j7R8rcU
@AMA_RILDO2 жыл бұрын
hey mate thank you to share your knowledge. I would say, all we know the backtesting is crucial in the algorithms, would you mind me to asking you to make a video tutorial regarding only backtesting? Other KZbinrs has made some little tutorial but I think learn from you would be for us. Thank you in advance❤️
@AMA_RILDO2 жыл бұрын
**would be better** I would say
@CodeTradingCafe2 жыл бұрын
Thank you for your support, yes backtesting will be covered
@kitefrog2 жыл бұрын
Can you do a video on reverse divergence of RSI when price is trending over or under a slow MA? Use the MA to decide trade Direction.
@CodeTradingCafe2 жыл бұрын
Hi, I did a video on RSI divergence but without the backtesting part just the automated indicator, is that what you mean?
@easyxpress2 жыл бұрын
The code attached here is the original code, not this optimized one. Please fix. Thx.
@CodeTradingCafe2 жыл бұрын
Hi thanks for the heads up, to be honest I have such a mess in my folders I can't find the correct file... I will post it if I can achieve this 🙂 in the meantime sorry
@aaronsarinana16542 жыл бұрын
How about using zero-lag indicators like DEMA and TEMA instead of the simple EMA? DEMA is just a double EMA and, in theory, you have a zero-lag. I've seen other more complex filters with amazing resultas, like the Kalman filter, but the theory behind is quite heavy! ..
@CodeTradingCafe2 жыл бұрын
Hi thanks for sharing, by Double EMA you mean like 2 EMA's or one ema length 2 bars?
@eunjijeon4442 жыл бұрын
Thank you for sharing a special strategy! btw, could you make a video for double bottom/top strategy in python??it would be so grateful if you do! Thanks! :D
@CodeTradingCafe2 жыл бұрын
Hi thank you for your support, there are 2 videos about triangle band head and shoulders detection did you check them out?
@sbqb213 ай бұрын
Can you test William % range ?🎉
@CodeTradingCafe3 ай бұрын
sure, do you have any particular reference or strategy in mind?
@thinketh24082 жыл бұрын
And how to optimize the strategy as when optimization only works for the period algos is optimize for.
@CodeTradingCafe2 жыл бұрын
Well need to optimize one more time
@thinketh24082 жыл бұрын
@@CodeTradingCafe 🤣
@CodeTradingCafe2 жыл бұрын
I Know lol, but it's more complicated than it seems most of the time is spent on optimization
@thinketh24082 жыл бұрын
@@CodeTradingCafe it will be huge help if you would make video on the optimization techniques.. More over I have found there are many other python backtest libraries whats your comments on them?
@aaronsarinana16542 жыл бұрын
@@CodeTradingCafe how about doing something more automatic, for example, something similar to the grid search method used in machine learning. It's just a brute force optimization. Set a range of the value of the parameters you want to optimiza and loop through all possible combinations evaluating at each step some particular value, say the returns. You can leave all night if you want, not in a hurry here! ...