Adding a filter to a code

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #241456 quote
    segiesegie
    Participant
    Senior

    Hi,

    Please help me add a shares filter to the code below e.g if I wish to only view shares between $1 and $20

    Regards,

    Segie

    #241461 quote
    JC_BywanJC_Bywan
    Moderator
    Master

    Hi,

    You can add the following line to define your filter with a condition:

    condition= close>=1 and close<=20

     

    and modify your screener line to take the condition into account with:

    SCREENER[condition](speed AS "Speed")
    Iván González and segie thanked this post
    #241472 quote
    segiesegie
    Participant
    Senior

    Thanks. Works well

Viewing 3 posts - 1 through 3 (of 3 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

Adding a filter to a code


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
segie @segie Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by segiesegie
1 year, 9 months ago.

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