Watch how to download trading robots for free
Find us on Facebook!
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
Views:
3139
Rating:
(9)
Published:
2018.06.06 13:27
SWMA.mq5 (7.86 KB) view
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

Mirror_Bands Mirror_Bands

An indicator of bands with a signal line

Magic_Trend Magic_Trend

A trend indicator 'Magic Trend'

Lyapunov_HP Lyapunov_HP

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

Breakout Breakout

An indicator of levels