| Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 11/20/2006 Posts: 14
|
I can get this to work using a moving average indicator but not with the P/E Ratio indicator.
'# PE = chart.P-ERatio
Static PEYearlyHigh As Single = 0
PEYearlyHigh = PE.MaxHigh(252)
Plot = PEYearlyHigh
|
|
 Administration
Joined: 9/30/2004 Posts: 9,187
|
Try this. I just imported the P-E Ratio from the library using the Import Indicator on the RealCode editor. Also, the fundamental data is weekly so you only need to look back 52 periods for a 1 year high.
'|******************************************************************
'|*** StockFinder RealCode Indicator - Version 5.1 www.worden.com
'|*** Copy and paste this header and code into StockFinder *********
'|*** Indicator:My Indicator
'|*** Example: plot = price.close - price.close(1)
'|******************************************************************
'# PR = indicator.Library.P-E Ratio
plot = PR.maxhigh(52)
|
|
Registered User Joined: 11/20/2006 Posts: 14
|
That works great. thank you
|
|
|
Guest-1 |