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 |

Using .MaxHigh(x) on PE Ratio indicator. Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
haroldv1
Posted : Friday, June 24, 2011 6:10:17 PM
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

StockGuy
Posted : Friday, June 24, 2011 7:00:20 PM

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)
haroldv1
Posted : Friday, June 24, 2011 7:15:47 PM
Registered User
Joined: 11/20/2006
Posts: 14
That works great.  thank you
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.