Revolutionize Your Stock Trading Strategy with Automated Trading in Python

  Рет қаралды 14,268

CodeTrading

CodeTrading

Күн бұрын

Пікірлер: 53
@tvstanuj6196
@tvstanuj6196 2 жыл бұрын
Great Video, Loved it . Can you please share any resources related to the long only method, like why you used rsi and adx indicators and how did you fix the values and all.
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
Hi thank you for your comment, at first the indicators were required by the mentioned viewer, but also it was worth a try because we already used RSI combination with ADX and it showed a somehow positive potential. This whole trend trading is also inspired by Rayner Teo BB strategies.
@ACN28
@ACN28 8 ай бұрын
how can i download the code?
@CodeTradingCafe
@CodeTradingCafe 8 ай бұрын
Hi, there is a link in the description usually for all the videos. check the description and the link.
@nageshreddy5368
@nageshreddy5368 2 жыл бұрын
Hi, i like all your videos, very educational and impressive. i was wondering if you could make a video with backtest on PSAR indicator in Python. Long if PSAR prints buy signal and Price above 200 EMA and vice versa for short. One more optional condition can be take the trade only if the candle closes above the last previous (Sell or Buy) dot of PSAR. Thanks
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
Hi thank you! Will check these indicators out, hopefully we learn something.
@jameswang6714
@jameswang6714 2 жыл бұрын
@CodeTrading: The video is great. Since the useful status for EMASignal are bull(upt=1, dnt=0), bear(upt=0, dnt=1) and middle between(upt=dnt=1), so the content of addemasignal() function can be simplified into one line of code: df['EMASignal'] = [1 if df.High[i]
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
Hi, thank you for sharing especially the comprehensions part I always like to shrink codes this was once they work, unfortunately for KZbin I tend to leave the mess as is 🙂
@jameswang6714
@jameswang6714 2 жыл бұрын
@@CodeTradingCafe Making the idea work is No.1 issue. Improvement is second. Appreciate all you did🙏👍
@robnotaro8584
@robnotaro8584 2 жыл бұрын
Any chance you can do a video on an options debit spread bot?
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
I am not very familiar with related strategies, I will have to inquire how it can be put in algorithms, if you have nice reading source it would be great.
@Munetaka
@Munetaka 2 жыл бұрын
Does the Backtest compares the strategy with some control profit? By control profit I mean something like the percentage profit you will have just holding from the begining until the end. So in case the controm profit is 150%, you know the strategy overcomes by 51%.
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
Good point in fact you can see in the results that the buy and hold return ratio is used as a reference and performs probably better but you are right it would be good to have more reference strategies.
@denizhan1010
@denizhan1010 2 жыл бұрын
@@CodeTradingCafe vectorbt module avesome but I couldn't run. you can backtest only one module with all strategy. Im backtesting with pine script is fake. I dont bleave to indicators, for backtest idea barback[x] now[y] avarage = x + y / 2 loop for x,y ,tp1,tp2,stoploss prameters long = ta.crossover(price,avarage) short = ta.crossunder(price,avarage) tp1 = [] tp2 = [] stoploss = and strat to trend trading.
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
@@denizhan1010 Hi, yes I tried with vectorbt but I found the documentation a bit scarce so it's time consuming to try and achieve a backtest. I personally found backtesting.py more user-friendly. Maybe in the future I will experiment on other tools.
@leandropenaloza9208
@leandropenaloza9208 2 жыл бұрын
Hey grate videos! I'm just found you channel. I'm wondering where I can start to learn about finance to understand even more what you are doing. I know python language but not that much of finance. Thanks in advance and keep going!
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
Hi thank you for your support, you can start using free resources like babypips and similar websites. Never pay for any thing basically all is available for free, KZbin is good but as a second phase. Also nothing replaces experience so you can open a demo account and trade with virtual money to practice and see how it works, Never trade with real money it took me 2 years to become profitable... Good luck!
@Kay-qg1vn
@Kay-qg1vn 2 жыл бұрын
Where can one find reliable symbol data? Where do you get your data? Is yfinance data reliable?
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
For daily timeframe I think yfinance is good enough, for lower timeframes I download data from dukascopy. There might be other sources but not for free.
@Kay-qg1vn
@Kay-qg1vn 2 жыл бұрын
@@CodeTradingCafe Okay thanks buddy, looking forward to your videos.
@anaslahlou6095
@anaslahlou6095 2 жыл бұрын
First of all, big up for the great work you are doing I joined lately a chanel on telegram of pump and dump, and it's like they are exploiting the users since they do buy before hand, and they have what they call "a VIP group" who gets the coin name before. The idea is to buy the coin which will get the price pumped, and then dump it. I would like to know if you can create algorithm that detects a pump, not necessarily pump and dump, any pump. I think that the volume is a good indicator (a jump in % to optimize compared to a N candle mean), same thing for the price, it should have an up trend. Now for selling I'm having some difficulties, I guess a drop in price or volume or a combination of both would do the trick, but some deep learning can give far good results.
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
Thank you for your support. It's possible to detect volume change and it's considered a good indicator (check previous videos using ADX I also use volume for confirmation). The only problem is to get reliable volume data, I am not sure the volume column that we normally download is entirely accurate, it might be broker dependant. There is a paid service for large companies they get the real data I am not sure it's available for individuals.
@anaslahlou6095
@anaslahlou6095 2 жыл бұрын
@@CodeTradingCafe I see, thank you for your response. I will be looking into this, I guess I can use some web browser extension to parse data from exchanges, it's not very practical as getting data directly from the source, but it will be accurate enough.
@harshadkashyap4195
@harshadkashyap4195 2 жыл бұрын
Can you please explain what you mean by margin here?
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
Hi, margin is the leverage for example margin 1/50 is leverage 1-->50
@harshadkashyap4195
@harshadkashyap4195 2 жыл бұрын
@@CodeTradingCafe okay in India there's leverage available only on shorting
@harshadkashyap4195
@harshadkashyap4195 2 жыл бұрын
@@CodeTradingCafe can you pls tell me where I can find the backtesting package that you use in the code?
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
@@harshadkashyap4195 you can install it using pip, pip install backtesting or from the notebook use !pip install backtesting
@sunnyw7109
@sunnyw7109 2 жыл бұрын
Have any python code that can auto copy Teragram‘s Binary option Signal then trade?😮
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
Hey Sunny, unfortunately not, there's a lot to do and so little time 🙂
@Kay-qg1vn
@Kay-qg1vn 2 жыл бұрын
Great🤝
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
Thank you
@avinasbr
@avinasbr 2 жыл бұрын
Hi @codeTrading Thanks for awesome content. Can you please make a video on paper trading bot to test on live market feed and store in a database. Thanks in advance.
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
Hi thank you, I did bots in the past, problem is testing live takes time so not very practical for a KZbin video, but yes ideally I could put our best indicators into a bot and let it run.
@rupertpupkin6456
@rupertpupkin6456 2 жыл бұрын
@@CodeTradingCafe love your ideea. I read almoust all mesages to see when you're starting a bot. love your videos
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
waiting for the perfect strategy 🙂
@rupertpupkin6456
@rupertpupkin6456 2 жыл бұрын
@@CodeTradingCafe I sent you an email. thanks
@suzzanemathis7472
@suzzanemathis7472 2 жыл бұрын
When it comes to currency market, most traders would probably just want to know how to hurry up and make money. but there more to been a successful trader. The more traders understand the past and current markets, the better prepared they are to face the future. Many traders fail because their strategies fail to adapt to changing market conditions. Traders know how to make money in specific markets but likely to fail in the long run because their strategies don't adapt to inevitable changes in market conditions. Erik Ming strategies perform well while the market experiences both bull and bear impulses. Classic rules from pro traders can help keep a sharp focus on profitability. He's been a proficient trader, this is a more reason it preferable to remain under the guild and umbrella of a pro trader.
@Annbobby
@Annbobby 2 жыл бұрын
How can i reach Erik for crypto trading signal?
@suzzanemathis7472
@suzzanemathis7472 2 жыл бұрын
You can communicate with him on telegram with the user name below
@suzzanemathis7472
@suzzanemathis7472 2 жыл бұрын
@ ERIKMING
@dawnbrenda6527
@dawnbrenda6527 2 жыл бұрын
*As it stands the market seems unfavorable. But what assurance do i get from trading with Mr Ming ? because the market looks scary to enter right now.*
@tanyachuaswee5596
@tanyachuaswee5596 2 жыл бұрын
@@dawnbrenda6527 I recently started trading with Erik's signal and it is very welcoming, educative and profitable 💯
@Jamil.francis
@Jamil.francis 2 жыл бұрын
👑👑👑👑
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
Thank you for your support 😊
@jama4002
@jama4002 2 жыл бұрын
hi very good video, thanks, i develop a IA model, its is not linked to Indicators I am using more than 47 Xs variables, and I reached this result, Accuracy train: 97.20% Accuracy test: 97.56% 1.0 50.1196 0.0 49.8804 Name: Res, dtype: float64 Accuracy Gambler: 33.51% and f1 is 95% when I use the strategy 100 / 50 target it is the double than the stop loss, my accuracy must be multiply by 50 % and the model accuraccy reach just d¡the 48%, I am right?
@jama4002
@jama4002 2 жыл бұрын
and another question, I do not how to perform a good backtesting, because i just found the CLOSE, HIGH, OPEN and LOW, but the price moves in this certaint period of time, so i do not wich I reched firts the target or the stopp loss if the price touch both in a certain candle (50/50) maybe for each fake order during my backtesting?
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
Hi, you have good numbers it seems, yes for the first question your accuracy should be around 50 percent.
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
For the second question you need different data, so called tick data, these can be downloaded but are huge in size so you can download only one week or so at a time if you have the space, technically it's challenging to handle.
@jama4002
@jama4002 2 жыл бұрын
@@CodeTradingCafe thanks a lot for your response, I going go searching about thick data, I am using a control data for each prediction to identify if my predicción are good there are some technique to improve my model overol New data prediction and new tag. Right now I am controlling the bid when I am trading. I just enter if the last 10 prediction have a 90% accuracy.
@CodeTradingCafe
@CodeTradingCafe 2 жыл бұрын
@@jama4002 sounds good the 90 percent accuracy, smart move!
I Gave My Terrible Trading Bot $10,000 to Trade Stocks
16:05
Coding with Lewis
Рет қаралды 538 М.
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
Convert TradingView Indicators into Strategies with AI (IT FINALLY WORKS)
21:49
How To Automate Multi-Asset Trading Strategies In Python
18:00
CodeTrading
Рет қаралды 12 М.
How to Code a AI Trading bot (so you can make $$$)
35:09
Nicholas Renotte
Рет қаралды 711 М.
Automated RSI Scalping Strategy Tested In Python
33:32
CodeTrading
Рет қаралды 15 М.
Rayner Teo Bollinger Bands Strategy Backtest In Python High Return
23:29
Backtesting Stock Trading Strategies in Python
17:48
NeuralNine
Рет қаралды 39 М.
Automated Support and Resistance Detection in PYTHON
19:25
CodeTrading
Рет қаралды 66 М.
How and Where to Enter a Trade Using Smart Money Concept!
20:11
Smart Risk
Рет қаралды 128 М.