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.

Moderator: admin

Simple Moving Average Oscillator

Postby Apprentice » Fri Jul 09, 2010 5:46 am

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 774 times


Original post, How to, Cook Book can be found here.
http://fxcodebase.com/code/viewtopic.php?f=18&t=1478
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 20141
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Simple Moving Average Oscillator

Postby VictorFX » Fri Jul 09, 2010 8:42 am

Thank you :!: , It's great oscillator, im using 20 SMA its helps alot this oscilator. :roll:
VictorFX
 
Posts: 3
Joined: Wed May 19, 2010 2:23 am

Re: Simple Moving Average Oscillator

Postby zekelogan » Sun Jul 11, 2010 4:31 am

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

Postby Apprentice » Sun Jul 11, 2010 2:19 pm

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 504 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 20141
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Simple Moving Average Oscillator

Postby zekelogan » Sun Jul 11, 2010 2:58 pm

Thanks Apprentice!
zekelogan
FXCodeBase: Confirmed User
 
Posts: 56
Joined: Sun Jan 10, 2010 2:45 pm

Re: Simple Moving Average Oscillator

Postby jsi@jp » Mon Jul 19, 2010 9:16 am

Thank you very much for this Oscillator.

Can a Indicator Version be done ?
Please look at image file.
Attachments
MA_Cloud.png
MA_Cloud
jsi@jp
 
Posts: 23
Joined: Mon May 31, 2010 11:39 pm

Re: Simple Moving Average Oscillator

Postby Apprentice » Mon Jul 19, 2010 10:28 am

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.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 20141
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Simple Moving Average Oscillator

Postby Apprentice » Fri Jul 23, 2010 4:51 pm

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 529 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 20141
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Simple Moving Average Oscillator

Postby jsi@jp » Mon Jul 26, 2010 7:40 am

Really thank you very much Apprentice :D
This indicator is very good ;)
jsi@jp
 
Posts: 23
Joined: Mon May 31, 2010 11:39 pm

Re: Simple Moving Average Oscillator

Postby mrlnb2016 » Fri Aug 12, 2016 3:39 pm

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.
User avatar
mrlnb2016
 
Posts: 10
Joined: Sun Feb 07, 2016 11:45 pm

Next

Return to Custom Indicators

Who is online

Users browsing this forum: Bing [Bot] and 14 guests