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.
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
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)
Above added as Log 268 to here …
Snippet Link Library
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.