shner-elmo / TradingView-Screener

A package that lets you create TradingView screeners in Python
https://shner-elmo.github.io/TradingView-Screener/2.5.0/tradingview_screener.html
MIT License
237 stars 42 forks source link

Comparing current close price with previous days #17

Closed jvence closed 6 months ago

jvence commented 7 months ago

It would be helpful to allow the query to compare current price to previous price. For example, if we want to create a scanner that can identify stocks that had 3 down days, and today's low is lower than yesterday's low and current price is higher than yesterday's low.

shner-elmo commented 7 months ago

Firstly Hello. Second, I'm confused, is this a bug report? Or a feature request?

Have you taken the time to read the documentation and understand what this project is about?

jvence commented 7 months ago

Hello, yes I've installed and ran and understand very well what this project is about. This is a feature request and it's basically a way to screen stocks based on custom indicators. In case you're not familiar with custom indicators, here's an example: https://www.tradingview.com/script/kwQynp0T-Red-Dog-Reversal-Pattern/ And thank you for all your hard work.

shner-elmo commented 7 months ago

@jvence Can you use custom indicators in the stock screener?

shner-elmo commented 6 months ago

Btw its not possible. You can compare close to high, or the close of one timeframe to another (5 minutes Vs 1 month). Have a look at the columns in constants.py there are some that might interest you, for example: 24h_close_change or 24h_close_prev.