Skip to content

Commit

Permalink
docs: Update example snippet (cosmetic) (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveSkender authored Apr 3, 2024
1 parent 76e9eef commit d549b60
Show file tree
Hide file tree
Showing 80 changed files with 95 additions and 99 deletions.
2 changes: 1 addition & 1 deletion docs/GemFile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ GEM
pathutil (0.16.2)
forwardable-extended (~> 2.6)
posix-spawn (0.3.15)
public_suffix (5.0.4)
public_suffix (5.0.5)
racc (1.7.3)
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Adl.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ See [Utilities and Helpers]({{site.baseurl}}/utilities#utilities-for-indicator-r
from stock_indicators import indicators

# This method is NOT a part of the library.
quotes = get_history_from_feed("SPY")
quotes = get_historical_quotes("SPY")

# calculate
results = indicators.get_adl(quotes)
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Adx.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ See [Utilities and Helpers]({{site.baseurl}}/utilities#utilities-for-indicator-r
from stock_indicators import indicators

# This method is NOT a part of the library.
quotes = get_history_from_feed("SPY")
quotes = get_historical_quotes("SPY")

# calculate 14-period ADX
results = indicators.get_adx(quotes, lookback_periods)
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Alligator.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ See [Utilities and Helpers]({{site.baseurl}}/utilities#utilities-for-indicator-r
from stock_indicators import indicators

# This method is NOT a part of the library.
quotes = get_history_from_feed("SPY")
quotes = get_historical_quotes("SPY")

# calculate the Williams Alligator
results = indicators.get_alligator(quotes)
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Alma.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ See [Utilities and Helpers]({{site.baseurl}}/utilities#utilities-for-indicator-r
from stock_indicators import indicators

# This method is NOT a part of the library.
quotes = get_history_from_feed("SPY")
quotes = get_historical_quotes("SPY")

# calculate Alma
results = indicators.get_alma(quotes, 10, 0.5, 6)
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Aroon.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ See [Utilities and Helpers]({{site.baseurl}}/utilities#utilities-for-indicator-r
from stock_indicators import indicators

# This method is NOT a part of the library.
quotes = get_history_from_feed("SPY")
quotes = get_historical_quotes("SPY")

results = indicators.get_aroon(quotes, lookback_periods)
```
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Atr.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ See [Utilities and Helpers]({{site.baseurl}}/utilities#utilities-for-indicator-r
from stock_indicators import indicators

# This method is NOT a part of the library.
quotes = get_history_from_feed("SPY")
quotes = get_historical_quotes("SPY")

# calculate 14-period ATR
results = indicators.get_atr(quotes, 14)
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Awesome.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ See [Utilities and Helpers]({{site.baseurl}}/utilities#utilities-for-indicator-r
from stock_indicators import indicators

# This method is NOT a part of the library.
quotes = get_history_from_feed("SPY")
quotes = get_historical_quotes("SPY")

# calculate
results = indicators.get_awesome(quotes, 5, 34)
Expand Down
4 changes: 2 additions & 2 deletions docs/_indicators/Beta.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ from stock_indicators import indicators
from stock_indicators import BetaType # Short path, version >= 0.8.1

# This method is NOT a part of the library.
history_SPX = get_history_from_feed("SPX")
history_TSLA = get_history_from_feed("TSLA")
history_SPX = get_historical_quotes("SPX")
history_TSLA = get_historical_quotes("TSLA")

# calculate 20-period Beta coefficient
results = indicators.get_beta(history_SPX, history_TSLA, 20, BetaType.STANDARD)
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/BollingerBands.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ See [Utilities and Helpers]({{site.baseurl}}/utilities#utilities-for-indicator-r
from stock_indicators import indicators

# This method is NOT a part of the library.
quotes = get_history_from_feed("SPY")
quotes = get_historical_quotes("SPY")

# calculate BollingerBands(20, 2)
results = indicators.get_bollinger_bands(quotes, 20, 2)
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Bop.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ See [Utilities and Helpers]({{site.baseurl}}/utilities#utilities-for-indicator-r
from stock_indicators import indicators

# This method is NOT a part of the library.
quotes = get_history_from_feed("SPY")
quotes = get_historical_quotes("SPY")

# Calculate 14-period BOP
results = indicators.get_bop(quotes, 14)
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Cci.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ See [Utilities and Helpers]({{site.baseurl}}/utilities#utilities-for-indicator-r
from stock_indicators import indicators

# This method is NOT a part of the library.
quotes = get_history_from_feed("SPY")
quotes = get_historical_quotes("SPY")

# Calculate 20-period CCI
results = indicators.get_cci(quotes, 20)
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/ChaikinOsc.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ See [Utilities and Helpers]({{site.baseurl}}/utilities#utilities-for-indicator-r
from stock_indicators import indicators

# This method is NOT a part of the library.
quotes = get_history_from_feed("SPY")
quotes = get_historical_quotes("SPY")

# Calculate 20-period Chaikin Oscillator
results = indicators.get_chaikin_osc(quotes, 20)
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Chandelier.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ from stock_indicators import indicators
from stock_indicators import ChandelierType # Short path, version >= 0.8.1

# This method is NOT a part of the library.
quotes = get_history_from_feed("SPY")
quotes = get_historical_quotes("SPY")

# calculate Chandelier(22,3)
results = indicators.get_chandelier(quotes, 22, 3, ChandelierType.LONG)
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Chop.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ See [Utilities and Helpers]({{site.baseurl}}/utilities#utilities-for-indicator-r
from stock_indicators import indicators

# This method is NOT a part of the library.
quotes = get_history_from_feed("SPY")
quotes = get_historical_quotes("SPY")

# Calculate CHOP(14)
results = indicators.get_chop(quotes, 14)
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Cmf.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ See [Utilities and Helpers]({{site.baseurl}}/utilities#utilities-for-indicator-r
from stock_indicators import indicators

# This method is NOT a part of the library.
quotes = get_history_from_feed("SPY")
quotes = get_historical_quotes("SPY")

# Calculate 20-period CMF
results = indicators.get_cmf(quotes, 20)
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/ConnorsRsi.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ See [Utilities and Helpers]({{site.baseurl}}/utilities#utilities-for-indicator-r
from stock_indicators import indicators

# This method is NOT a part of the library.
quotes = get_history_from_feed("SPY")
quotes = get_historical_quotes("SPY")

# Calculate ConnorsRsi(3,2.100)
results = indicators.get_connors_rsi(quotes, 3, 2, 100)
Expand Down
4 changes: 2 additions & 2 deletions docs/_indicators/Correlation.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ See [Utilities and Helpers]({{site.baseurl}}/utilities#utilities-for-indicator-r
from stock_indicators import indicators

# This method is NOT a part of the library.
quotes_spx = get_history_from_feed("SPX")
quotes_tsla = get_history_from_feed("TSLA")
quotes_spx = get_historical_quotes("SPX")
quotes_tsla = get_historical_quotes("TSLA")

# Calculate 20-period Correlation
results = indicators.get_correlation(quotes_spx, quotes_tsla, 20)
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Dema.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ See [Utilities and Helpers]({{site.baseurl}}/utilities#utilities-for-indicator-r
from stock_indicators import indicators

# This method is NOT a part of the library.
quotes = get_history_from_feed("SPY")
quotes = get_historical_quotes("SPY")

# calculate 20-period DEMA
results = indicators.get_dema(quotes, 20)
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Doji.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ See [Utilities and Helpers]({{site.baseurl}}/utilities#utilities-for-indicator-r
from stock_indicators import indicators

# This method is NOT a part of the library.
quotes = get_history_from_feed("SPY")
quotes = get_historical_quotes("SPY")

# Calculate
results = indicators.get_doji(quotes);
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Donchian.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ See [Utilities and Helpers]({{site.baseurl}}/utilities#utilities-for-indicator-r
from stock_indicators import indicators

# This method is NOT a part of the library.
quotes = get_history_from_feed("SPY")
quotes = get_historical_quotes("SPY")

# calculate Donchian(20)
results = indicators.get_donchian(quotes, 20)
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Dpo.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ See [Utilities and Helpers]({{site.baseurl}}/utilities#utilities-for-indicator-r
from stock_indicators import indicators

# This method is NOT a part of the library.
quotes = get_history_from_feed("SPY")
quotes = get_historical_quotes("SPY")

# Calculate
results = indicators.get_dpo(quotes, 14)
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/ElderRay.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ See [Utilities and Helpers]({{site.baseurl}}/utilities#utilities-for-indicator-r
from stock_indicators import indicators

# This method is NOT a part of the library.
quotes = get_history_from_feed("SPY")
quotes = get_historical_quotes("SPY")

# calculate ElderRay(13)
results = indicators.get_elder_ray(quotes, 13)
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Ema.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ from stock_indicators import indicators
from stock_indicators import CandlePart # Short path, version >= 0.8.1

# This method is NOT a part of the library.
quotes = get_history_from_feed("SPY")
quotes = get_historical_quotes("SPY")

# calculate 20-period EMA
results = indicators.get_ema(quotes, 20, CandlePart.CLOSE)
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Epma.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ See [Utilities and Helpers]({{site.baseurl}}/utilities#utilities-for-indicator-r
from stock_indicators import indicators

# This method is NOT a part of the library.
quotes = get_history_from_feed("SPY")
quotes = get_historical_quotes("SPY")

# Calculate 20-period EPMA
results = indicators.get_epma(quotes, 20)
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Fcb.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ See [Utilities and Helpers]({{site.baseurl}}/utilities#utilities-for-indicator-r
from stock_indicators import indicators

# This method is NOT a part of the library.
quotes = get_history_from_feed("SPY")
quotes = get_historical_quotes("SPY")

# Calculate Fcb(14)
results = indicators.get_fcb(quotes, 14)
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/FisherTransform.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ See [Utilities and Helpers]({{site.baseurl}}/utilities#utilities-for-indicator-r
from stock_indicators import indicators

# This method is NOT a part of the library.
quotes = get_history_from_feed("SPY")
quotes = get_historical_quotes("SPY")

# Calculate 10-period FisherTransform
results = indicators.get_fisher_transform(quotes, 10)
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/ForceIndex.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ See [Utilities and Helpers]({{site.baseurl}}/utilities#utilities-for-indicator-r
from stock_indicators import indicators

# This method is NOT a part of the library.
quotes = get_history_from_feed("SPY")
quotes = get_historical_quotes("SPY")

# Calculate ForceIndex(13)
results = indicators.get_force_index(quotes, 13)
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Fractal.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ See [Utilities and Helpers]({{site.baseurl}}/utilities#utilities-for-indicator-r
from stock_indicators import indicators

# This method is NOT a part of the library.
quotes = get_history_from_feed("SPY")
quotes = get_historical_quotes("SPY")

# calculate Fractal
results = indicators.get_fractal(quotes, 5)
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Gator.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ See [Utilities and Helpers]({{site.baseurl}}/utilities#utilities-for-indicator-r
from stock_indicators import indicators

# This method is NOT a part of the library.
quotes = get_history_from_feed("SPY")
quotes = get_historical_quotes("SPY")

# Calculate the Gator Oscillator
results = indicators.get_gator(quotes)
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/HeikinAshi.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ See [Utilities and Helpers]({{site.baseurl}}/utilities#utilities-for-indicator-r
from stock_indicators import indicators

# This method is NOT a part of the library.
quotes = get_history_from_feed("SPY")
quotes = get_historical_quotes("SPY")

# calculate
results = indicators.get_heikin_ashi(quotes)
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Hma.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ See [Utilities and Helpers]({{site.baseurl}}/utilities#utilities-for-indicator-r
from stock_indicators import indicators

# This method is NOT a part of the library.
quotes = get_history_from_feed("SPY")
quotes = get_historical_quotes("SPY")

# Calculate 20-period HMA
results = indicators.get_hma(quotes, 20)
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/HtTrendline.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ See [Utilities and Helpers]({{site.baseurl}}/utilities#utilities-for-indicator-r
from stock_indicators import indicators

# This method is NOT a part of the library.
quotes = get_history_from_feed("SPY")
quotes = get_historical_quotes("SPY")

# Calculate HT Trendline
results = indicators.get_ht_trendline(quotes)
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Hurst.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ See [Utilities and Helpers]({{site.baseurl}}/utilities#utilities-for-indicator-r
from stock_indicators import indicators

# This method is NOT a part of the library.
quotes = get_history_from_feed("SPY")
quotes = get_historical_quotes("SPY")

# Calculate 20-period Hurst
results = indicators.get_hurst(quotes, 20)
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Ichimoku.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ See [Utilities and Helpers]({{site.baseurl}}/utilities#utilities-for-indicator-r
from stock_indicators import indicators

# This method is NOT a part of the library.
quotes = get_history_from_feed("SPY")
quotes = get_historical_quotes("SPY")

# calculate ICHIMOKU(9,26,52)
results = indicators.get_ichimoku(quotes, 9, 26, 52)
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Kama.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ See [Utilities and Helpers]({{site.baseurl}}/utilities#utilities-for-indicator-r
from stock_indicators import indicators

# This method is NOT a part of the library.
quotes = get_history_from_feed("SPY")
quotes = get_historical_quotes("SPY")

# Calculate KAMA(10,2,30)
results = indicators.get_kama(quotes, 10,2,30)
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Keltner.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ See [Utilities and Helpers]({{site.baseurl}}/utilities#utilities-for-indicator-r
from stock_indicators import indicators

# This method is NOT a part of the library.
quotes = get_history_from_feed("SPY")
quotes = get_historical_quotes("SPY")

# Calculate Keltner(20)
results = indicators.get_keltner(quotes, 20,2.0,10)
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Kvo.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ See [Utilities and Helpers]({{site.baseurl}}/utilities#utilities-for-indicator-r
from stock_indicators import indicators

# This method is NOT a part of the library.
quotes = get_history_from_feed("SPY")
quotes = get_historical_quotes("SPY")

# Calculate Klinger(34,55,13)
results = indicators.get_kvo(quotes, 34, 55, 13)
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/MaEnvelopes.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ from stock_indicators import indicators
from stock_indicators import MAType # Short path, version >= 0.8.1

# This method is NOT a part of the library.
quotes = get_history_from_feed("SPY")
quotes = get_historical_quotes("SPY")

# Calculate 20-period SMA envelopes with 2.5% offset
results = indicators.get_ma_envelopes(quotes, 20, 2.5, MAType.SMA);
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Macd.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ See [Utilities and Helpers]({{site.baseurl}}/utilities#utilities-for-indicator-r
from stock_indicators import indicators

# This method is NOT a part of the library.
quotes = get_history_from_feed("SPY")
quotes = get_historical_quotes("SPY")

# calculate MACD(12,26,9)
results = indicators.get_macd(quotes, 12, 26, 9)
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Mama.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ See [Utilities and Helpers]({{site.baseurl}}/utilities#utilities-for-indicator-r
from stock_indicators import indicators

# This method is NOT a part of the library.
quotes = get_history_from_feed("SPY")
quotes = get_historical_quotes("SPY")

# Calculate Mama(0.5,0.05)
results = indicators.get_mama(quotes, 0.5,0.05)
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Marubozu.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ See [Utilities and Helpers]({{site.baseurl}}/utilities#utilities-for-indicator-r
from stock_indicators import indicators

# This method is NOT a part of the library.
quotes = get_history_from_feed("SPY")
quotes = get_historical_quotes("SPY")

# Calculate
results = indicators.get_marubozu(quotes);
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Mfi.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ See [Utilities and Helpers]({{site.baseurl}}/utilities#utilities-for-indicator-r
from stock_indicators import indicators

# This method is NOT a part of the library.
quotes = get_history_from_feed("SPY")
quotes = get_historical_quotes("SPY")

# Calculate
results = indicators.get_mfi(quotes, 14)
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Obv.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ See [Utilities and Helpers]({{site.baseurl}}/utilities#utilities-for-indicator-r
from stock_indicators import indicators

# This method is NOT a part of the library.
quotes = get_history_from_feed("SPY")
quotes = get_historical_quotes("SPY")

# Calculate
results = indicators.get_obv(quotes)
Expand Down
Loading

0 comments on commit d549b60

Please sign in to comment.