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 |

Today 's first 15min bar's hihg and low Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
spider2018
Posted : Tuesday, March 28, 2017 8:33:25 AM
Registered User
Joined: 3/6/2017
Posts: 7

How to building this filter condition in stockfinder5 : "After the market open ,the price is less than today's first 15min bar's hihg and the price is more than taoday's first 15min bar's low " ?

 

Bruce_L
Posted : Tuesday, March 28, 2017 10:16:06 AM


Worden Trainer

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

The following is not specific to a 15 minute time frame. It just checks to see if the current price is less than the high and greater than the low of the first bar of the trading day (if the time frame is daily or less).

'|*****************************************************************|
'|*** StockFinder RealCode Condition - Version 5.0 www.worden.com 
'|*** Copy and paste this header and code into StockFinder *********
'|*** Condition:Inside First Bar
'|******************************************************************
Static FBH As Single
Static FBL As Single
If isFirstBar Then
	FBH = Single.NaN
	FBL = Single.NaN
Else
	If Price.DateValue.TimeOfDay < Price.DateValue(1).TimeOfDay Then
		FBH = Price.High
		FBL = Price.Low
	End If
End If
If Single.IsNaN(FBH) Then
	SetIndexInvalid
Else
	If FBL < Price.Last AndAlso _
		Price.Last < FBH Then
		Pass
	End If
End If


-Bruce
Personal Criteria Formulas
TC2000 Support Articles
spider2018
Posted : Tuesday, March 28, 2017 10:27:24 AM
Registered User
Joined: 3/6/2017
Posts: 7

thank you bruce :)

Bruce_L
Posted : Tuesday, March 28, 2017 10:29:02 AM


Worden Trainer

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

You're welcome.



-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.