CodeTrading
CodeTrading
  • Видео 148
  • Просмотров 2 995 776
Profitable Strategy Using Bollinger Bands and RSI Automated in Python
In this video, we present a profitable trading strategy using Bollinger Bands and RSI indicators, automated in Python. The strategy combines Bollinger Bands, RSI, and specific candle patterns to detect reversal points and identify optimal entry positions. We backtest the strategy using Python, accounting for commissions and spread costs, and achieve positive returns. The video covers the strategy rules, demonstrates the Python code used for backtesting, and provides a downloadable link for the code. By integrating Bollinger Bands, RSI, and Python automation, this approach aims to enhance your trading performance. Join us to learn how to implement this effective strategy and test trading r...
Просмотров: 21 438

Видео

Surprising Differences in Bollinger Bands: Python Backtesting & Strategy Analysis
Просмотров 11 тыс.21 день назад
Explore the intriguing variations in Bollinger Bands calculations in our latest video, "Surprising Differences in Bollinger Bands: Python Backtesting & Strategy Analysis." In this tutorial, we automate Rayner Teo's powerful Bollinger Bands strategy using Python and backtest it on historical data to analyze its performance. Bollinger Bands are a popular technical analysis tool, but surprisingly ...
Automate Trading Bot Parameter Optimization with Python: A Comprehensive Guide!
Просмотров 8 тыс.Месяц назад
In this video, we show you how to automate the optimization of trading bot parameters using Python. Our simple trading strategy, which we previously backtested and deployed live, required weekly updates to the trading parameters to keep the bot optimized on the most recent data. To automate this process, we developed a Python code that includes the trading bot components and automates the optim...
How to Spot and Avoid Overfitting and Underfitting in Algorithmic Trading
Просмотров 8 тыс.Месяц назад
Welcome to our deep dive into the intricacies of algorithmic trading models and the often misunderstood concepts of overfitting and underfitting. In this video, we explore the truth about how trading strategies are actually developed and optimized, providing you with insights into why and how certain algorithmic trading models succeed. Algorithmic trading, like any advanced artificial intellige...
How Skipping Trading Fees Unlocks True Indicator Potential
Просмотров 6 тыс.2 месяца назад
Discover the strategic advantage of testing trading indicators without the distortion of commissions. In this insightful video, we dive deep into why skipping trading fees during the initial phases of strategy testing isn't just an oversight-it's a crucial step to evaluate the raw performance of potential indicators. By isolating indicators from trading costs, we can accurately assess their eff...
Inside The Alligator Trading Strategies With Advanced Analysis In Python
Просмотров 9 тыс.2 месяца назад
Explore the Alligator Indicator with our comprehensive Python backtesting tutorial. Delve into the world of financial trading algorithms as we dissect one of the most intriguing technical analysis tools, the Alligator Indicator, reputed for its unique approach to market trend analysis. This video tutorial offers an in-depth examination of a strategy purported to harness the Alligator Indicator'...
The Truth About MACD Trading | Algorithmic Strategy Backtest In Python
Просмотров 23 тыс.2 месяца назад
Discover the Truth About MACD Trading as we dive deep into an Algorithmic Strategy Backtest in Python. Ever stumbled upon trading strategies promising high win rates? We put one of the most talked-about strategies, the MACD trading strategy, under the microscope to verify its claims of an 80% win rate. This video is your ultimate guide to understanding, applying, and backtesting the MACD tradin...
The Most Realistic Automated Trading Analysis Using Python
Просмотров 43 тыс.3 месяца назад
The Most Realistic Automated Trading Analysis Using Python
How To Improve A Live Trading Bot For Forex Part 2 of 2 | The Python Code
Просмотров 13 тыс.3 месяца назад
How To Improve A Live Trading Bot For Forex Part 2 of 2 | The Python Code
How To Improve A Live Trading Bot For Forex (Part 1 of 2)
Просмотров 12 тыс.4 месяца назад
How To Improve A Live Trading Bot For Forex (Part 1 of 2)
Live Trading Bot Strategy In Python
Просмотров 63 тыс.4 месяца назад
Live Trading Bot Strategy In Python
Trading with Python: Simple Scalping Strategy
Просмотров 84 тыс.5 месяцев назад
Trading with Python: Simple Scalping Strategy
Maximize Trading Profits with Python Optimize Your Strategy Using EMA, Bollinger Bands & Backtesting
Просмотров 43 тыс.6 месяцев назад
Maximize Trading Profits with Python Optimize Your Strategy Using EMA, Bollinger Bands & Backtesting
Boost Trading Returns by 30% with Python Automation of Price Channel Breakouts
Просмотров 15 тыс.6 месяцев назад
Boost Trading Returns by 30% with Python Automation of Price Channel Breakouts
Maximizing Profits with Python Backtesting: Price Breakout Strategy & Dynamic Trade Management
Просмотров 16 тыс.7 месяцев назад
Maximizing Profits with Python Backtesting: Price Breakout Strategy & Dynamic Trade Management
Automated Price Break Out Detection: Algorithmic Trading In Python
Просмотров 42 тыс.7 месяцев назад
Automated Price Break Out Detection: Algorithmic Trading In Python
Strong Support and Resistance Levels Detection With Python For FOREX And Stocks Trading Algorithms
Просмотров 29 тыс.8 месяцев назад
Strong Support and Resistance Levels Detection With Python For FOREX And Stocks Trading Algorithms
Algorithmic Trading Alerts In Python For Forex And Stock Markets
Просмотров 16 тыс.9 месяцев назад
Algorithmic Trading Alerts In Python For Forex And Stock Markets
Flag Pattern Trading with Python | Algorithmic Trading Guide
Просмотров 24 тыс.9 месяцев назад
Flag Pattern Trading with Python | Algorithmic Trading Guide
Trading Indicator Analysis: CHOCH Indicator Python Implementation
Просмотров 27 тыс.10 месяцев назад
Trading Indicator Analysis: CHOCH Indicator Python Implementation
How To Download Financial Data for Forex, Stocks, and Metals
Просмотров 11 тыс.10 месяцев назад
How To Download Financial Data for Forex, Stocks, and Metals
Advanced Forex and Stock Trading: Algorithmic Backtesting and Trade Management Techniques
Просмотров 11 тыс.11 месяцев назад
Advanced Forex and Stock Trading: Algorithmic Backtesting and Trade Management Techniques
Step-by-Step Guide to Building a Fibonacci Retracement Forex Trading Indicator in Python
Просмотров 20 тыс.Год назад
Step-by-Step Guide to Building a Fibonacci Retracement Forex Trading Indicator in Python
FOREX Trading Predictions with Facebook Prophet | Python Time Series Analysis
Просмотров 9 тыс.Год назад
FOREX Trading Predictions with Facebook Prophet | Python Time Series Analysis
How to Use Support Resistance Levels and RSI for Profitable Currency Trading
Просмотров 18 тыс.Год назад
How to Use Support Resistance Levels and RSI for Profitable Currency Trading
Moving Average And VWAP Trend Strategies Backtest In Python
Просмотров 25 тыс.Год назад
Moving Average And VWAP Trend Strategies Backtest In Python
Master Price Action Trading with Automated Doji and Engulfing Patterns using Python
Просмотров 14 тыс.Год назад
Master Price Action Trading with Automated Doji and Engulfing Patterns using Python
Strategy BackTest Of Price Channel Break Out In Python
Просмотров 14 тыс.Год назад
Strategy BackTest Of Price Channel Break Out In Python
Channel Break Out Indicator In Python
Просмотров 22 тыс.Год назад
Channel Break Out Indicator In Python
ChatGPT Trading Strategy Challenge
Просмотров 16 тыс.Год назад
ChatGPT Trading Strategy Challenge

