diff --git a/docs/usage.md b/docs/usage.md index da42f27..8d85e69 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -222,12 +222,21 @@ print(analysis.moving_averages) Notice that if we sum the oscillators and the moving averages, we'll get the result similar to the summary. +#### P.SAR +You can get buy/sell/neutral signal from parabolic SAR, but you have to do this manually. I wont add this to get_analysis() unless TradingView add it on their site. + +```python +from tradingview_ta import Compute +print(Compute.PSAR(analysis.indicators["P.SAR"], analysis.indicators["open"])) +# Example output: BUY/SELL/NEUTRAL +``` + ### Indicator values You can also get the value of the indicators used in the analysis. ```python print(analysis.indicators) -# Example output: {'Recommend.Other': 0.09090909, 'Recommend.All': 0.17878788, 'Recommend.MA': 0.26666667, 'RSI': 51.35657473, 'RSI[1]': 56.0809039, 'Stoch.K': 40.83410422, 'Stoch.D': 36.71946441, 'Stoch.K[1]': 31.67255276, 'Stoch.D[1]': 39.57313164, 'CCI20': -52.17234223, 'CCI20[1]': 4.5072255, 'ADX': 35.60476973, 'ADX+DI': 28.49583595, 'ADX-DI': 25.60684839, 'ADX+DI[1]': 29.85479333, 'ADX-DI[1]': 26.11840839, 'AO': 8.26394676, 'AO[1]': 12.62397794, 'Mom': -15.22, 'Mom[1]': -2.67, 'MACD.macd': 7.00976885, 'MACD.signal': 10.30480624, 'Rec.Stoch.RSI': 0, 'Stoch.RSI.K': 9.72185595, 'Rec.WR': 0, 'W.R': -62.00277521, 'Rec.BBPower': 1, 'BBPower': -6.09964786, 'Rec.UO': 0, 'UO': 50.27359668, 'EMA5': 376.90090141, 'close': 373.01, 'SMA5': 376.636, 'EMA10': 378.95440164, 'SMA10': 382.691, 'EMA20': 375.62919667, 'SMA20': 379.2195, 'EMA30': 369.05104155, 'SMA30': 371.84066667, 'EMA50': 355.34346605, 'SMA50': 353.6286, 'EMA100': 330.92744806, 'SMA100': 313.3713, 'EMA200': 300.82801448, 'SMA200': 298.2719, 'Rec.Ichimoku': 0, 'Ichimoku.BLine': 375.485, 'Rec.VWMA': -1, 'VWMA': 378.72121396, 'Rec.HullMA9': 1, 'HullMA9': 370.20948148, 'Pivot.M.Classic.S3': 241.12333333, 'Pivot.M.Classic.S2': 296.29333333, 'Pivot.M.Classic.S1': 330.54666667, 'Pivot.M.Classic.Middle': 351.46333333, 'Pivot.M.Classic.R1': 385.71666667, 'Pivot.M.Classic.R2': 406.63333333, 'Pivot.M.Classic.R3': 461.80333333, 'Pivot.M.Fibonacci.S3': 296.29333333, 'Pivot.M.Fibonacci.S2': 317.36827333, 'Pivot.M.Fibonacci.S1': 330.38839333, 'Pivot.M.Fibonacci.Middle': 351.46333333, 'Pivot.M.Fibonacci.R1': 372.53827333, 'Pivot.M.Fibonacci.R2': 385.55839333, 'Pivot.M.Fibonacci.R3': 406.63333333, 'Pivot.M.Camarilla.S3': 349.62825, 'Pivot.M.Camarilla.S2': 354.6855, 'Pivot.M.Camarilla.S1': 359.74275, 'Pivot.M.Camarilla.Middle': 351.46333333, 'Pivot.M.Camarilla.R1': 369.85725, 'Pivot.M.Camarilla.R2': 374.9145, 'Pivot.M.Camarilla.R3': 379.97175, 'Pivot.M.Woodie.S3': 282.365, 'Pivot.M.Woodie.S2': 299.7875, 'Pivot.M.Woodie.S1': 337.535, 'Pivot.M.Woodie.Middle': 354.9575, 'Pivot.M.Woodie.R1': 392.705, 'Pivot.M.Woodie.R2': 410.1275, 'Pivot.M.Woodie.R3': 447.875, 'Pivot.M.Demark.S1': 341.005, 'Pivot.M.Demark.Middle': 356.6925, 'Pivot.M.Demark.R1': 396.175} +# Example output: {'Recommend.Other': 0.09090909, 'Recommend.All': 0.17878788, 'Recommend.MA': 0.26666667, 'RSI': 51.35657473, 'RSI[1]': 56.0809039, 'Stoch.K': 40.83410422, 'Stoch.D': 36.71946441, 'Stoch.K[1]': 31.67255276, 'Stoch.D[1]': 39.57313164, 'CCI20': -52.17234223, 'CCI20[1]': 4.5072255, 'ADX': 35.60476973, 'ADX+DI': 28.49583595, 'ADX-DI': 25.60684839, 'ADX+DI[1]': 29.85479333, 'ADX-DI[1]': 26.11840839, 'AO': 8.26394676, 'AO[1]': 12.62397794, 'Mom': -15.22, 'Mom[1]': -2.67, 'MACD.macd': 7.00976885, 'MACD.signal': 10.30480624, 'Rec.Stoch.RSI': 0, 'Stoch.RSI.K': 9.72185595, 'Rec.WR': 0, 'W.R': -62.00277521, 'Rec.BBPower': 1, 'BBPower': -6.09964786, 'Rec.UO': 0, 'UO': 50.27359668, 'EMA5': 376.90090141, 'close': 373.01, 'SMA5': 376.636, 'EMA10': 378.95440164, 'SMA10': 382.691, 'EMA20': 375.62919667, 'SMA20': 379.2195, 'EMA30': 369.05104155, 'SMA30': 371.84066667, 'EMA50': 355.34346605, 'SMA50': 353.6286, 'EMA100': 330.92744806, 'SMA100': 313.3713, 'EMA200': 300.82801448, 'SMA200': 298.2719, 'Rec.Ichimoku': 0, 'Ichimoku.BLine': 375.485, 'Rec.VWMA': -1, 'VWMA': 378.72121396, 'Rec.HullMA9': 1, 'HullMA9': 370.20948148, 'Pivot.M.Classic.S3': 241.12333333, 'Pivot.M.Classic.S2': 296.29333333, 'Pivot.M.Classic.S1': 330.54666667, 'Pivot.M.Classic.Middle': 351.46333333, 'Pivot.M.Classic.R1': 385.71666667, 'Pivot.M.Classic.R2': 406.63333333, 'Pivot.M.Classic.R3': 461.80333333, 'Pivot.M.Fibonacci.S3': 296.29333333, 'Pivot.M.Fibonacci.S2': 317.36827333, 'Pivot.M.Fibonacci.S1': 330.38839333, 'Pivot.M.Fibonacci.Middle': 351.46333333, 'Pivot.M.Fibonacci.R1': 372.53827333, 'Pivot.M.Fibonacci.R2': 385.55839333, 'Pivot.M.Fibonacci.R3': 406.63333333, 'Pivot.M.Camarilla.S3': 349.62825, 'Pivot.M.Camarilla.S2': 354.6855, 'Pivot.M.Camarilla.S1': 359.74275, 'Pivot.M.Camarilla.Middle': 351.46333333, 'Pivot.M.Camarilla.R1': 369.85725, 'Pivot.M.Camarilla.R2': 374.9145, 'Pivot.M.Camarilla.R3': 379.97175, 'Pivot.M.Woodie.S3': 282.365, 'Pivot.M.Woodie.S2': 299.7875, 'Pivot.M.Woodie.S1': 337.535, 'Pivot.M.Woodie.Middle': 354.9575, 'Pivot.M.Woodie.R1': 392.705, 'Pivot.M.Woodie.R2': 410.1275, 'Pivot.M.Woodie.R3': 447.875, 'Pivot.M.Demark.S1': 341.005, 'Pivot.M.Demark.Middle': 356.6925, 'Pivot.M.Demark.R1': 396.175, 'P.SAR': 379.2321, 'open': 375.32} ``` ### Time Created, Symbol, Exchange, Interval, and Screener