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