Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 2/10/2009 Posts: 15
|
How could I scan to get stocks showing the highest high (or the lowest low) for the last xx days?
|
|
 Administration
Joined: 9/30/2004 Posts: 9,187
|
Do you want to know what the highest high and lowest low over the last x days were, or do you want to scan for stocks that are making a new x day high or low?
If the former, you can plot these by creating RealCode indicators using the following code:
For example, 30 bar high: plot = maxhigh(30)
For example, 30 bar low: plot = minlow(30)
These plots can be dragged to the watchlist to display columns with the highest high and lowest low over the last x days.
If the latter, create two RealCode rules using the following formulas:
If price.high = price.maxhigh(30) then pass
If price.low = price.minlow(30) then pass
|
|
Registered User Joined: 2/10/2009 Posts: 15
|
What I want is to be able to scan for stocks that are making a new x day high or low. Thnaks for the info!!!
|
|
Registered User Joined: 2/10/2009 Posts: 15
|
What would be the rule if, instead of the highest high, I was looking for the highest close of the last x day?
|
|
 Administration
Joined: 9/30/2004 Posts: 9,187
|
If price.close = price.maxclose(30) then pass
|
|
Registered User Joined: 2/10/2009 Posts: 15
|
Thanks again!! The support is fantastic!!
|
|
Guest-1 |