Leo

LEO MOVING AVERAGE + SUPPORT/RESISTANCE

Category: Indicators By: Leo Created: October 18, 2017, 9:22 AM
October 18, 2017, 9:22 AM
Indicators
5 Comments
LEO MOVING AVERAGE + SUPPORT/RESISTANCE

Hi all

I were looking for and indicator that do not move so quickly as the Hull Moving Average but no lagging like exponential or weighted moving average, so I created my own in a very simple arithmetic way.

The indicator also show support and resistance with locating the locals max and min

Hope you like it and continue improving it.

//LEO MOVING AVERAGE

//Formula: LMA=WMA+(WMA-SMA)
LMA=2*weightedaverage[period](close)-average[period](close)


//supports and resistances
once support=low
once resistance=high

smoothLMA=weightedaverage[period](LMA)

IF LMA crosses over smoothLMA THEN
 support=lowest[period](low)
ENDIF

IF LMA crosses under smoothLMA THEN
 resistance=highest[period](high)
ENDIF

support=min(low,support)
resistance=max(high,resistance)


RETURN LMA AS "LMA", support as "support", resistance as "resistance"

Download
Filename: Leo-moving-average-SR.itf
Downloads: 536
Leo
Leo Veteran
" IF YOU HAVE WEALTH , IT'S A DUTY TO HELP THOSE WHO DON'T " Manoj Bhargava
Author’s Profile

Comments

xavieralava
6 years ago
#

hola gracias leo

Trading_En_El_Ibex35
9 years ago
#

Muchas Gracias por compartir este interesante indicador. Un saludo

Leo
Leo
9 years ago
#

Hi all, I posted a new version of this indicator ( I just add arrows to spot the local maximums and local minimums here https://www.prorealcode.com/topic/dobule-bottom-or-double-top/

Genotik
9 years ago
#

Merci de votre contribution !

jebus89
9 years ago
#

Interesting indicator, will play with this, thanks for your contribution!

ProRealCode ProRealCode
Loading...