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 |

GMMA indicator Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
mcsims
Posted : Tuesday, June 9, 2009 1:33:51 PM
Registered User
Joined: 8/25/2006
Posts: 15
I am trying to translate this indicator I have in Metastock to Stockfinder and I am struggling  with it...can anyone help me out...

Thanks

Mike

((Mov(CLOSE,3,E)+Mov(CLOSE,5,E)+
Mov(CLOSE,8,E)+Mov(CLOSE,10,E)+
Mov(CLOSE,12,E)+Mov(CLOSE,15,E))-
(Mov(CLOSE,30,E)+Mov(CLOSE,35,E)+
Mov(CLOSE,40,E)+Mov(CLOSE,45,E)+
Mov(CLOSE,50,E)+Mov(CLOSE,60,E)))*10;
(Mov((Mov(CLOSE,3,E)+Mov(CLOSE,5,E)+
Mov(CLOSE,8,E)+Mov(CLOSE,10,E)+
Mov(CLOSE,12,E)+Mov(CLOSE,15,E))-
(Mov(CLOSE,30,E)+Mov(CLOSE,35,E)+
Mov(CLOSE,40,E)+Mov(CLOSE,45,E)+
Mov(CLOSE,50,E)+Mov(CLOSE,60,E)),13,E))*10;
Bruce_L
Posted : Tuesday, June 9, 2009 2:14:29 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
I'm assuming the above results in two Plots. If not, I am not understanding the Metastock code at all.

If you add all twelve Moving Averages to the Chart, you can Drag and Drop them into the RealCode Editor to create the first twelve lines of both the following RealCode Indicator (you will need to rename the variable names assigned so they are not the same - they were all originalyl called MA when I did it for example):

'# MA3 = indicator.MovingAverage.3
'# MA5 = indicator.MovingAverage.5
'# MA8 = indicator.MovingAverage.8
'# MA10 = indicator.MovingAverage.10
'# MA12 = indicator.MovingAverage.12
'# MA15 = indicator.MovingAverage.15
'# MA30 = indicator.MovingAverage.30
'# MA35 = indicator.MovingAverage.35
'# MA40 = indicator.MovingAverage.40
'# MA45 = indicator.MovingAverage.45
'# MA50 = indicator.MovingAverage.50
'# MA60 = indicator.MovingAverage.60
'# Cumulative
Plot = ((MA3.Value + MA5.Value + MA8.Value + _
    MA10.Value + MA12.Value + MA15.Value) - _
    (MA30.Value + MA35.Value + MA40.Value + _
    MA45.Value + MA50.Value + MA60.Value)) * 10

You would then just add a 13-Period Exponential Moving Average to this as a Child Indicator. Another option would be to construct the twelve Moving Averages manually as is done in the following RealCode Indicator:

'# Cumulative
Static MA(11,2) As Single
If isFirstBar Then
    For i As Integer = 0 To 11
        MA(i, 0) = 0
        MA(i, 1) = 1
    Next
    MA(0, 2) = 2 / 4
    MA(1, 2) = 4 / 6
    MA(2, 2) = 7 / 9
    MA(3, 2) = 9 / 11
    MA(4, 2) = 11 / 13
    MA(5, 2) = 14 / 16
    MA(6, 2) = 29 / 31
    MA(7, 2) = 34 / 36
    MA(8, 2) = 39 / 41
    MA(9, 2) = 44 / 46
    MA(10, 2) = 49 / 51
    MA(11, 2) = 59 / 61
End If
For i As Integer = 0 To 11
    Dim Weight As Single = 1 / MA(i, 1)
    MA(i, 0) = MA(i, 0) * (1 - Weight) + Weight * Price.Last
    MA(i, 1) = MA(i, 1) * MA(i, 2) + 1
Next
Dim GMMA As Single = 0
For i As Integer = 0 To 5
    GMMA += MA(i, 0)
Next
For i As Integer = 6 To 11
    GMMA -= MA(i, 0)
Next
Plot = GMMA * 10

You would probably still want to add the 13-Period Exponential Moving Average as a Child Indicator to get the second Plot.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
StockGuy
Posted : Tuesday, June 9, 2009 2:27:28 PM

Administration

Joined: 9/30/2004
Posts: 9,187
I shared a chart called Guppy GMMA. See if that's what you're looking for.
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.