Filter Stocks making high of certain criteria

Hello,

Can anyone tell me how to frame the logic to filter stocks making high ending with 5.45 or 5.55
For example
5.45,15.45,25.45,35.45,115.45,225.45
5.55,15.55,25.55,35.55,115.55,225.55

Thank you

@amisur , you can try something as:

decimals = round((H - floor(H)) * 100);
Filter = decimals == 45 OR decimals == 55;
AddColumn(H, "High", 1.5);

The above considers the eventual 3rd decimal to decide if the decimals "rounded" will be 45 or 46 / 55 or 56.

3 Likes

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.