Ticaret robotlarını ücretsiz olarak nasıl indirebileceğinizi izleyin
Bizi Telegram üzerinde bulun!
Fan sayfamıza katılın
Fan sayfamıza katılın
Komut dosyasını ilginç mi buldunuz?
Öyleyse bir link gönderin -
başkalarının da faydalanmasını sağlayın
Öyleyse bir link gönderin -
başkalarının da faydalanmasını sağlayın
Komut dosyasını beğendiniz mi? MetaTrader 5 terminalinde deneyin
Simple moving average - MetaTrader 5 için gösterge
- Görüntülemeler:
- 24479
- Derecelendirme:
- Yayınlandı:
- 2019.03.17 20:01
- Bu koda dayalı bir robota veya göstergeye mi ihtiyacınız var? Freelance üzerinden sipariş edin Freelance'e git
Back to the basics :
One might ask : "Why do we need the simple moving average when it is published already"?
There are multiple reasons :
- existing sma calculations tend to have one of two issues (or both in some cases) :
- when you increase the calculating period, they are slowing down - due to constant repeated usage of loops
- if they do not use loops all the time, the, sometimes, the apply a "shortcut" that is simply an approximation when the exact simple moving average is never calculated. that can be frustrating at times
- they are rather complicated to use
So here is one version that is not an approximation, that does not slow down for longer periods and is easy to use (from code too)PS: it could be made to run even faster (migrating the code from the class to main loop would do that), but that would make the whole code less flexible and the speed-up would be marginal compared to lack of flexibility / reusability
Vortex 2
Vortex 2
TradeTransaction ClassA base class to simplify analyzing trade transactions in MQL5.
Explosion5
Advisor scalper. Trading algorithm: Candle[0]> Candle[1] * 2. Taimeframe - 4H && Day.
Linear Weighted Moving AverageLinear Weighted Moving Average