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 |

Filter indicator between specific dates Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
ansinzhou
Posted : Friday, February 19, 2016 1:46:25 PM
Registered User
Joined: 10/6/2014
Posts: 34

Hi,

I created an indicator A1.

If I want to Filter for All stocks that had A1 show up, between specifc dates. And add them to a watchlist. How may I achieve this?

 

Thank you.

Bruce_L
Posted : Friday, February 19, 2016 3:14:44 PM


Worden Trainer

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

I'm not actually sure how your A1 indicator works, so I am guessing to a great extent. That said, you could probably do something like the following.

'#Cumulative
'# A1 = chartCondition.A1
'# StartDate = UserInput.Date = "09/30/2015"
'# EndDate = UserInput.date = "02/01/2016"
Static Count As Integer = 0
If isFirstBar Then
	Count = 0
End If
If StartDate <= Price.DateValue AndAlso _
	Price.DateValue <= EndDate AndAlso _
	A1.Value = True Then
	Count += 1
End If
If isLastBar Then
	If Count > 0 Then
		Pass
	End If
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.