Please help: converting from TC2000
Forums › ProRealTime English forum › ProScreener support › Please help: converting from TC2000
- This topic has 6 replies, 2 voices, and was last updated 4 years ago by
robertogozzi.
-
-
10/10/2021 at 10:26 AM #179281
I’m trying to convert the following code from TC2000 to ProRealTime but my attempt gives completely different results – any assistance will be appreciated
TC2000
c/c1>=1.02 and v>v1 and v>=50000 and c1/c2<=1.05 and c>=5 and (c-l)/(h-l)>=.90
My attempt
indicator2 = Volume
c2 = (indicator2 >= 50)c3 = (close >= 5)
indicator5=close
indicator6=close[1]
c5=(indicator5/indicator6)>=1.02c11=close-low
c12=high-low
c13=c11/c12
c14=c13>=0.9indicatorv1=volume
cv1=(indicatorv1>indicatorv1[1])closing1=close[1]
closing2=close[2]
closing3=closing1/closing2
closing4=closing3<=1.05SCREENER[c5 AND c2 AND c3 AND c14 and closing4 and cv1] (Volume AS “Volume”)
10/10/2021 at 11:30 AM #179283This is the correct conversion:
123456789//close/close[1]>=1.02 and volume>volume[1] and volume>=50000 and close[1]/close[2]<=1.05 and close>=5 and (close-low)/(high-low)>=.90//c1 = close/close[1]>=1.02c2 = volume>volume[1]c3 = volume>=50000c4 = close[1]/close[2]<=1.05c5 = close>=5c6 = (close-low)/(high-low)>=.90SCREENER[c1 and c2 and c3 AND c4 AND c5 AND c6] (Volume AS “Volume”)10/10/2021 at 2:02 PM #17930010/18/2021 at 1:57 AM #179833A follow up question – if I am using this screener on say the 5 minute, the screener compares the current 5 minute bar to the previous 5 minute bar. To compare the 5 minute bar to the last closing day, do I use dclose?
Also, how do i compare the cumulative volume for the current day to the last closing day’s volume?
10/18/2021 at 3:36 AM #179835Yes, Dclose(1) is the correct keyword.
10/18/2021 at 6:28 AM #17983710/18/2021 at 8:27 AM #179842You need to use the Daily TIMEFRAME:
123456Timeframe(Daily)VolToday = VolumeVolYesterday = Volume[1]Timeframe(default)Cond = (VolToday > 100000) AND (VolToday > VolYesterday)SCREENER[Cond](Volume AS "Volume") -
AuthorPosts
Find exclusive trading pro-tools on