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 |

Plotting MA's in an Indicator window Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
biggolfer2
Posted : Monday, May 31, 2010 1:17:24 PM
Registered User
Joined: 4/20/2010
Posts: 20
I'm trying to create an indicator window that has four MA's in it. I want the MA's to be based off of the prices in the Price History pane.........(just like any MA's would be in the price History pane). These would be MA's with different parameters than the ones I have in the price history pane.The only difference is that I want the MA's to be plotted in an indicator window rather than up in the price pane. I was told by Jeremy in the support chat that I needed a Real Code to do that. Is that correct? If that's correct.......can you please write a real code that would accomplish that. Thanks.
jas0501
Posted : Monday, May 31, 2010 3:40:08 PM
Registered User
Joined: 12/31/2005
Posts: 2,499

Here is the code


'|******************************************************************
'|*** StockFinder RealCode Indicator - Version 5.0
www.worden.com
'|*** Copy and paste this header and code into StockFinder *********
'|*** Indicator:MA of Price
'|******************************************************************

'# period = userinput.integer = 10
plot = price.avg(period)

Once writtern, copy and paste the indicator 3 times and adjust the periods to taste.

Then adjust the color and the Legend:




jas0501
Posted : Monday, May 31, 2010 3:40:51 PM
Registered User
Joined: 12/31/2005
Posts: 2,499
forgot to post the plot image:

biggolfer2
Posted : Tuesday, June 1, 2010 6:48:43 PM
Registered User
Joined: 4/20/2010
Posts: 20
Thanks jas.
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.