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.
|
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:
|
Registered User Joined: 12/31/2005 Posts: 2,499
|
forgot to post the plot image:
|
Registered User Joined: 4/20/2010 Posts: 20
|
Thanks jas.
|