Since triangular moving average was talked about in previous posts : here are correct triangular moving averages
PS: execution speed difference is expected. Apart from MT5 being 64 bit, it is far better optimized when working with arrays. Not telling that it (MT5) is faster at everything (some things in MT5 are still a plain disaster) just in this case it is faster
- for MT4
- average execution time for 10.000 bars is from 1 to 2 milliseconds
- for MT5
- average execution time for 10.000 bars is from 150 to 250 microseconds
- both versions are calculating the values as they should, meaning :
- when it says period 14 it is period 14
- when it says period 15 it is period 15
- when it says period 16 it is period 16
- when it says period 17 it is period 17
- ...
- and so on
- all the usual prices included
Example of TMAs from period 14 to period 20 on the same chart
PS: execution speed difference is expected. Apart from MT5 being 64 bit, it is far better optimized when working with arrays. Not telling that it (MT5) is faster at everything (some things in MT5 are still a plain disaster) just in this case it is faster
Attached File(s)
7