Page 1 of 2

Simple Moving Average Oscillator

PostPosted: Fri Jul 09, 2010 5:46 am
by Apprentice
mva.png


This oscillator is an example of how you can write a simple indicator.
Tells you when the price is above or below the moving average.

SMO.lua
(2.39 KiB) Downloaded 1419 times


Original post, How to, Cook Book can be found here.
http://fxcodebase.com/code/viewtopic.php?f=18&t=1478

Re: Simple Moving Average Oscillator

PostPosted: Fri Jul 09, 2010 8:42 am
by VictorFX
Thank you :!: , It's great oscillator, im using 20 SMA its helps alot this oscilator. :roll:

Re: Simple Moving Average Oscillator

PostPosted: Sun Jul 11, 2010 4:31 am
by zekelogan
Can anyone tell me how I would be able to edit this so the indicator shows whether one MVA is above or below another MVA? E.G. 20MVA is above or below the 100MVA.

I'm going to read the how-to and attempt this later today, so a head start would be great!

Thanks!

Re: Simple Moving Average Oscillator

PostPosted: Sun Jul 11, 2010 2:19 pm
by Apprentice
TSMAO.png

An example of an oscillator based on two moving averages.

The differences between these two indicators are minimal, when I find time I'll describe the differences.

TMAO.lua
(2.69 KiB) Downloaded 1149 times

Re: Simple Moving Average Oscillator

PostPosted: Sun Jul 11, 2010 2:58 pm
by zekelogan
Thanks Apprentice!

Re: Simple Moving Average Oscillator

PostPosted: Mon Jul 19, 2010 9:16 am
by jsi@jp
Thank you very much for this Oscillator.

Can a Indicator Version be done ?
Please look at image file.

Re: Simple Moving Average Oscillator

PostPosted: Mon Jul 19, 2010 10:28 am
by Apprentice
The task is not difficult. Give me a few days (2,3).
I am on vacation until the end of the week.
So we do not have much time to work these days.

Re: Simple Moving Average Oscillator

PostPosted: Fri Jul 23, 2010 4:51 pm
by Apprentice
MAC.png

This is the first version, I hope I hit the meaning of your request.

It is possible to add two additional clouds.
But that complicates things a bit.
In essence this is the continuation of the previous clouds of the same dynamics.

However, if you will insist, I can add them.

MAC.lua
(4.47 KiB) Downloaded 1187 times

Re: Simple Moving Average Oscillator

PostPosted: Mon Jul 26, 2010 7:40 am
by jsi@jp
Really thank you very much Apprentice :D
This indicator is very good ;)

Re: Simple Moving Average Oscillator

PostPosted: Fri Aug 12, 2016 3:39 pm
by mrlnb2016
Dear Apprenticeļ¼Œ

Is it possible to display the distance between the current price and current MVA in the candles below?

Thanks a lot for the help.