Provide parameters to the Screener

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #229462 quote
    Avi_PAvi_P
    Participant
    Average

    <p style=”text-align: left;”>Hello everyone.
    I have two questions:</p>
    <p style=”text-align: left;”>1. Does the forum have a search option?</p>
    <p style=”text-align: left;”>2. Is there a way to provide parameters to the Screener?
    I run my own screeners with 4 basic parameters: minimum and maximum price, minimum volume and number of periods back for starting screener.
    I change these values frequently within the source.
    I tried through a simple indicator with desired values, but call to the indicator always fails.</p>
    <p style=”text-align: left;”>Source of Indicator:</p>
    //——————————————————————————
    // Name: MyBaseParams
    // This Indicator Provides to Screener 4 Parameters to Running
    // Days Before
    // d = 0,1..254
    // Minimum Price
    // n = 1..1,000 // default 5
    // Maximum Price
    // x = 1..500,000 // default 500, must be greater then from Minimum Price
    // Minimum Volume
    // v = 250,000 – 1,000,000 // default 500,000
    // Using: DB, MinPrc, MaxPrc, MinVol = Call “MyBaseParams”
    //——————————————————————————
    DEFPARAM CalculateOnLastBars = 1

    DaysBefore = d
    MinPrice = n
    MaxPrice = x
    MinVolume = v

    RETURN DaysBefore AS “DB”, MinPrice AS “MinPrc”, MaxPrice AS “MaxPrc”, MinVolume AS “MinVol”
    //——————————————————————————
    <p style=”text-align: left;”>Thanks in advance for the reply</p>

    #229484 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    See the attached pic for two ways to search the forum:

    • hovering your avatar with your mouse will open a SEARCH box
    • on the main page you can find a SEARCH box at the center.

    SCREENERS do not accept input variables, unlike indicators.

    Avi_P thanked this post
    Search1.jpg Search1.jpg Search2.jpg Search2.jpg
Viewing 2 posts - 1 through 2 (of 2 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

Provide parameters to the Screener


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
Avi_P @papismedov-avram Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzirobertogozzi
2 years, 6 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 03/08/2024
Status: Active
Attachments: 2 files
ProRealCode ProRealCode
Loading...