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.
You can write:
screener[test1](proc as "criterion")
you can use the CRITERION column to sort data.
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
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.