Комментарии

  • @saumikhan2655
    @saumikhan2655 23 часа назад

    hi sir, how can i put this python code in mql4 file ? if i put it there and execute it would it be turned into mql4 ea file?

  • @CptnYarface
    @CptnYarface День назад

    Great video! I'm also going through your Udemy courses as well. Love them! I do have a question on this video though. What is meant by "MySize=3000" and "Margin=1/30"? Are we assuming each trade is 3000 units (dollars, in this case) and the we're leveraging at 30:1?

  • @huseyincuma9523
    @huseyincuma9523 День назад

    how did get that much data like you got 224k rows that's a huge number. btw most of your contents are what I'm exactly looking for thank you for these videos.

  • @harrisonwalker96
    @harrisonwalker96 2 дня назад

    Great video! I will dig into the code in the coming days. Thanks for sharing.

  • @jasonh686
    @jasonh686 2 дня назад

    Thanks!

    • @CodeTradingCafe
      @CodeTradingCafe 2 дня назад

      Thank you for your support! much appreciated.

  • @nathancandel6250
    @nathancandel6250 3 дня назад

    How are you able to connect your trading bot to the trading platform

    • @CodeTradingCafe
      @CodeTradingCafe 2 дня назад

      Hi, using Oanda's API and account information. Other brokers offer this as well.

    • @nathancandel6250
      @nathancandel6250 День назад

      @@CodeTradingCafe can you do a video for that please

    • @CodeTradingCafe
      @CodeTradingCafe День назад

      Hi, it's this exact video it shows how to do this through functions.

  • @alvaroarias2143
    @alvaroarias2143 4 дня назад

    Hi again. I'm struggling to understand what does the "size" variable means as a parameter to the buy( ) or sell ( ) methods. Does it mean a % of the equity, like the risk we take in that trade or does it mean the lot size, for instance, 0.04 would mean 4 mini lots ??? I've been digging in the backtesting.py file. In the Trade class, in the "pl", "pl_pct" and "value" getters, the "size" meaning a fraction of the equity doesn't make much sense to me, and therefore that's where I get confused.

    • @CodeTradingCafe
      @CodeTradingCafe 2 дня назад

      Hi if you insert a size less than 1 e.g. 0.1 it means you buy or sell with 10% worth of the total equity, for example you have 1000USD you buy EUR with size 0.1 so you are buying with 100USD worth of EUR. If you set a size above 1 then it's the lot count unit, completely different.

    • @alvaroarias2143
      @alvaroarias2143 2 дня назад

      ​​@@CodeTradingCafe ​ thanks a lot for clarifying. One last question, for now I promise: 😊 The "bt.plot( )" code isn't showing anything...I have looked it up, and apparently it has to do with some "bokeh" plotting library. Most forums say we should downgrade the 3.x.x versions to 2.4.3, which is the one I have installed, but even though it's not working. So I don't have a way to visually contrast the statistics that are being printed out. Do you happen to have run into this issue in the past ?

    • @CodeTradingCafe
      @CodeTradingCafe День назад

      Hi, I remember struggling to make it work around 3 years ago, I guess no the versions have changed though. Try checking if it's generating an html file in the same folder.

    • @alvaroarias2143
      @alvaroarias2143 День назад

      @@CodeTradingCafe Yes, it does generate an html file but it displays nothing on the screen. It's a void html or at least the JavaScript behind it, is not working. So if you experienced the same glitch, maybe you can help me out. This is the warning I get as soon as I execute the first cell: "Jupyter Notebook detected. Setting Bokeh output to notebook. This may not work in Jupyter clients without JavaScript support (e.g. PyCharm, Spyder IDE). Reset with `backtesting.set_bokeh_output(notebook=False) "

  • @alvaroarias2143
    @alvaroarias2143 4 дня назад

    Hello, how do you assign the data to the Strategy class? I mean, when you use, self.data, how do you connect that variable, with the dataframe you have been processing until now ?

    • @CodeTradingCafe
      @CodeTradingCafe 4 дня назад

      Hi, self.data will bring in the dataframe that you provided when you call the backtest function afterwards, notice I am passing a df parameter somewhere to launch the backtest.

    • @alvaroarias2143
      @alvaroarias2143 4 дня назад

      Thanks a lot. I have one more question. But I'll ask it in some other video comments section, because the doubt is related to some other matter not dealt with, in this video

  • @mikecervantes9394
    @mikecervantes9394 4 дня назад

    Awesome job Francis thanks a lot! im here from udemy ;). Have u try this strategy with stochastic i/o rsi? and maybe adding a trailing stop...

    • @CodeTradingCafe
      @CodeTradingCafe 4 дня назад

      Hi, thank you for sharing. I didn't spend all the time I wanted on this strategy yet, I think it is tunable still...

  • @startupworld497
    @startupworld497 5 дней назад

    what is the backtesting result for this strategy ?

    • @CodeTradingCafe
      @CodeTradingCafe 4 дня назад

      As is not well, but it has to be combined with other indicators (mainly trend indicators) to provide good potential.

  • @orderflowdojo
    @orderflowdojo 5 дней назад

    😎📈

  • @machines_go_algo
    @machines_go_algo 5 дней назад

    I think there is a small but important mistake with MACD here. ============= help(ta.macd) gives us this: Returns: pd.DataFrame: macd, histogram, signal columns. ============= but the way way you append the columns is MACD, SIGNAL, HISTOGRAM am I missing something here?

    • @CodeTradingCafe
      @CodeTradingCafe 5 дней назад

      Now I am perplexed I will have to go back and verify the code! but thank you for pointing this out, I guess this can be easily verified also on the plot

    • @machines_go_algo
      @machines_go_algo 5 дней назад

      @@CodeTradingCafe i think i know what is wrong, the code you use is based on talib's output. You thought that ta and talib are consistent in their output signature since so much of ta is based on talib. Unfortunately they are not :( just swap ta with talib and you are good. ========================= help(talib.MACD): Outputs: macd macdsignal macdhist =========================

    • @CodeTradingCafe
      @CodeTradingCafe 4 дня назад

      Makes sense, thank you for getting back, so I assume talib is being called in the background I wasn't aware of the differences!

    • @machines_go_algo
      @machines_go_algo 4 дня назад

      @@CodeTradingCafe glad to help you. Love your content.

  • @dilanjayaweera1634
    @dilanjayaweera1634 5 дней назад

    Are you currently running any bot with real money? can you share the status of that bots like you previously did?

    • @CodeTradingCafe
      @CodeTradingCafe 5 дней назад

      Hi, actually around +8% to +14% yearly return (so I can't buy an airplane yet). I run it on low risk setup but I can push it up to 20% yearly I just don't like risk. It runs on the daily and 4H timeframe so it's slow, around 2 signals per month.

    • @dilanjayaweera1634
      @dilanjayaweera1634 4 дня назад

      @@CodeTradingCafe Thank you for replying

  • @vishalkanodia4830
    @vishalkanodia4830 6 дней назад

    hello please help me in using this in trading view for INDIAN share market

    • @CodeTradingCafe
      @CodeTradingCafe 6 дней назад

      Hi, unfortunately I don't trade specific markets but you can adapt any of my codes on this channel. Good luck!

  • @boamahmarcus4002
    @boamahmarcus4002 6 дней назад

    This is a horrible strategy 😂

    • @CodeTradingCafe
      @CodeTradingCafe 6 дней назад

      All scalping strategies are horrible except very few, it's hard to find something consistent on low timeframes.

  • @boamahmarcus4002
    @boamahmarcus4002 6 дней назад

    Maybe use the ATR as a stop loss?

    • @CodeTradingCafe
      @CodeTradingCafe 6 дней назад

      Yes I tried it in other videos, can't remember which ones, but in the recent videos I frequently include the ATR for SL and TP levels.

  • @Ed-ix2vk
    @Ed-ix2vk 6 дней назад

    What do you think of adding bid-ask spread and slippage?

    • @CodeTradingCafe
      @CodeTradingCafe 6 дней назад

      On lower timeframes that would cancel most of the returns, on 4H and daily it's good, actually the commission I added 0.002 is relatively large and covers for spread and slippage)

  • @rajeshdua558
    @rajeshdua558 6 дней назад

    I am not sure if you are still active on this channel. If the HL has been broken during descending impulse, we can check the Fibonacci levels to see if it is the right entry or not. If the price broke below and already crossed 61.8% Fib level, it can be a wrong trade.

    • @CodeTradingCafe
      @CodeTradingCafe 6 дней назад

      Hi, thank you for sharing, yes I am still following up a bit. Good point I actually have another vid on the Fibonacci entry levels we can combine both videos/codes I guess.

    • @rajeshdua558
      @rajeshdua558 6 дней назад

      @@CodeTradingCafe Thank you for the reply. I sent you an email to you. Please check and let me know.

  • @emeraandhanshe5954
    @emeraandhanshe5954 7 дней назад

    Any chance this can be coded in PINEScript to create a indicator in TV

    • @CodeTradingCafe
      @CodeTradingCafe 6 дней назад

      Hi, it can be translated but I don't do pinescript myself (try with chat GPT it might help)

  • @MilaAndrews-kw4rr
    @MilaAndrews-kw4rr 7 дней назад

    I don't know, dudes. I think crypto and all these ICOs are just a bubble. Well, crypto is good for transfers and so on, but I don't engage in trading. It's too risky. My friend recently lost $5000 there. I invest crypto in the Unimantic platform, their MEV bots do all the work for you. I've never had any problems with it, unlike platforms like Binance or others. I'm just speaking from personal experience that it's better not to engage in market manipulation and rely on proven things.

  • @MsRajdutta
    @MsRajdutta 7 дней назад

    This video is a great help...thank you

  • @jakub9802
    @jakub9802 7 дней назад

    Dude it was the same problem that made mu furious 2years ago, and I couldn't understand it. THANKS YOU! This class was a blessing!

    • @CodeTradingCafe
      @CodeTradingCafe 7 дней назад

      Glad it helped! thank you for your support!

  • @ChandanSah-un2xg
    @ChandanSah-un2xg 7 дней назад

    60% return from 2011 to 2024?

    • @CodeTradingCafe
      @CodeTradingCafe 7 дней назад

      Yes but these strategies can be deployed on multiple assets at the same time so you can trade for instance 30 assets in parallel.

  • @ryanwells7596
    @ryanwells7596 7 дней назад

    This grid trading video was great. You're such a natural teacher. I know its a year since you did this video but maybe its a good candidate for an update? I had a few questions. 1. Its not clear in live conditions whether you would place pending orders? 2. Have you tested this live? 3. Ironically in the little I've looked at grids, when the market is really moving fast then slippage can grow a lot or the grid kinda collapses. You've got such clever ideas, i wonder if you have any ideas of how to protect or opt out of trades. In those situations. 4. Id be interested to see a video on a triangular arbitrage. Scalping forex trade, eg long eurjpy long usdjpy short eurusd. 5. Lastly, so many awesome ideas you've shared. What strategies do you actually trade yourself. Thanks for all the great learnings! R

    • @CodeTradingCafe
      @CodeTradingCafe 7 дней назад

      Hi, thank you for your comment. To be honest I was always intrigued by different grid systems, and as I mentioned in the video I once did over 1000% returns in just 6 weeks (real money account, trading manually though), I got lucky the market was ranging with no trend during that time. I would very much consider revisiting these systems I will do a small bibliography around it. For slippage and fees I think the easiest and best solution is increase timeframe, higher timeframes include larger movements that can easily cover trading fees and slippage. My personal trading is very simple, price action patterns combined with candles patterns on the 4H and daily timeframes, slow but safe. Good luck!

    • @ryanwells7596
      @ryanwells7596 6 дней назад

      @@CodeTradingCafe you got me thinking some more about this. I know you trade FX, like I've tended to, however... I've been concerned about the speed of moves and news at certain times. Perhaps trading a basket of stocks and/or hedging going into news might make this a safer trading strategy. Inversely correlated instruments might also help with drawdown.

    • @CodeTradingCafe
      @CodeTradingCafe 5 дней назад

      I think hedging and triangulation is another world of trading it has a different set of rules on its own, I am not an expert on this but I will revisit few books see if I can dig anything interesting.

  • @fusionsamayal6384
    @fusionsamayal6384 8 дней назад

    Hi this is wonderful high probability setups. Thanks for sharing. Whrere can I find the python code?

    • @CodeTradingCafe
      @CodeTradingCafe 7 дней назад

      Hi, thank you, the code is in the link in the description

    • @fusionsamayal6384
      @fusionsamayal6384 7 дней назад

      @@CodeTradingCafe Thanks for the reply. Tried the code shows error

  • @rajutandale6663
    @rajutandale6663 8 дней назад

    sir pl. code for india stock market

    • @CodeTradingCafe
      @CodeTradingCafe 8 дней назад

      Hi, really sorry I am not familiar with the indian market, but if you like a strategy here you can adapt easily to any asset you are trading.

  • @rajutandale6663
    @rajutandale6663 8 дней назад

    sir pl. code for indian market

    • @CodeTradingCafe
      @CodeTradingCafe 8 дней назад

      Hi, really sorry I am not familiar with the indian market, but if you like a strategy here you can adapt easily to any asset you are trading.

  • @basitali7267
    @basitali7267 8 дней назад

    Your work and you both are great! I loved all your videos, it is amazing. I feel like I am Fan of you. Quite impressed (obviously the work) but looking at the replies more impressed. Hates off!!

    • @CodeTradingCafe
      @CodeTradingCafe 8 дней назад

      Thank you so much 😀 your support is much appreciated! Good luck for your coding... and trading.

  •  9 дней назад

    Only 18 trades and 66% return over such immense timeframe (13 years) is actually pretty bad. Notice that the dataframe has an open value of 59.2 in the first row and a close value of 101.386 in the last row. Buying the asset in the first day and selling in the last yields a return of 71.26% by doing absolutely nothing. The strategy is actually underperforming the simplest strategy, which is buying and holding.

    • @CodeTradingCafe
      @CodeTradingCafe 8 дней назад

      Hi, thank you for sharing, I understand your point I do agree partially though. The buy and hold strategy works only on increasing assets, imagine I tried the same strategy on a different stock or a forex that went down so basically the buy and hold will be in the negative, I avoid taking it as a reference. I do agree though that the number of trades is low however I have read many professional traders books and they do have this kind of "selective" strategies too, the solution is to run the strategy on multiple assets at the same time.

  • @sanjlakhanpal5017
    @sanjlakhanpal5017 9 дней назад

    I luv yr channel

    • @CodeTradingCafe
      @CodeTradingCafe 8 дней назад

      and my channel loves you :) thank you for your support

  • @standup9729
    @standup9729 9 дней назад

    which market can use for this strategy? Can it use for forex, please?

    • @CodeTradingCafe
      @CodeTradingCafe 9 дней назад

      Any market might work and might not, we need to try it, but yes I think forex is a good start.

  • @TheEcherriman
    @TheEcherriman 9 дней назад

    By the way, if you get bored, you could always try "VP's" No Nonsense FX algo !

    • @CodeTradingCafe
      @CodeTradingCafe 9 дней назад

      I could code it, is it freely accessible somewhere?

  • @davidsaurel4012
    @davidsaurel4012 9 дней назад

    Discarding short trades and you get 100% WR

    • @CodeTradingCafe
      @CodeTradingCafe 9 дней назад

      Thank you for pointing this out. But I am afraid the total number of trades is low so this is not very accurate we would have to test it on different assets as well.

  • @tejiriadjogbe2063
    @tejiriadjogbe2063 9 дней назад

    Nice video, helped me understand the question. My Solution in Swift: guard !A.isEmpty, A.count <= 100000, X >= 1 && X <= 100000 else { return -1 } var distance = Dictionary(uniqueKeysWithValues: (1...X).map { ($0, " ") }) for (i, item) in A.enumerated() { distance[item] = nil if distance.isEmpty { return i } } return -1

    • @CodeTradingCafe
      @CodeTradingCafe 9 дней назад

      Thanks for sharing, not a swift expert but I guess the algorithm is the same. Good luck!

  • @simple2125
    @simple2125 10 дней назад

    just plotting and looking they are close does not mean its accurate enough ....u need metrics ok, even if u do training and testimg..u need to assess ur accuracy

    • @CodeTradingCafe
      @CodeTradingCafe 9 дней назад

      Hi yes I agree, there is another video showing more realistic analysis check it out ruclips.net/video/lhrCz6t7rmQ/видео.html

  • @davidsalzgeber4792
    @davidsalzgeber4792 10 дней назад

    Your videos inspired my to build my own trading bot. I created a oanda demo account and wrote some code and deployed it. The problem i currently have, is that i have to pay a lot of swap. (I did some research, as far as I understand its just overnight fees.) The swap is in my case really high, nearly 0.1% of my invested capital per day. When investing in stocks over a few months, the swap would eat all my profits. Especially on the daily timeframe. What can i do about that? (I am new to that subject, so it is possible that i missed something very obvious)

    • @CodeTradingCafe
      @CodeTradingCafe 9 дней назад

      Hi, yes I suffered from swap at some point with Oanda, and sometimes swap can be positive meaning you earn on the opened trades! yes it's a small interest for some forex pairs and in one direction for example on USDCHF if you buy/long you get interest but if you short you pay interest... anyway to get rid of this check in your region if Oanda has other types of accounts that don't make you pay swap or overnight fees, if not check other brokers as well, my friend uses CFI in the MiddleEast region he can leave Forex trades opened for 3 month with no additional fees!

    • @davidsalzgeber4792
      @davidsalzgeber4792 4 дня назад

      @@CodeTradingCafe Thank you for the explanation! It makes a lot of sense. I am currently working an a BTCUSD Trading Bot and it got great results in the backtests over the last 4 years. The strange thing is, that i have to pay swap for going long and short. I will probably have to switch the broker, but that should not be that big of a deal.

  • @sachin6757
    @sachin6757 10 дней назад

    @CodeTradingCafe I have a strategy. Could you please check and let me know 1. RSI above RSI MA 2. close should be above 20 ema to take entry

    • @CodeTradingCafe
      @CodeTradingCafe 9 дней назад

      Hi, this is not a strategy, it's 2 indicators combined, there is a lot to consider when you need to backtest including the trade management part. You need to provide more details like the length of the RSI, the length of the MA of the RSI, when RSI above MA are we talking exactly about when the RSI crosses above the MA?... If you decide to code strategies, the advantage you will gain is thinking in details :) I strongly encourage you to try, your whole trading experience will change. Edit: sorry I just noticed how long my message is.

    • @sachin6757
      @sachin6757 9 дней назад

      @@CodeTradingCafe thanks for your reply. Yes, I am working on strategy based on these 2 indicators to take entry.

  • @TheEcherriman
    @TheEcherriman 10 дней назад

    Hi, I've been trying to adapt your code for FX (EURUSD H1 in this case) In the Scatter chart part (e.g) the following line threw a type error line=dict(color='green', width=1), - which was corrected with line={'color': 'green', 'width': 1}, However, once I was in the backtest section, the following errors occurred ValueError: Long orders require: SL (1.080610316351981) < LIMIT (1.08264156) < TP (1.0825096836480192) ValueError: Short orders require: TP (1.1016589696057346) < LIMIT (1.10151738) < SL (1.1035810303942652) Any tips on how to debug this, please ?

    • @CodeTradingCafe
      @CodeTradingCafe 9 дней назад

      Hi, yes the TP values are not aligned with the trades and the TP distances, recheck the conditions why and how are these values messed up, so it's basically the values of TP and sL you need to recheck the rules and make sure the values are computer correctly.

  • @pedromendozaaristegui5974
    @pedromendozaaristegui5974 10 дней назад

    What about gbt algorithms like xgboost & catboost for price prediction?

    • @CodeTradingCafe
      @CodeTradingCafe 9 дней назад

      Price prediction is a long shot, I did try xgboost for trend category prediction it's also complicated, simple methods work better!

  • @yashpatel2458
    @yashpatel2458 11 дней назад

  • @timnguyen2551
    @timnguyen2551 11 дней назад

    hi, i love your videos ! Do you have the script to implement this strategy in Tradingview ? Thanks

    • @CodeTradingCafe
      @CodeTradingCafe 9 дней назад

      Thank you for your support, I am just on python no other coding languages for now :)

  • @bipmix
    @bipmix 11 дней назад

    Just joined and the code link won’t load into Phythpn or Anaconda to test, any suggestion is appreciated

    • @CodeTradingCafe
      @CodeTradingCafe 9 дней назад

      Open Jupyter notebook and try to load/open the file from there.

  • @priyansh02chawda
    @priyansh02chawda 11 дней назад

    This works best in only sideways market

    • @CodeTradingCafe
      @CodeTradingCafe 11 дней назад

      I agree it doesn't seem robust enough to me, can be revisited with mods later on maybe.

  • @AxelFoster322
    @AxelFoster322 11 дней назад

    Oh, I love you guys, the best market analysis! Seriously, why not mention Unimantic?

    • @CodeTradingCafe
      @CodeTradingCafe 11 дней назад

      Thank you for your support, we're not aware of UM

    • @FarmerJesse
      @FarmerJesse 6 дней назад

      What's up with spammers trying to promote this unheard of unimantic? Leave us alone, no one wants to buy your crappy unimantic

  • @jasonh686
    @jasonh686 11 дней назад

    Thank you for your amazing videos. They are always so clear and very helpful and I have learned a lot from them. I am having an issue with determining support and resistance as I get the following attribute error when trying to create my ss and rr lists: 'DataFrame' object has no attribute 'low'. The data from my broker exports the low values under the column '<LOW>', however I have defined my low as = list(df['<LOW>']). Am I doing something wrong? Your help would be greatly appreciated.

    • @CodeTradingCafe
      @CodeTradingCafe 11 дней назад

      Glad you like them! Thank you for your support. Actually yes the error you are encountering is related to the names of the columns, for example if the title of the column is LOW you to change all the occurrences of low to LOW... just as you did, now since you are still getting the error it means that there is still an unchanged 'low' somewhere in your code. Check it out again and let me know if it works.

    • @jasonh686
      @jasonh686 10 дней назад

      @@CodeTradingCafe Thank you for your response and help with this! I've looked through the code again and all instances seem to be correct, but I am still getting the error. I can email you a screenshot of the error message if you think that would help?

    • @CodeTradingCafe
      @CodeTradingCafe 9 дней назад

      Send me a screenshot maybe I can figure it out

    • @jasonh686
      @jasonh686 8 дней назад

      @@CodeTradingCafe Thank you very much Sir, I really appreciate it!

  • @abdsh422
    @abdsh422 11 дней назад

    Amazing contribution. You made it easy to start for many people. Thanks for keep contributing!

    • @CodeTradingCafe
      @CodeTradingCafe 11 дней назад

      My pleasure! Thank you for your constant support, you always bring something nice into the comments :) enjoy coding and Good luck.

  • @hu5116
    @hu5116 11 дней назад

    Thanks! Great video with very interesting strategy! You gave me a number of ideas to try ;-)

    • @CodeTradingCafe
      @CodeTradingCafe 11 дней назад

      Great to hear! Coding is always good bringing new ideas I find it stimulating.

  • @Ryukung-vt8iw
    @Ryukung-vt8iw 12 дней назад

    In trading, possessing technical analysis skills is not sufficient on its own; discipline and emotional maturity play crucial roles in achieving success. Embracing the mindset of "time in the market vs. timing the market" proves valuable, especially during market fluctuations. I attribute my growing daily earnings to Flora Legziel's valuable insights and daily trade signals, coupled with my commitment to continuous learning. Kudos to the journey ahead!

    • @kristianscout
      @kristianscout 12 дней назад

      I've just looked up her full name on my browser and found her webpage without sweat, very much appreciate this

    • @agiaco
      @agiaco 12 дней назад

      It's unexpected to come across her name here. She understands every beginner’s intention and fix you to a trading course that matches your capacity, she knows her stuff! Her advice has been invaluable to my trading journey. Definitely worth giving a shot!

    • @KadenGarcia-uk7pj
      @KadenGarcia-uk7pj 12 дней назад

      It is really refreshing to see a comment about Flora. I have worked with her also for months now, reached out after reading more about her on the internet. she simplifies matters, whether it's a market surge or drop; her approach consistently keeps you ahead of the trend, She's a guru i'll say

    • @Quinwill
      @Quinwill 12 дней назад

      Investing has proven to be an incredibly beneficial decision. My cryptocurrency profits continue to play a substantial role in growing my overall wealth, reducing my reliance on my salary

    • @ZarikaIraka
      @ZarikaIraka 12 дней назад

      Nice to see this here, Flora Legziel's understanding of market indicators is impressive. She knows exactly when to enter and exit trades for maximum profit. her siignals are top notch

  • @lorensaunders6034
    @lorensaunders6034 12 дней назад

    I think the key is mostly the two conditions of price action... one candle closing outside of the BB and the other surpassing it in the other direction and to the other side of the BB. I bet it works on multiple timeframes but is best on the H1. Just a hunch.

    • @CodeTradingCafe
      @CodeTradingCafe 11 дней назад

      Hi thank you, I was actually willing to try 1H I don't remember I have made any video here using 1H timeframe...