Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Join our fan page
You liked the script? Try it in the MetaTrader 5 terminal
- Views:
- 3722
- Rating:
- Published:
- 2018.06.06 13:27
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
A sine-weighted Moving Average
It has two parameters:
- Period - calculation period
- Applied price - price used for calculation
Calculation:
SineWMA[i]=Sum/Weight, where Sum=Price[i-N+1]*sin(PI*(N)/(N+1))+Price[i-N+2]*sin(PI*(N-1)/(N+1))+…+Price[i]*sin(PI*1/(N+1)) Weight= sin(PI*(N)/(N+1))+ sin(PI*(N-1)/(N+1))+…+ sin(PI*1/(N+1)).
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/20339

The oscillator indicator based on Lyapunov stability theory, with the Hodrick-Prescott filter

An indicator of levels