Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Libraries

Smooth Algorithms - Corrected/Modified - library for MetaTrader 5

Nikolay Kositsin
Published by:
Nicholas C Weber
Views:
3488
Rating:
(14)
Published:
2022.12.22 04:41
Updated:
2022.12.22 04:45
\MQL5\Include\
ema[1].mq5 (12.64 KB) view
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

SmoothAlgorithms.mqh logo

Original code and description here:
https://www.mql5.com/en/code/17472


Modifications:
Corrected errors that prevent compiling indicators that won't due to errors in the <SmoothAlgorithms.mqh> file.
I've also changed "int period" to "double period" in a lot of places so you can now use decimal periods on your custom indicators. This feature works, I've checked.

Introsort (Introspective sort) Introsort (Introspective sort)

Sort the input array in-place using comparison function less.

Volume Average percent spread mod Volume Average percent spread mod

Volume Average percent spread mod

Volumes Spread mod Volumes Spread mod

Volumes Spread mod

TrendLinearReg - indicator for MetaTrader 5 TrendLinearReg - indicator for MetaTrader 5

The equation of the straight line from the school, it is y = bx + с. (Conversion from https://www.mql5.com/en/code/7883)