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 |

Down or Up per Open and Close condition Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
dayrangers
Posted : Tuesday, March 22, 2011 5:16:00 PM
Registered User
Joined: 12/8/2010
Posts: 111
I need a condition inwhich I scan, how can I construct a condition like:

- User Input be the percentage of change (POC)
- Condition returns stocks which are greater than POC on both positive and negative based on the stock's current open
- Condition returns stocks which are greater than POC on both positive and negative based on the stock's previous close

I need one condition to scan for stocks which meet the POC either positive or negative and per the current open and previous close. Basically combining 4 scans into one, if thats possible.

For example an output might be like this (ie POC = 5):
- Stock A: POC 6% per the current open
- Stock B: POC - 7% per the current open
- Stock C: POC -10% per the previous close
- Stock D: POC 15% per the previous close

Anything between -4.9 to 4.9 per previous close or previous open doesn't meet the condition's criteria.

I hope that makes sense.
StockGuy
Posted : Tuesday, March 22, 2011 6:30:38 PM

Administration

Joined: 9/30/2004
Posts: 9,187

I think I understand what you're asking.  Try creating a RealCode condition using the following code. If you select and copy everything under the ----- line below you can paste it directly into a chart in StockFinder.

-----------------------------------------------------------


'|*****************************************************************|
'|*** StockFinder RealCode Condition - Version 5.1 www.worden.com
'|*** Copy and paste this header and code into StockFinder *********
'|*** Condition:POC
'|*** Example: if price.percentChange > 1 then pass
'|******************************************************************

'# POC = userinput.single = 5

If (price.Close - price.open) / price.open * 100 >= POC Or _
 (price.Close - price.open) / price.open * 100 <= POC * -1 Or _
 (price.Close - price.close(1)) / price.close(1) * 100 >= POC Or _
 (price.Close - price.close(1)) / price.close(1) * 100 <= POC * -1 Then pass

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.