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 |

Price crossing / at an even dollar amount Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
Onereason
Posted : Saturday, November 30, 2013 9:32:38 PM
Registered User
Joined: 10/7/2004
Posts: 56

Hi Bruce,

I would like a condition that is true if a stock is at $XX.95  

For example, $9.95  $10.95  $14.95  

Actually, nothing key about "95 cents", just want to be able to search for true at any inputed amount in decimals, for example an even dollar amount at $9.00  $10.00 etc... although I will probably use .10 and .90 as the primary numbers to start out with

Thanks

Bruce_L
Posted : Monday, December 2, 2013 3:24:24 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

Please try the following RealCode Condition:

Writing Conditions in RealCode

'|*****************************************************************|
'|*** StockFinder RealCode Condition - Version 5.0 www.worden.com 
'|*** Copy and paste this header and code into StockFinder *********
'|*** Condition:After Decimal
'|******************************************************************
'# AfterDecimal = UserInput.Integer = 95
Dim Test As Integer = 100 * (Price.Last - System.Math.Truncate(Price.Last))
If Test = AfterDecimal Then
	Pass
End If


-Bruce
Personal Criteria Formulas
TC2000 Support Articles
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.