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

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ม.ค. 2025

ความคิดเห็น • 43

  • @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.

  • @DEChacker
    @DEChacker ปีที่แล้ว +1

    Thank you very much for this lesson!

  • @alisterjohn4360
    @alisterjohn4360 2 ปีที่แล้ว +2

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

  • @anishk1947
    @anishk1947 ปีที่แล้ว +1

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

  • @vishalkanojia9634
    @vishalkanojia9634 ปีที่แล้ว +1

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

  • @thefirstgoonie
    @thefirstgoonie ปีที่แล้ว +1

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

  • @TensaiCollectibles
    @TensaiCollectibles 2 ปีที่แล้ว +1

    Wow great video, very simple, and great teaching.

  • @MykeMarvelous
    @MykeMarvelous ปีที่แล้ว +1

    Excellent , thanks for shared

  • @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?

  • @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?

  • @eliotharreau7627
    @eliotharreau7627 2 ปีที่แล้ว +2

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

  • @Notepad123
    @Notepad123 ปีที่แล้ว +1

    Does this code have a look ahead bias?

  • @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?

  • @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

  • @nicksessler6640
    @nicksessler6640 2 ปีที่แล้ว +1

    is there a finished copy i could test ?

  • @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.

  • @zarithsofia3252
    @zarithsofia3252 ปีที่แล้ว +1

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

  • @reginalditiseng211
    @reginalditiseng211 3 ปีที่แล้ว +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

  • @lucksimi3320
    @lucksimi3320 ปีที่แล้ว

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

  • @dimager16
    @dimager16 2 ปีที่แล้ว

    what strategy are you using now

  • @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?

  • @ИгорьГлазков-с1б
    @ИгорьГлазков-с1б ปีที่แล้ว

    Thank you!!!

  • @jamesndlovu
    @jamesndlovu ปีที่แล้ว

    May l know can l use pycharm for this project ?

  • @atultanna
    @atultanna 2 ปีที่แล้ว

    Where can i get in touch with you

  • @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.

  • @jean-mariebirregah3791
    @jean-mariebirregah3791 2 ปีที่แล้ว

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

  • @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. :)

  • @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

  • @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.

  • @ashleshachougule5023
    @ashleshachougule5023 2 ปีที่แล้ว

    getting error in mt5 giving ans false

  • @rupamgohain3890
    @rupamgohain3890 2 ปีที่แล้ว

    hindi language video ha key