
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Good morning
Is it clearer like this?
No, I already saw it thinking that position was the first bar to calculate as example 20 if I want 20 period but I'm not sure.
price has [position - 1] (and not +1) because mql5 doesn't set as series by default?
because mql5 doesn't set as series by default?
The as_series is according to...
It will depend on what you are looking at.
But to make an SMA, we don't care.
It doesn't come into play, unlike the average exhibition where meaning is important.
The as_series is according to...
It will depend on what you are looking at.
But to make an SMA, we don't care.
It doesn't come into play, unlike the average exhibition where meaning is important.
Ok, therefore if I want SMA with 5 periods which position I have to write?
MetaTrader/MQL does provide default built-in functionality for many indicators, including multiple types of moving averages, but it seems that most users and would-be "coders", like yourself, don't bother to read the documentation.
The above library merely exists as example code for those wanting to understand the mechanics behind implementing moving averages.
MovingAverages:
Author: MetaQuotes Software Corp.