|
FransA
 Regular
  Posts: 61
Joined: 9/3/2010
Location: Zevenaar, Nederland
User Profile |
#indicator
'MyRelMomInd
#PARAM "pPds", 30, 5, 100
Dim fRetVal, fhelp1, fIndex , fhelp2, as Single
fhelp1= GetClose("$DJI")
fhelp2= GetClose(SPY)
'fRetVal= RelMom( pPds,SPY )
Return fRetVal
I would like to create a moving average of the Secret Sauce RelMom indicator return value. It is impossible to get a return value of the RelMom indicator because SPY is not good defined. Also not, to put SPY in a variable. I have done some experiments but no results. Is there somebody who can help me?
Thank you in advance.
Frans
[Edited by FransA on 11/26/2014 12:52 PM]
|
|
THOMAS HELGET
 Elite
  Posts: 610
Joined: 3/22/2006
Location: BALDWINSVILLE, NEW YORK
User Profile |
Frans:
See if this is what you wanted:
#indicator
'MyRelMomInd
#PARAM "pPds", 30, 5, 100
Dim fRetVal, fhelp1, fIndex, fhelp2, MAvRelMom as Single
fhelp1= GetClose("$DJI")
fhelp2= GetClose("SPY")
fRetVal= RelMom( pPds, "SPY" )
MAvRelMom = SMA(fRetVal, 14)
Plot( "Rel Mom MA", MAvRelMom )
Return MAvRelMom
Tom Helget
|
|
FransA
 Regular
  Posts: 61
Joined: 9/3/2010
Location: Zevenaar, Nederland
User Profile |
Hi Tom
Yes, Tom that is what I wanted.
Thank you very much.
Frans
[Edited by FransA on 11/27/2014 4:13 AM]
|