Please help: converting from TC2000

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #179281 quote
    tillymo
    Participant
    New

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

    c11=close-low
    c12=high-low
    c13=c11/c12
    c14=c13>=0.9

    indicatorv1=volume
    cv1=(indicatorv1>indicatorv1[1])

    closing1=close[1]
    closing2=close[2]
    closing3=closing1/closing2
    closing4=closing3<=1.05

    SCREENER[c5 AND c2 AND c3 AND c14 and closing4 and cv1] (Volume AS “Volume”)

    #179283 quote
    robertogozzi
    Moderator
    Master

    This is the correct conversion:

    //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.02
    c2 = volume>volume[1]
    c3 = volume>=50000
    c4 = close[1]/close[2]<=1.05
    c5 = close>=5
    c6 = (close-low)/(high-low)>=.90
    SCREENER[c1 and c2 and c3 AND c4 AND c5 AND c6] (Volume AS “Volume”)
    #179300 quote
    tillymo
    Participant
    New

    Thank you

    #179833 quote
    tillymo
    Participant
    New

    A 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?

    #179835 quote
    robertogozzi
    Moderator
    Master

    Yes, Dclose(1) is the correct keyword.

    #179837 quote
    tillymo
    Participant
    New

    thanks

     

    how do i compare the cumulative volume for the current day to the last closing day’s volume e.g cumulative volume today > 100,000 and greater than yesterday’s volume?

    #179842 quote
    robertogozzi
    Moderator
    Master

    You need to use the Daily TIMEFRAME:

    Timeframe(Daily)
    VolToday     = Volume
    VolYesterday = Volume[1]
    Timeframe(default)
    Cond         = (VolToday > 100000) AND (VolToday > VolYesterday)
    SCREENER[Cond](Volume AS "Volume")
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.

Please help: converting from TC2000


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
tillymo @tillymo Participant
Summary

This topic contains 6 replies,
has 2 voices, and was last updated by robertogozzi
4 years, 5 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 10/10/2021
Status: Active
Attachments: No files
Logo Logo
Loading...