Code a Bollinger Band Trading Strategy in Python

Поділитися
Вставка
  • Опубліковано 7 січ 2025

КОМЕНТАРІ • 35

  • @deniszhuravlev9874
    @deniszhuravlev9874 3 роки тому +12

    480 resolution - difficult to see your code. 720 - and higher is better.

  • @aaronsarinana1654
    @aaronsarinana1654 2 роки тому +3

    Great video! I didn't know it was possible to run python code in metatrader for live trading! A video from A to Z! Thanks!

  • @rolandonwa2369
    @rolandonwa2369 День тому

    If I login my ic market account or other brokers, it will not place trade, instead I will be getting "unsupported symbol" but it works in metaqoutes broker, what could be the course?

  • @fbrand
    @fbrand 3 роки тому +1

    Great explanation and a good basic base to start building from. Thank you

  • @QasimsDesk
    @QasimsDesk Рік тому

    Your work is awesome, Thanks for sharing

  • @Abdulmajid91
    @Abdulmajid91 3 роки тому +1

    good work my friend, i was looking to start some python coding :)

  • @vandesar9114
    @vandesar9114 3 роки тому

    Congrats. Awesome video. 👍

  • @santrix1595
    @santrix1595 2 роки тому

    Fanstastic Video!!

  • @AhmadAli-uu3tr
    @AhmadAli-uu3tr Рік тому

    Thank you so much amazing tutorial

  • @weishi8620
    @weishi8620 Рік тому

    Big thanks to you👍

  • @lasthope4531
    @lasthope4531 Рік тому

    do plotly have capabilities to plot candlestic?

  • @CuteWitch-su1me
    @CuteWitch-su1me 11 місяців тому

    Excuse me, how do i make it enter on the next candle open?

  • @schugh97
    @schugh97 2 роки тому +1

    Great video! This is really interesting with regard to backtesting and trading strategies with Python and MT5 directly. Would there be a possibility for you to make a video with some python libraries which could optimize the trading parameters itself for better results? For eg. SMA crossovers with a custom stoploss and takeprofit with step values for fast and slow sma to have more accurate results - after letting them for 500 epochs or so
    I mean by ways of machine learning / forward testing or anything involving a sharpe ratio maximization / optimal results - to bring into production on a demo account and then let it run live if the strategy turns out to be profitable? Please let me know. Look forward to hearing from you!

    • @ATJTraders618
      @ATJTraders618  2 роки тому +1

      Hey, I just released a video on SMA Crossovers including backtests and live trading. Hopefully you'll enjoy it. :)
      I'll try to provide some more content on backtesting in the future.

    • @hidayatullahdayat1756
      @hidayatullahdayat1756 2 роки тому

      @@ATJTraders618 Could you share the py file from section 13:06? Please, for my education

  • @levimor98
    @levimor98 2 роки тому

    Hi. Can you make open code to Anderson brokers platform or how to change this code API to anuder broker?

  • @rmanshk
    @rmanshk Рік тому

    can we backtest python code in metatrader like mql ?

  • @freenrg888
    @freenrg888 4 місяці тому

    Hi Tu. I got similar results with Bollinger Bands in MQL5. I want to add some filters so that we don't trade in trending markets. What's the best way to do that, in your opinion?

    • @ATJTraders618
      @ATJTraders618  4 місяці тому

      Personally, I like using SMA Crossover Filters or MACD.

  • @sodichz
    @sodichz 2 роки тому +2

    ++ import numpy as np

  • @rivasharma2753
    @rivasharma2753 3 роки тому

    Awesome bro thanks a lot

  • @dumidupramith3881
    @dumidupramith3881 3 роки тому

    thanks very helpful

  • @andresvargas9673
    @andresvargas9673 2 роки тому

    Bro great video, Could you share the py file from section 13:06? Thanks

  • @deniszhuravlev9874
    @deniszhuravlev9874 3 роки тому

    Video super!

  • @voravitrakwong
    @voravitrakwong 2 роки тому

    Good VDO
    I'm new in coding. I have the question
    - In real trade may be some trades SL before TP but in backtest not , Right?

  • @CityLifeEndOf
    @CityLifeEndOf 2 роки тому

    In your class(strategy) when calculating when to close a position, shouldn't you use high/low numbers rather than close numbers? The stoploss/takeprofit may trigger during a bar but close at a price that wouldn't trigger stoploss/takeprofit. Please correct me if i'm wrong. Can you add in the cost of the spread as I don't think this accounts for that. How about charges for holding positions overnight/the weekend? Also, you say you profit 7.5k but your pnl shows 17.5k. This column should be called 'end balance' instead. Nice video btw

    • @ATJTraders618
      @ATJTraders618  2 роки тому

      You're right about that. SL and TP data should use high lows. Nice catch.
      Maybe I mispronounced the numbers, sorry for the error.
      Regarding the trading cost, the simplest way is to sum up the volume and multiply that by the broker's cost per contract.
      Thanks for your comment.

    • @CityLifeEndOf
      @CityLifeEndOf 2 роки тому

      @@ATJTraders618 Really enjoying watching your videos and looking forward to the next one. Have a nice day!

  • @danishshahzad6399
    @danishshahzad6399 Рік тому

    Great video but you skipped the main section, I think for another video.

  • @globalfinancetrading
    @globalfinancetrading Рік тому

    Is there a way to use the iBands or indicators in the MQL5 library through python? If not I will need to learn Pandas to add a few concepts to this trade copier I made ua-cam.com/video/1-0qeOIdnNk/v-deo.html

    • @ATJTraders618
      @ATJTraders618  Рік тому

      I think, you'd have to calculate it yourself in Python or use ta-lib library whether it is there.

  • @dragoschiperi8090
    @dragoschiperi8090 Рік тому

    low resolution :(

  • @aakashgupta7489
    @aakashgupta7489 Рік тому

    KeyError: 'close'