Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Guppy Multiple Moving Average Oscillator Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
TNtrader
Posted : Monday, January 10, 2011 3:22:09 PM
Registered User
Joined: 10/7/2004
Posts: 6
I am trying to code an oscillator in Real Code as a custom indicator that sums the differences between exponential moving averages of 3,5,8,10,12,and 15 days.  Stated differently sum the differences between the 3 and 5 day moving averages, the 5 and 8 day moving averages, the 8 and 10 day moving averages, the 10 and 12 moving averages, and the 12 and 15 day moving averages.  Plot the sum as a custom indicator.  The sum would be an absolute number but if the moving averages were in an uptrend the oscillator would have a positive value and if the moving averages were in a downtrend the the oscillator would have a negative value.

Do the same process for a set of moving averages where the lengths are 30,35,40, 45, 50, and 60 days.

Create another custom indicator that calculates the difference between the sum of the smaller set of moving averages and the sum of the  larger set of moving averages.

Thanks
Bruce_L
Posted : Monday, January 10, 2011 3:43:14 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
QUOTE (TNtrader)
I am trying to code an oscillator in Real Code as a custom indicator that sums the differences between exponential moving averages of 3,5,8,10,12,and 15 days.  Stated differently sum the differences between the 3 and 5 day moving averages, the 5 and 8 day moving averages, the 8 and 10 day moving averages, the 10 and 12 moving averages, and the 12 and 15 day moving averages.  Plot the sum as a custom indicator.

This would produce the same result the 3-Period Exponential Moving Average minus the 15-Period Exponential Moving Average. In other words, an Exponential MACD 3,15. You should be able to just add a MACD to the Charts and adjust its settings as desired. You could then delete Moving Average Signal Line.

Working with Indicators

QUOTE (TNtrader)
Do the same process for a set of moving averages where the lengths are 30,35,40, 45, 50, and 60 days.

This would produce the same result the 30-Period Exponential Moving Average minus the 60-Period Exponential Moving Average. In other words, an Exponential MACD 30,60. You could then delete Moving Average Signal Line.

QUOTE (TNtrader)
Create another custom indicator that calculates the difference between the sum of the smaller set of moving averages and the sum of the  larger set of moving averages.

If you mean the difference between the first two Indicators, just Drag and Drop the MACD with the smaller Moving Averages onto the MACD with the larger Moving Averages and select Plot Comparison | Difference.

Comparison Plots

A more literal interpretation of this request is provided in GMMA indicator.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.