Scanner/Program when Price approaching certain indicator value

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #157727 quote
    ashehziashehzi
    Participant
    Average

    Hi all,

    Assuming I’ve an indicator/script which when runs on a list of stocks/indices/fx returns e.g. buy-level, sell-level.. This is fine as can be done using a PRT Scanner.

    Now I want to know when price touches that dynamic buy-level, sell-level. You would say put an alert. Putting an alert on each stock/index is tedious process.

    But is there a way like scanner that I pass the list of stocks and an indicator, it then prompts/alerts/shows on screen (like proscanner) that price has approached that level.

    Is it possible?

    Thanks.

    Ash.

    #157742 quote
    PeterStPeterSt
    Participant
    Master

    Ash, I would attempt something like this :

    Criteria = BuySellDistance     // You determine what this is and why. Say the higher the number, the better the chance.
    
    SCREENER(Criteria as "Sort")   // Highest = Best on top, or whatever you want.
    

    But is there a way like scanner that I pass the list of stocks and an indicator

    Both I did not incorporate because

    a. The list of stocks is just something you can select (see attachment – find under the wrench in the title bar of the Proscreener result) – Is that what you mean ?
    b. No idea what you’d mean by an Indicator.

    Ad b.: We would like to pass a variable as how it can be done with an Indicator but this is not possible. Thus use some changeable variables in the Screener Code itself.

    Now the question : do you understand what I mean with my idea above ? (I tried to be brief)

    Peter

    Nicolas thanked this post
    image_2021-01-14_084105.png image_2021-01-14_084105.png
    #157748 quote
    NicolasNicolas
    Keymaster
    Legend

    Here is a code snippet to scan price proximity with a SMA200, you can adapt it to your own needs:

    percent = 3 //percentage proximity
    ratio = close/average[200]
    percent = percent/100
    test = ratio>=1-percent and ratio<=1+percent 
    
    
    screener[test](ratio)
    ashehzi thanked this post
    #157802 quote
    GraHalGraHal
    Participant
    Master

    Above added as Log 268 to here …

    Snippet Link Library

    #157833 quote
    ashehziashehzi
    Participant
    Average

    Thanks Nic.

    I tried something similar in the past (now I remember 🙂 ) e.g. price within 1-2% of VWMA13.

    I will try with the other indicators I’ve in mind and will let you know. Thanks again. The theme is indeed like below:

    buyprice, sell price = Call Indicator

    If price within certain limit (%age, or value) of above, show up.

    #157834 quote
    ashehziashehzi
    Participant
    Average

    Above added as Log 268 to here …

    Snippet Link Library

    Thanks.

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

Scanner/Program when Price approaching certain indicator value


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
ashehzi @ashehzi Participant
Summary

This topic contains 5 replies,
has 4 voices, and was last updated by ashehziashehzi
5 years, 8 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 01/13/2021
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...