## Simple Moving Average Oscillator

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

### Simple Moving Average Oscillator

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

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

Apprentice
FXCodeBase: Confirmed User

Posts: 21585
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

### Re: Simple Moving Average Oscillator

Thank you , It's great oscillator, im using 20 SMA its helps alot this oscilator.
VictorFX

Posts: 3
Joined: Wed May 19, 2010 2:23 am

### Re: Simple Moving Average Oscillator

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!
zekelogan
FXCodeBase: Confirmed User

Posts: 56
Joined: Sun Jan 10, 2010 2:45 pm

### Re: Simple Moving Average Oscillator

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

Apprentice
FXCodeBase: Confirmed User

Posts: 21585
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

### Re: Simple Moving Average Oscillator

Thanks Apprentice!
zekelogan
FXCodeBase: Confirmed User

Posts: 56
Joined: Sun Jan 10, 2010 2:45 pm

### Re: Simple Moving Average Oscillator

Thank you very much for this Oscillator.

Can a Indicator Version be done ?
Attachments
MA_Cloud
jsi@jp

Posts: 23
Joined: Mon May 31, 2010 11:39 pm

### Re: Simple Moving Average Oscillator

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.

Apprentice
FXCodeBase: Confirmed User

Posts: 21585
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

### Re: Simple Moving Average Oscillator

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

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

Apprentice
FXCodeBase: Confirmed User

Posts: 21585
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

### Re: Simple Moving Average Oscillator

Really thank you very much Apprentice
This indicator is very good
jsi@jp

Posts: 23
Joined: Mon May 31, 2010 11:39 pm

### Re: Simple Moving Average Oscillator

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.

mrlnb2016

Posts: 10
Joined: Sun Feb 07, 2016 11:45 pm

Next