Code a Simple Moving Average (SMA) Crossover Trading Strategy in Python

Поделиться
HTML-код
  • Опубликовано: 21 дек 2024

Комментарии •

  • @YevhenZinhalov
    @YevhenZinhalov Год назад +6

    Thank you. How to change SMA.
    SMA - Simple Moving Average - shows the average price for a given period of time.
    EMA - exponential moving average - prioritizes the most recent data, so it reacts to price changes faster than a simple moving average.
    WMA - weighted moving average - focuses on the most recent data rather than older data.

  • @anishk1947
    @anishk1947 Год назад +1

    thank you for a great video, in which video are the classes explained? (20:36 onwards?)

  • @anm_yoga
    @anm_yoga 9 месяцев назад

    Thank you very much for your teaching, may I know in which video you explain how the backtesting Classes work?

  • @bas18872
    @bas18872 2 года назад +2

    strategy works well only one thing, the risk management is link, is it possible to do a backtest with an RR of for example 2.5 or a stop loss of 50 pips and a take profit of 200 pips?

  • @Notepad123
    @Notepad123 Год назад +1

    Does this code have a look ahead bias?

  • @DEChacker
    @DEChacker Год назад +1

    Thank you very much for this lesson!

  • @zarithsofia3252
    @zarithsofia3252 Год назад +1

    hai...i have request could you code LWMA crossover?

  • @nicksessler6640
    @nicksessler6640 2 года назад +1

    is there a finished copy i could test ?

  • @thefirstgoonie
    @thefirstgoonie Год назад +1

    Great strategy. Looks like the strategy is just for long trades or is the short trades as well? Thanks

  • @lucksimi3320
    @lucksimi3320 Год назад

    Hi
    How can i code 10ema in a weekly time frime from monday to Friday? thanks

  • @jmpividori
    @jmpividori 2 года назад +1

    Hi! great video. whe you backtest your strategy, its possible to make it place a position only if there are no open orders?

  • @rolandonwa2369
    @rolandonwa2369 Месяц назад

    How can I implemet ST and TP?

  • @YevhenZinhalov
    @YevhenZinhalov Год назад

    how to download (save) and install the robot in mt5???
    How to make data output to the panel to change after testing?

  • @avinashmishra6783
    @avinashmishra6783 Год назад

    My myan
    I was recently appointed by a merchant bank as associate. You don't know how much of help was the shift function.

  • @vishalkanojia9634
    @vishalkanojia9634 Год назад +1

    Really informative.. Loved it ❤️❤️❤️

  • @dimager16
    @dimager16 2 года назад

    what strategy are you using now

  • @MykeMarvelous
    @MykeMarvelous Год назад +1

    Excellent , thanks for shared

  • @eliotharreau7627
    @eliotharreau7627 2 года назад +2

    Very nice and complete présentation. In the backtesting, how can we add some commissions in ? Thnak you bro !

  • @alisterjohn4360
    @alisterjohn4360 2 года назад +2

    Really like to content and would like to see even more advanced stuff.....keep it up

  • @jamesndlovu
    @jamesndlovu Год назад

    May l know can l use pycharm for this project ?

  • @TensaiCollectibles
    @TensaiCollectibles 2 года назад +1

    Wow great video, very simple, and great teaching.

  • @CeritaGAA
    @CeritaGAA Год назад

    may I ask question, for the "sma_crossover_strategy = Strategy(df, 10000, 1)", number "1" mean how many lot? 1 Lot ?, if I want to change to 0.01 Lot, how much setting for this value? thanks

    • @ATJTraders618
      @ATJTraders618  Год назад +1

      Hi. 1 lot represeents 100.000 units. If you trade 0.01 lots, that would represent 1000 units of that currency.

  • @jonathanvoll112
    @jonathanvoll112 Год назад

    What is subscription for market data?

    • @ATJTraders618
      @ATJTraders618  Год назад

      Hi , the market data from the MetaTrader5 is free. You just have to sign-up with a Broker. Check the description for the sign-up link. :)

  • @audiobank7406
    @audiobank7406 3 года назад +3

    Oi Mate, first of all THANK YOU!! for taking your time and making the videos, you have just made the time I took learning python worth my while.

    • @ATJTraders618
      @ATJTraders618  3 года назад +2

      I'm glad to hear that you enjoy my content. :)

    • @EnoSam-dj1po
      @EnoSam-dj1po Год назад

      Oh you are great but still many things that I do not understand

    • @EnoSam-dj1po
      @EnoSam-dj1po Год назад

      Please I still want to know more about it and how about the python please your faithful I need is just to learn me more about the python

  • @jean-mariebirregah3791
    @jean-mariebirregah3791 2 года назад

    Hello,thanks you for this vidéo, can you make for meta trader 5,in mql5?

  • @atultanna
    @atultanna 2 года назад

    Where can i get in touch with you

  • @atultanna
    @atultanna 2 года назад

    Where can we find the code

  • @audiobank7406
    @audiobank7406 3 года назад

    quick question, do you perhaps know why the backtesting simulation missed the 2020 big drop bearish crossover?

    • @ATJTraders618
      @ATJTraders618  3 года назад +1

      If you go to 18:15, you will find that we are looking at only 'bullish crossovers' in this example. If you want to plot all, then you have to include bearish crossovers as well.

    • @audiobank7406
      @audiobank7406 3 года назад

      @@ATJTraders618 thanks for that, i saw green and red lines and just automatically assumed bull and bear

  • @reginalditiseng211
    @reginalditiseng211 2 года назад +4

    This is amazing content, can you show us how we could integrate a neural network to optimize such strategies

    • @alisterjohn4360
      @alisterjohn4360 2 года назад

      I agree, that will be great to see incorporating AI, ML etc

  • @ИгорьГлазков-с1б

    Thank you!!!

  • @ashleshachougule5023
    @ashleshachougule5023 2 года назад

    getting error in mt5 giving ans false

  • @rupamgohain3890
    @rupamgohain3890 2 года назад

    hindi language video ha key

  • @soloflick6579
    @soloflick6579 Год назад

    I think it is not the right logic is it?
    Previous slow sma should be used. Prev values of slow and fast and current values of slow and fast sma should be compared.