How to sort by a custom value in my screener?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #152441 quote
    telboytelboy
    Participant
    Junior

    having difficulty sorting my screener results properly

    i have defined the timeframe:

    TIMEFRAME(daily)

     

    i have defined the variable I want to sort by:

    proc = ROC[20](close)

     

    I am happy with the screener test output but the results are not sorted by the proc properly as when I work down the list the proc is not in any sort of order for individual shares

    screener[test1] SORT BY (proc)

     

    anyone any thoughts about where im going wrong?

     

    MODERATORS COMMENT: Always use the ‘Insert PRT Code’ button when posting code. Your post has been edited.

    #152442 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    You can write:

    screener[test1](proc as "criterion")

    you can use the CRITERION column to sort data.

    #152463 quote
    telboytelboy
    Participant
    Junior

    thanks robertogozzi – that works for sorting the criteria

     

    another question please

    the value for the ROC(20)(close) i get in the screener list does not correspond to the ROC(20) line on my chart – why would that be?

    I have specified timeframe(daily) in the screener and the ROC on the graph is selected to 20 units – but the results are wildly different

    #152468 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Actually I don’t know why there are such discrepancies.

    RSI returns correct data, apart from some decimals at times.

    I suggest that you open a ticket for assistance hitting Ctrl+M from the platform.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

How to sort by a custom value in my screener?


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
telboy @telboy Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by robertogozzirobertogozzi
5 years, 9 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 12/02/2020
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...