Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Moving Average Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
rhollow
Posted : Monday, January 25, 2010 10:31:36 AM
Registered User
Joined: 2/18/2009
Posts: 9
Hi,

How can I add Moving Averages together. Example (Moving Average 3 day Exp  + Moving Average 5 day Exp and so on) using real code.

Thanks
jackmanjls
Posted : Monday, January 25, 2010 10:38:49 AM
Registered User
Joined: 9/28/2009
Posts: 135
Look at the Programmers Manual page 34, that should give you a good start. If you still can't figure out send me an email and I can help, email: jackmanjls@gmail.com.
jackmanjls
Posted : Monday, January 25, 2010 12:37:10 PM
Registered User
Joined: 9/28/2009
Posts: 135

This is the code:

'# MA3 = indicator.MovingAverage.4
'# MA5 = indicator.MovingAverage.6

plot = MA3.value(1) + MA5.value(1)

The MA3 and MA5 where on the chart and I drag/drop to the real code. After that just a simple plot. Look at the ref manual for details.

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.