Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Indicator VSLRT #493

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

BartStolarek
Copy link

Credit the methodology behind the indicator goes to user LonesomeTheBlue from Tradingview
https://www.tradingview.com/v/XVPeRgdt/

The Volume Supported Linear Regression Trend (VSLRT) identifies trend strength and potential reversals by analyzing price and volume slopes using linear regression. It compares buy and sell volume to confirm or contradict price trends, highlighting bullish or bearish intensity levels.

#trend

Arguments:

  • candles : np.ndarray
  • short_length : int - default = 20
  • long_length : int - default = 50
  • source_type : str - default = "close"
  • sequential : bool - default = False

Returns:
tuple or tuple[np.ndarray, np.ndarray, np.ndarray, np.ndarray]
(short_price_slope, long_price_slope, short_intensity, long_intensity)

Example on Tradingview:
image

Example of charting on jesse the long term part of the indicator

image

@saleh-mir
Copy link
Member

Hey man, this is incredibly detailed and well put. Thank you so much.

I need you to also make a pull request for the documentation.

Additionally, I need you to write tests for it.

Please avoid using the Talib library because I intend to remove it in the coming months, as it is very difficult to maintain the installation packages for it.

Hopefully, thanks to AI that we have these days, it shouldn't be that hard.

If you are using a loop and need to improve its performance, feel free to use the Numba package, which we already have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants