Scanner/Program when Price approaching certain indicator value

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #157727 quote
    ashehzi
    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
    PeterSt
    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
    #157748 quote
    Nicolas
    Keymaster
    Master

    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
    GraHal
    Participant
    Master

    Above added as Log 268 to here …

    Snippet Link Library

    #157833 quote
    ashehzi
    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
    ashehzi
    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.

Scanner/Program when Price approaching certain indicator value


ProScreener support

New Reply
Author
author-avatar
ashehzi @ashehzi Participant
Summary

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

Topic Details
Forum: ProScreener support
Language: English
Started: 01/13/2021
Status: Active
Attachments: 1 files
Logo Logo
Loading...