Skip to content

Commit

Permalink
Merge branch 'main' into async
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveSkender authored Jan 1, 2024
2 parents c68046d + 17d5ab8 commit 92443f3
Show file tree
Hide file tree
Showing 87 changed files with 159 additions and 89 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ jobs:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: ${{ vars.CLOUDFLARE_PROJECT_NAME }}
directory: docs/_site
wranglerVersion: '3'
wranglerVersion: 'latest'
2 changes: 1 addition & 1 deletion .github/workflows/docs-test-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@ jobs:
run: |
htmlproofer _site \
--no-enforce-https \
--ignore-status-codes "403,406,408,429,503,999" \
--ignore-status-codes "0,403,406,408,429,503,999" \
--swap-urls "https\://dotnet.stockindicators.dev:http\://127.0.0.1:4000" \
--ignore-urls "/fonts.gstatic.com/"
70 changes: 70 additions & 0 deletions .github/workflows/semantic-pr-linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: "Lint PR"

on:
pull_request_target:
types:
- opened
- edited
- synchronize

permissions:
pull-requests: write

jobs:
main:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
id: lint_pr_title
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:

# Configure additional validation for the subject based on a regex.
# We enforce that the subject starts with an uppercase character.
subjectPattern: ^([A-Z]).+$

# If `subjectPattern` is configured, you can use this property to override
# the default error message that is shown when the pattern doesn't match.
# The variables `subject` and `title` can be used within the message.
subjectPatternError: >
The subject "**{subject}**" found in the pull request title "*{title}*"
didn't match the configured pattern. Please ensure that the subject
starts with an uppercase character.
# If the PR contains one of these newline-delimited labels, the
# validation is skipped. If you want to rerun the validation when
# labels change, you might want to use the `labeled` and `unlabeled`
# event triggers in your workflow.
ignoreLabels: |
bot
ignore-semantic-pull-request
- uses: marocchino/sticky-pull-request-comment@v2
# When the previous steps fails, the workflow would stop. By adding this
# condition you can continue the execution with the populated error message.
if: always() && (steps.lint_pr_title.outputs.error_message != null)
with:
header: pr-title-lint-error
message: >
### Hey there and thank you for opening this pull request! 👋🏼
It looks like your proposed **_Pull request title_** needs to be adjusted.
>🚩 **ERROR:** ${{ steps.lint_pr_title.outputs.error_message }}
#### Pull request title naming convention
Our PR title name taxonomy is `type: Subject`, where **type** is typically
*feat*, *fix*, or *chore* and **subject** is a noun that starts with a capitalized letter.
The *chore* type usually has a subject that starts with an action verb like *Add* or *Update*.
Examples: `feat: Admin portal login`, `fix: Divide by zero bug in SMA`, and `chore: Update user docs`.
See the [Conventional Commits specification](https://www.conventionalcommits.org) for more information.
# Delete a previous comment when the issue has been resolved
- if: ${{ steps.lint_pr_title.outputs.error_message == null }}
uses: marocchino/sticky-pull-request-comment@v2
with:
header: pr-title-lint-error
delete: true
2 changes: 1 addition & 1 deletion docs/_indicators/Adl.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Created by Marc Chaikin, the [Accumulation/Distribution Line/Index](https://en.w
![chart for {{page.title}}]({{site.baseurl}}{{page.image}})

```csharp
// usage
// C# usage syntax
IEnumerable<AdlResult> results =
quotes.GetAdl();

Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Adx.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Created by J. Welles Wilder, the Directional Movement Index (DMI) and [Average D
![chart for {{page.title}}]({{site.baseurl}}{{page.image}})

```csharp
// usage
// C# usage syntax
IEnumerable<AdxResult> results =
quotes.GetAdx(lookbackPeriods);
```
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Alligator.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Created by Bill Williams, Alligator is a depiction of three smoothed moving aver
![chart for {{page.title}}]({{site.baseurl}}{{page.image}})

```csharp
// usage
// C# usage syntax
IEnumerable<AlligatorResult> results =
quotes.GetAlligator(jawPeriods,jawOffset,teethPeriods,teethOffset,lipsPeriods,lipsOffset);
```
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Alma.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Created by Arnaud Legoux and Dimitrios Kouzis-Loukas, [ALMA]({{site.github.repos
![chart for {{page.title}}]({{site.baseurl}}{{page.image}})

```csharp
// usage
// C# usage syntax
IEnumerable<AlmaResult> results =
quotes.GetAlma(lookbackPeriods, offset, sigma);
```
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Aroon.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Created by Tushar Chande, [Aroon](https://school.stockcharts.com/doku.php?id=tec
![chart for {{page.title}}]({{site.baseurl}}{{page.image}})

```csharp
// usage
// C# usage syntax
IEnumerable<AroonResult> results =
quotes.GetAroon(lookbackPeriods);
```
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Atr.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Created by J. Welles Wilder, True Range and [Average True Range](https://en.wiki
![chart for {{page.title}}]({{site.baseurl}}{{page.image}})

```csharp
// standard usage
// C# usage syntax
IEnumerable<AtrResult> results =
quotes.GetAtr(lookbackPeriods);

Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/AtrStop.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Created by Welles Wilder, the ATR Trailing Stop indicator attempts to determine
![chart for {{page.title}}]({{site.baseurl}}{{page.image}})

```csharp
// usage
// C# usage syntax
IEnumerable<AtrStopResult> results =
quotes.GetAtrStop(lookbackPeriods, multiplier, endType);
```
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Awesome.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Created by Bill Williams, the Awesome Oscillator (aka Super AO) is a measure of
![chart for {{page.title}}]({{site.baseurl}}{{page.image}})

```csharp
// usage
// C# usage syntax
IEnumerable<AwesomeResult> results =
quotes.GetAwesome(fastPeriods, slowPeriods);
```
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/BasicQuote.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ layout: indicator
Returns a basic quote transform (e.g. HL2, OHL3, etc.) and isolation of individual price quote candle parts from a full OHLCV quote.

```csharp
// usage
// C# usage syntax
IEnumerable<BasicData> results =
quotes.GetBaseQuote(candlePart);
```
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Beta.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ layout: indicator
![chart for {{page.title}}]({{site.baseurl}}{{page.image}})

```csharp
// usage
// C# usage syntax
IEnumerable<BetaResult> results = quotesEval
.GetBeta(quotesMarket, lookbackPeriods, type);
```
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/BollingerBands.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Created by John Bollinger, [Bollinger Bands](https://en.wikipedia.org/wiki/Bolli
![chart for {{page.title}}]({{site.baseurl}}{{page.image}})

```csharp
// usage
// C# usage syntax
IEnumerable<BollingerBandsResult> results =
quotes.GetBollingerBands(lookbackPeriods, standardDeviations);
```
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Bop.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Created by Igor Levshin, the [Balance of Power](https://school.stockcharts.com/d
![chart for {{page.title}}]({{site.baseurl}}{{page.image}})

```csharp
// usage
// C# usage syntax
IEnumerable<BopResult> results =
quotes.GetBop(smoothPeriods);
```
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Cci.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Created by Donald Lambert, the [Commodity Channel Index](https://en.wikipedia.or
![chart for {{page.title}}]({{site.baseurl}}{{page.image}})

```csharp
// usage
// C# usage syntax
IEnumerable<CciResult> results =
quotes.GetCci(lookbackPeriods);
```
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/ChaikinOsc.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Created by Marc Chaikin, the [Chaikin Oscillator](https://en.wikipedia.org/wiki/
![chart for {{page.title}}]({{site.baseurl}}{{page.image}})

```csharp
// usage
// C# usage syntax
IEnumerable<ChaikinOscResult> results =
quotes.GetChaikinOsc(fastPeriods, slowPeriods);
```
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Chandelier.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Created by Charles Le Beau, the [Chandelier Exit](https://school.stockcharts.com
![chart for {{page.title}}]({{site.baseurl}}{{page.image}})

```csharp
// usage
// C# usage syntax
IEnumerable<ChandelierResult> results =
quotes.GetChandelier(lookbackPeriods, multiplier, type);
```
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Chop.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Created by E.W. Dreiss, the Choppiness Index measures the trendiness or choppine
![chart for {{page.title}}]({{site.baseurl}}{{page.image}})

```csharp
// usage
// C# usage syntax
IEnumerable<ChopResult> results =
quotes.GetChop(lookbackPeriods);
```
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Cmf.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Created by Marc Chaikin, [Chaikin Money Flow](https://en.wikipedia.org/wiki/Chai
![chart for {{page.title}}]({{site.baseurl}}{{page.image}})

```csharp
// usage
// C# usage syntax
IEnumerable<CmfResult> results =
quotes.GetCmf(lookbackPeriods);
```
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Cmo.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Created by Tushar Chande, the [Chande Momentum Oscillator](https://www.investope
![chart for {{page.title}}]({{site.baseurl}}{{page.image}})

```csharp
// usage
// C# usage syntax
IEnumerable<CmoResult> results =
quotes.GetCmo(lookbackPeriods);
```
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/ConnorsRsi.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Created by Laurence Connors, the [ConnorsRSI](https://alvarezquanttrading.com/wp
![chart for {{page.title}}]({{site.baseurl}}{{page.image}})

```csharp
// usage
// C# usage syntax
IEnumerable<ConnorsRsiResult> results =
quotes.GetConnorsRsi(rsiPeriods, streakPeriods, rankPeriods);
```
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Correlation.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Created by Karl Pearson, the [Correlation Coefficient](https://en.wikipedia.org/
![chart for {{page.title}}]({{site.baseurl}}{{page.image}})

```csharp
// usage
// C# usage syntax
IEnumerable<CorrResult> results =
quotesA.GetCorrelation(quotesB, lookbackPeriods);
```
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Dema.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Created by Patrick G. Mulloy, the [Double exponential moving average](https://en
![chart for {{page.title}}]({{site.baseurl}}{{page.image}})

```csharp
// usage
// C# usage syntax
IEnumerable<DemaResult> results =
quotes.GetDema(lookbackPeriods);
```
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Doji.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: candlestick-pattern
![chart for {{page.title}}]({{site.baseurl}}{{page.image}})

```csharp
// usage
// C# usage syntax
IEnumerable<CandleResult> results =
quotes.GetDoji(maxPriceChangePercent);
```
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Donchian.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Created by Richard Donchian, [Donchian Channels](https://en.wikipedia.org/wiki/D
![chart for {{page.title}}]({{site.baseurl}}{{page.image}})

```csharp
// usage
// C# usage syntax
IEnumerable<DonchianResult> results =
quotes.GetDonchian(lookbackPeriods);
```
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Dpo.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ layout: indicator
![chart for {{page.title}}]({{site.baseurl}}{{page.image}})

```csharp
// usage
// C# usage syntax
IEnumerable<DpoResult> results =
quotes.GetDpo(lookbackPeriods);
```
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Dynamic.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Created by John R. McGinley, the [McGinley Dynamic](https://www.investopedia.com
![chart for {{page.title}}]({{site.baseurl}}{{page.image}})

```csharp
// usage (with Close price)
// C# usage syntax (with Close price)
IEnumerable<DynamicResult> results =
quotes.GetDynamic(lookbackPeriods, kFactor);
```
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/ElderRay.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Created by Alexander Elder, the [Elder-ray Index](https://www.investopedia.com/t
![chart for {{page.title}}]({{site.baseurl}}{{page.image}})

```csharp
// usage
// C# usage syntax
IEnumerable<ElderRayResult> results =
quotes.GetElderRay(lookbackPeriods);
```
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Ema.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ layout: indicator
![chart for {{page.title}}]({{site.baseurl}}{{page.image}})

```csharp
// usage (with Close price)
// C# usage syntax (with Close price)
IEnumerable<EmaResult> results =
quotes.GetEma(lookbackPeriods);
```
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Epma.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Endpoint Moving Average (EPMA), also known as Least Squares Moving Average (LSMA
![chart for {{page.title}}]({{site.baseurl}}{{page.image}})

```csharp
// usage
// C# usage syntax
IEnumerable<EpmaResult> results =
quotes.GetEpma(lookbackPeriods);
```
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Fcb.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Created by Edward William Dreiss, Fractal Chaos Bands outline high and low price
![chart for {{page.title}}]({{site.baseurl}}{{page.image}})

```csharp
// usage
// C# usage syntax
IEnumerable<FcbResult> results =
quotes.GetFcb(windowSpan);
```
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/FisherTransform.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Created by John Ehlers, the [Fisher Transform](https://www.investopedia.com/term
![chart for {{page.title}}]({{site.baseurl}}{{page.image}})

```csharp
// usage
// C# usage syntax
IEnumerable<FisherTransformResult> results =
quotes.GetFisherTransform(lookbackPeriods);
```
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/ForceIndex.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Created by Alexander Elder, the [Force Index](https://en.wikipedia.org/wiki/Forc
![chart for {{page.title}}]({{site.baseurl}}{{page.image}})

```csharp
// usage
// C# usage syntax
IEnumerable<ForceIndexResult> results =
quotes.GetForceIndex(lookbackPeriods);
```
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Fractal.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Created by Larry Williams, [Fractal](https://www.investopedia.com/terms/f/fracta
![chart for {{page.title}}]({{site.baseurl}}{{page.image}})

```csharp
// usage
// C# usage syntax
IEnumerable<FractalResult> results =
quotes.GetFractal(windowSpan);
```
Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/Gator.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Created by Bill Williams, the Gator Oscillator is an expanded oscillator view of
![chart for {{page.title}}]({{site.baseurl}}{{page.image}})

```csharp
// usage
// C# usage syntax
IEnumerable<GatorResult> results =
quotes.GetGator();

Expand Down
2 changes: 1 addition & 1 deletion docs/_indicators/HeikinAshi.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Created by Munehisa Homma, [Heikin-Ashi](https://en.wikipedia.org/wiki/Candlesti
![chart for {{page.title}}]({{site.baseurl}}{{page.image}})

```csharp
// usage
// C# usage syntax
IEnumerable<HeikinAshiResult> results =
quotes.GetHeikinAshi();
```
Expand Down
Loading

0 comments on commit 92443f3

Please sign in to comment.