From 2c3bb50225f315235e0d0ab60346cc05fef858fd Mon Sep 17 00:00:00 2001
From: Dave Skender <8432125+DaveSkender@users.noreply.github.com>
Date: Fri, 5 Jan 2024 03:10:54 -0500
Subject: [PATCH] chore: Bump to .NET 8.0 (#297)
---
.github/build.main.yml | 4 +-
.github/workflows/semantic-pr-linter.yml | 70 ++++
Client/angular.json | 3 +-
Server/ChartBackend.sln | 2 +-
Server/Functions/Functions.csproj | 12 +-
Server/Functions/GlobalSuppressions.cs | 2 +-
Server/Functions/UpdateQuotes.cs | 9 +-
Server/WebApi/Program.cs | 9 +-
Server/WebApi/Services/Service.Metadata.cs | 392 ++++++++++-----------
Server/WebApi/Services/Service.Quotes.cs | 6 +-
Server/WebApi/Services/Service.Storage.cs | 17 +-
Server/WebApi/Startup.cs | 20 ++
Server/WebApi/WebApi.csproj | 12 +-
13 files changed, 331 insertions(+), 227 deletions(-)
create mode 100644 .github/workflows/semantic-pr-linter.yml
create mode 100644 Server/WebApi/Startup.cs
diff --git a/.github/build.main.yml b/.github/build.main.yml
index c83e38b8..f54c9fe1 100644
--- a/.github/build.main.yml
+++ b/.github/build.main.yml
@@ -41,10 +41,10 @@ jobs:
tokenSuffix: __
- task: UseDotNet@2
- displayName: Use .Net SDK 7.x
+ displayName: Use .Net SDK
continueOnError: True
inputs:
- version: 7.x
+ version: 8.x
- task: DotNetCoreCLI@2
displayName: dotnet restore
diff --git a/.github/workflows/semantic-pr-linter.yml b/.github/workflows/semantic-pr-linter.yml
new file mode 100644
index 00000000..a4113f57
--- /dev/null
+++ b/.github/workflows/semantic-pr-linter.yml
@@ -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 phrase (proper 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
diff --git a/Client/angular.json b/Client/angular.json
index 087da8c5..d942c226 100644
--- a/Client/angular.json
+++ b/Client/angular.json
@@ -125,7 +125,8 @@
"cli": {
"schematicCollections": [
"@angular-eslint/schematics"
- ]
+ ],
+ "analytics": false
},
"schematics": {
"@angular-eslint/schematics:application": {
diff --git a/Server/ChartBackend.sln b/Server/ChartBackend.sln
index d24c2017..d20dc1a8 100644
--- a/Server/ChartBackend.sln
+++ b/Server/ChartBackend.sln
@@ -14,7 +14,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
..\README.md = ..\README.md
EndProjectSection
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Functions", "Functions\Functions.csproj", "{5C774F35-FFB4-488A-8232-8D31F77557A7}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Functions", "Functions\Functions.csproj", "{5C774F35-FFB4-488A-8232-8D31F77557A7}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
diff --git a/Server/Functions/Functions.csproj b/Server/Functions/Functions.csproj
index 890255db..33fa264a 100644
--- a/Server/Functions/Functions.csproj
+++ b/Server/Functions/Functions.csproj
@@ -1,16 +1,16 @@
- net7.0
+ net8.0
v4
Exe
enable
enable
-
-
-
-
+
+
+
+
@@ -27,4 +27,4 @@
-
\ No newline at end of file
+
diff --git a/Server/Functions/GlobalSuppressions.cs b/Server/Functions/GlobalSuppressions.cs
index efcff7d7..e719ac56 100644
--- a/Server/Functions/GlobalSuppressions.cs
+++ b/Server/Functions/GlobalSuppressions.cs
@@ -1,4 +1,4 @@
-// This file is used by Code Analysis to maintain SuppressMessage
+// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
diff --git a/Server/Functions/UpdateQuotes.cs b/Server/Functions/UpdateQuotes.cs
index b1d54348..49aa0681 100644
--- a/Server/Functions/UpdateQuotes.cs
+++ b/Server/Functions/UpdateQuotes.cs
@@ -7,14 +7,9 @@
namespace Functions;
-public class Jobs
+public class Jobs(ILoggerFactory loggerFactory)
{
- private readonly ILogger _logger;
-
- public Jobs(ILoggerFactory loggerFactory)
- {
- _logger = loggerFactory.CreateLogger();
- }
+ private readonly ILogger _logger = loggerFactory.CreateLogger();
[Function("UpdateQuotes")]
public async Task Run([TimerTrigger("0 */1 08-18 * * 1-5")] TimerInfo myTimer)
diff --git a/Server/WebApi/Program.cs b/Server/WebApi/Program.cs
index 2a15f49c..19c9d60d 100644
--- a/Server/WebApi/Program.cs
+++ b/Server/WebApi/Program.cs
@@ -1,5 +1,7 @@
// STARTUP CONFIGURATION
+using WebApi.Services;
+
WebApplicationBuilder builder = WebApplication.CreateBuilder(args);
IServiceCollection services = builder.Services;
@@ -10,7 +12,7 @@
// get CORS origins from appsettings
IConfigurationSection corsOrigins = configuration.GetSection("CorsOrigins");
-List origins = new();
+List origins = [];
origins.Add(item: corsOrigins["Website"]);
// setup CORS for website
@@ -22,12 +24,15 @@
cors.AllowAnyHeader();
cors.AllowAnyMethod();
cors.AllowCredentials();
- cors.WithOrigins(origins.ToArray());
+ cors.WithOrigins([.. origins]);
});
});
Console.WriteLine($"CORS Origins: {corsOrigins["Website"]}");
+// register services
+builder.Services.AddHostedService();
+
// build application
WebApplication app = builder.Build();
diff --git a/Server/WebApi/Services/Service.Metadata.cs b/Server/WebApi/Services/Service.Metadata.cs
index 699d4643..95aecdc8 100644
--- a/Server/WebApi/Services/Service.Metadata.cs
+++ b/Server/WebApi/Services/Service.Metadata.cs
@@ -15,8 +15,8 @@ public static IEnumerable IndicatorList(string baseUrl)
string thresholdRed = "#B71C1C70";
string thresholdGreen = "#1B5E2070";
- List listing = new()
- {
+ List listing =
+ [
// Accumulation Distribution Line (ADL)
new IndicatorList
{
@@ -28,7 +28,7 @@ public static IEnumerable IndicatorList(string baseUrl)
ChartType = "oscillator",
Parameters = new List
{
- new IndicatorParamConfig {
+ new() {
DisplayName = "SMA Periods",
ParamName = "smaPeriods",
DataType = "int",
@@ -38,7 +38,7 @@ public static IEnumerable IndicatorList(string baseUrl)
}
},
Results = new List{
- new IndicatorResultConfig {
+ new() {
DisplayName = "Accumulation Distribution Line",
TooltipTemplate = "ADL",
DataName = "adl",
@@ -46,7 +46,7 @@ public static IEnumerable IndicatorList(string baseUrl)
LineType = "solid",
DefaultColor = standardBlue
},
- new IndicatorResultConfig {
+ new() {
DisplayName = "SMA of ADL",
TooltipTemplate = "ADL SMA([P1])",
DataName = "adlSma",
@@ -70,12 +70,12 @@ public static IEnumerable IndicatorList(string baseUrl)
{
Thresholds = new List
{
- new ChartThreshold {
+ new() {
Value = 40,
Color = standardGrayTransparent,
Style = "dash"
},
- new ChartThreshold {
+ new() {
Value = 20,
Color = standardGrayTransparent,
Style = "dash"
@@ -84,7 +84,7 @@ public static IEnumerable IndicatorList(string baseUrl)
},
Parameters = new List
{
- new IndicatorParamConfig {
+ new() {
DisplayName = "Lookback Periods",
ParamName = "lookbackPeriods",
DataType = "int",
@@ -94,7 +94,7 @@ public static IEnumerable IndicatorList(string baseUrl)
}
},
Results = new List{
- new IndicatorResultConfig {
+ new() {
DisplayName = "ADX",
TooltipTemplate = "ADX([P1])",
DataName = "adx",
@@ -102,7 +102,7 @@ public static IEnumerable IndicatorList(string baseUrl)
LineType = "solid",
DefaultColor = standardBlue
},
- new IndicatorResultConfig {
+ new() {
DisplayName = "DI+",
TooltipTemplate = "DI+([P1])",
DataName = "pdi",
@@ -110,7 +110,7 @@ public static IEnumerable IndicatorList(string baseUrl)
LineType = "solid",
DefaultColor = standardGreen
},
- new IndicatorResultConfig {
+ new() {
DisplayName= "DI-",
TooltipTemplate = "DI-([P1])",
DataName = "mdi",
@@ -118,7 +118,7 @@ public static IEnumerable IndicatorList(string baseUrl)
LineType = "solid",
DefaultColor = standardRed
},
- new IndicatorResultConfig {
+ new() {
DisplayName = "ADX Rating",
TooltipTemplate = "ADXR([P1])",
DataName = "adxr",
@@ -141,7 +141,7 @@ public static IEnumerable IndicatorList(string baseUrl)
ChartType = "overlay",
Parameters = new List
{
- new IndicatorParamConfig {
+ new() {
DisplayName = "Lookback Periods",
ParamName = "lookbackPeriods",
DataType = "int",
@@ -149,7 +149,7 @@ public static IEnumerable IndicatorList(string baseUrl)
Minimum = 2,
Maximum = 250
},
- new IndicatorParamConfig {
+ new() {
DisplayName = "Offset",
ParamName = "offset",
DataType = "number",
@@ -157,7 +157,7 @@ public static IEnumerable IndicatorList(string baseUrl)
Minimum = 0,
Maximum = 1
},
- new IndicatorParamConfig {
+ new() {
DisplayName = "Sigma",
ParamName = "sigma",
DataType = "number",
@@ -167,7 +167,7 @@ public static IEnumerable IndicatorList(string baseUrl)
}
},
Results = new List{
- new IndicatorResultConfig {
+ new() {
DisplayName = "ALMA",
TooltipTemplate = "ALMA([P1],[P2],[P3])",
DataName = "alma",
@@ -194,17 +194,17 @@ public static IEnumerable IndicatorList(string baseUrl)
Thresholds = new List
{
- new ChartThreshold {
+ new() {
Value = 70,
Color = standardGrayTransparent,
Style = "solid"
},
- new ChartThreshold {
+ new() {
Value = 50,
Color = standardGrayTransparent,
Style = "dash"
},
- new ChartThreshold {
+ new() {
Value = 30,
Color = standardGrayTransparent,
Style = "solid"
@@ -213,7 +213,7 @@ public static IEnumerable IndicatorList(string baseUrl)
},
Parameters = new List
{
- new IndicatorParamConfig {
+ new() {
DisplayName = "Lookback Periods",
ParamName = "lookbackPeriods",
DataType = "int",
@@ -223,7 +223,7 @@ public static IEnumerable IndicatorList(string baseUrl)
}
},
Results = new List{
- new IndicatorResultConfig {
+ new() {
DisplayName = "Aroon Up",
TooltipTemplate = "Aroon Up",
DataName = "aroonUp",
@@ -231,7 +231,7 @@ public static IEnumerable IndicatorList(string baseUrl)
LineType = "solid",
DefaultColor = standardGreen
},
- new IndicatorResultConfig {
+ new() {
DisplayName= "Aroon Down",
TooltipTemplate = "Aroon Down",
DataName = "aroonDown",
@@ -258,7 +258,7 @@ public static IEnumerable IndicatorList(string baseUrl)
Thresholds = new List
{
- new ChartThreshold {
+ new() {
Value = 0,
Color = standardGrayTransparent,
Style = "dash"
@@ -267,7 +267,7 @@ public static IEnumerable IndicatorList(string baseUrl)
},
Parameters = new List
{
- new IndicatorParamConfig {
+ new() {
DisplayName = "Lookback Periods",
ParamName = "lookbackPeriods",
DataType = "int",
@@ -277,7 +277,7 @@ public static IEnumerable IndicatorList(string baseUrl)
}
},
Results = new List{
- new IndicatorResultConfig {
+ new() {
DisplayName = "Oscillator",
TooltipTemplate = "AROON([P1]) Oscillator",
DataName = "oscillator",
@@ -300,7 +300,7 @@ public static IEnumerable IndicatorList(string baseUrl)
Order = Order.Front,
Parameters = new List
{
- new IndicatorParamConfig {
+ new() {
DisplayName = "Lookback Periods",
ParamName = "lookbackPeriods",
DataType = "int",
@@ -308,7 +308,7 @@ public static IEnumerable IndicatorList(string baseUrl)
Minimum = 1,
Maximum = 50
},
- new IndicatorParamConfig {
+ new() {
DisplayName = "Multiplier",
ParamName= "multiplier",
DataType = "number",
@@ -318,7 +318,7 @@ public static IEnumerable IndicatorList(string baseUrl)
}
},
Results = new List{
- new IndicatorResultConfig {
+ new() {
DisplayName = "Buy Stop",
TooltipTemplate = "ATR-STOP([P1],[P2],CLOSE) Buy Stop",
DataName = "buyStop",
@@ -326,7 +326,7 @@ public static IEnumerable IndicatorList(string baseUrl)
LineType = "solid",
DefaultColor = standardGreen
},
- new IndicatorResultConfig {
+ new() {
DisplayName = "Sell Stop",
TooltipTemplate = "ATR-STOP([P1],[P2],CLOSE) Sell Stop",
DataName = "sellStop",
@@ -349,7 +349,7 @@ public static IEnumerable IndicatorList(string baseUrl)
Order = Order.Front,
Parameters = new List
{
- new IndicatorParamConfig {
+ new() {
DisplayName = "Lookback Periods",
ParamName = "lookbackPeriods",
DataType = "int",
@@ -357,7 +357,7 @@ public static IEnumerable IndicatorList(string baseUrl)
Minimum = 1,
Maximum = 50
},
- new IndicatorParamConfig {
+ new() {
DisplayName = "Multiplier",
ParamName= "multiplier",
DataType = "number",
@@ -367,7 +367,7 @@ public static IEnumerable IndicatorList(string baseUrl)
}
},
Results = new List{
- new IndicatorResultConfig {
+ new() {
DisplayName = "Buy Stop",
TooltipTemplate = "ATR-STOP([P1],[P2],HIGH/LOW) Buy Stop",
DataName = "buyStop",
@@ -375,7 +375,7 @@ public static IEnumerable IndicatorList(string baseUrl)
LineType = "solid",
DefaultColor = standardGreen
},
- new IndicatorResultConfig {
+ new() {
DisplayName = "Sell Stop",
TooltipTemplate = "ATR-STOP([P1],[P2],HIGH/LOW) Sell Stop",
DataName = "sellStop",
@@ -397,7 +397,7 @@ public static IEnumerable IndicatorList(string baseUrl)
ChartType = "oscillator",
Parameters = new List
{
- new IndicatorParamConfig {
+ new() {
DisplayName = "Lookback Periods",
ParamName = "lookbackPeriods",
DataType = "int",
@@ -407,7 +407,7 @@ public static IEnumerable IndicatorList(string baseUrl)
}
},
Results = new List{
- new IndicatorResultConfig {
+ new() {
DisplayName = "Average True Range",
TooltipTemplate = "ATR([P1])",
DataName = "atr",
@@ -429,7 +429,7 @@ public static IEnumerable IndicatorList(string baseUrl)
ChartType = "oscillator",
Parameters = new List
{
- new IndicatorParamConfig {
+ new() {
DisplayName = "Lookback Periods",
ParamName = "lookbackPeriods",
DataType = "int",
@@ -439,7 +439,7 @@ public static IEnumerable IndicatorList(string baseUrl)
}
},
Results = new List{
- new IndicatorResultConfig {
+ new() {
DisplayName = "Average True Range Percent",
TooltipTemplate = "ATR([P1]) %",
DataName = "atrp",
@@ -463,7 +463,7 @@ public static IEnumerable IndicatorList(string baseUrl)
{
Thresholds = new List
{
- new ChartThreshold {
+ new() {
Value = 1,
Color = standardGrayTransparent,
Style = "dash"
@@ -472,7 +472,7 @@ public static IEnumerable IndicatorList(string baseUrl)
},
Parameters = new List
{
- new IndicatorParamConfig {
+ new() {
DisplayName = "Lookback Periods",
ParamName = "lookbackPeriods",
DataType = "int",
@@ -482,7 +482,7 @@ public static IEnumerable IndicatorList(string baseUrl)
}
},
Results = new List{
- new IndicatorResultConfig {
+ new() {
DisplayName = "Beta",
TooltipTemplate = "Beta",
DataName = "beta",
@@ -490,7 +490,7 @@ public static IEnumerable IndicatorList(string baseUrl)
LineType = "solid",
DefaultColor = standardBlue
},
- new IndicatorResultConfig {
+ new() {
DisplayName = "Beta+",
TooltipTemplate = "Beta+",
DataName = "betaUp",
@@ -498,7 +498,7 @@ public static IEnumerable IndicatorList(string baseUrl)
LineType = "dash",
DefaultColor = standardGreen
},
- new IndicatorResultConfig {
+ new() {
DisplayName= "Beta-",
TooltipTemplate = "Beta-",
DataName = "betaDown",
@@ -521,7 +521,7 @@ public static IEnumerable IndicatorList(string baseUrl)
Order = Order.BehindPrice,
Parameters = new List
{
- new IndicatorParamConfig {
+ new() {
DisplayName = "Lookback Periods",
ParamName = "lookbackPeriods",
DataType = "int",
@@ -529,7 +529,7 @@ public static IEnumerable IndicatorList(string baseUrl)
Minimum = 2,
Maximum = 250
},
- new IndicatorParamConfig {
+ new() {
DisplayName = "Standard Deviations",
ParamName= "standardDeviations",
DataType = "number",
@@ -539,7 +539,7 @@ public static IEnumerable IndicatorList(string baseUrl)
}
},
Results = new List{
- new IndicatorResultConfig {
+ new() {
DisplayName = "Upper Band",
TooltipTemplate = "BB([P1],[P2]) Upper Band",
DataName = "upperBand",
@@ -554,7 +554,7 @@ public static IEnumerable IndicatorList(string baseUrl)
ColorBelow = darkGrayTransparent
}
},
- new IndicatorResultConfig {
+ new() {
DisplayName = "Centerline",
TooltipTemplate = "BB([P1],[P2]) Centerline",
DataName = "sma",
@@ -563,7 +563,7 @@ public static IEnumerable IndicatorList(string baseUrl)
LineWidth = 1,
DefaultColor = darkGray
},
- new IndicatorResultConfig {
+ new() {
DisplayName = "Lower Band",
TooltipTemplate = "BB([P1],[P2]) Lower Band",
DataName = "lowerBand",
@@ -588,7 +588,7 @@ public static IEnumerable IndicatorList(string baseUrl)
{
Thresholds = new List
{
- new ChartThreshold {
+ new() {
Value = 1,
Color = thresholdRed,
Style = "dash",
@@ -599,7 +599,7 @@ public static IEnumerable IndicatorList(string baseUrl)
ColorBelow = thresholdGreen
}
},
- new ChartThreshold {
+ new() {
Value = 0,
Color = thresholdGreen,
Style = "dash",
@@ -614,7 +614,7 @@ public static IEnumerable IndicatorList(string baseUrl)
},
Parameters = new List
{
- new IndicatorParamConfig {
+ new() {
DisplayName = "Lookback Periods",
ParamName = "lookbackPeriods",
DataType = "int",
@@ -622,7 +622,7 @@ public static IEnumerable IndicatorList(string baseUrl)
Minimum = 2,
Maximum = 250
},
- new IndicatorParamConfig {
+ new() {
DisplayName = "Standard Deviations",
ParamName= "standardDeviations",
DataType = "number",
@@ -632,7 +632,7 @@ public static IEnumerable IndicatorList(string baseUrl)
}
},
Results = new List{
- new IndicatorResultConfig {
+ new() {
DisplayName = "%B",
TooltipTemplate = "BB([P1],[P2]) %B",
DataName = "percentB",
@@ -656,7 +656,7 @@ public static IEnumerable IndicatorList(string baseUrl)
{
Thresholds = new List
{
- new ChartThreshold {
+ new() {
Value = 0,
Color = standardGrayTransparent,
Style = "dash"
@@ -665,7 +665,7 @@ public static IEnumerable IndicatorList(string baseUrl)
},
Parameters = new List
{
- new IndicatorParamConfig {
+ new() {
DisplayName = "Lookback Periods",
ParamName = "lookbackPeriods",
DataType = "int",
@@ -675,7 +675,7 @@ public static IEnumerable IndicatorList(string baseUrl)
}
},
Results = new List{
- new IndicatorResultConfig {
+ new() {
DisplayName = "CMF",
TooltipTemplate = "Chaikin Money Flow",
DataName = "cmf",
@@ -697,7 +697,7 @@ public static IEnumerable IndicatorList(string baseUrl)
ChartType = "oscillator",
Parameters = new List
{
- new IndicatorParamConfig {
+ new() {
DisplayName = "Lookback Periods",
ParamName = "lookbackPeriods",
DataType = "int",
@@ -707,7 +707,7 @@ public static IEnumerable IndicatorList(string baseUrl)
}
},
Results = new List{
- new IndicatorResultConfig {
+ new() {
DisplayName = "Chande Momentum Oscillator",
TooltipTemplate = "CMO([P1])",
DataName = "cmo",
@@ -729,7 +729,7 @@ public static IEnumerable IndicatorList(string baseUrl)
ChartType = "overlay",
Parameters = new List
{
- new IndicatorParamConfig {
+ new() {
DisplayName = "Lookback Periods",
ParamName = "lookbackPeriods",
DataType = "int",
@@ -737,7 +737,7 @@ public static IEnumerable IndicatorList(string baseUrl)
Minimum = 1,
Maximum = 250
},
- new IndicatorParamConfig {
+ new() {
DisplayName = "Multiplier",
ParamName = "multiplier",
DataType = "number",
@@ -747,7 +747,7 @@ public static IEnumerable IndicatorList(string baseUrl)
}
},
Results = new List{
- new IndicatorResultConfig {
+ new() {
DisplayName = "Chandelier Exit",
TooltipTemplate = "CHANDELIER([P1],[P2],LONG)",
DataName = "chandelierExit",
@@ -769,7 +769,7 @@ public static IEnumerable IndicatorList(string baseUrl)
ChartType = "overlay",
Parameters = new List
{
- new IndicatorParamConfig {
+ new() {
DisplayName = "Lookback Periods",
ParamName = "lookbackPeriods",
DataType = "int",
@@ -777,7 +777,7 @@ public static IEnumerable IndicatorList(string baseUrl)
Minimum = 1,
Maximum = 250
},
- new IndicatorParamConfig {
+ new() {
DisplayName = "Multiplier",
ParamName = "multiplier",
DataType = "number",
@@ -787,7 +787,7 @@ public static IEnumerable IndicatorList(string baseUrl)
}
},
Results = new List{
- new IndicatorResultConfig {
+ new() {
DisplayName = "Chandelier Exit",
TooltipTemplate = "CHANDELIER([P1],[P2],LONG)",
DataName = "chandelierExit",
@@ -814,7 +814,7 @@ public static IEnumerable IndicatorList(string baseUrl)
Thresholds = new List
{
- new ChartThreshold {
+ new() {
Value = 61.8,
Color = darkGrayTransparent,
Style = "dash",
@@ -825,7 +825,7 @@ public static IEnumerable IndicatorList(string baseUrl)
ColorBelow = thresholdRed
}
},
- new ChartThreshold {
+ new() {
Value = 38.2,
Color = darkGrayTransparent,
Style = "dash",
@@ -840,7 +840,7 @@ public static IEnumerable IndicatorList(string baseUrl)
},
Parameters = new List
{
- new IndicatorParamConfig {
+ new() {
DisplayName = "Lookback Periods",
ParamName = "lookbackPeriods",
DataType = "int",
@@ -850,7 +850,7 @@ public static IEnumerable IndicatorList(string baseUrl)
}
},
Results = new List{
- new IndicatorResultConfig {
+ new() {
DisplayName = "Choppiness",
TooltipTemplate = "Choppiness",
DataName = "chop",
@@ -872,7 +872,7 @@ public static IEnumerable IndicatorList(string baseUrl)
ChartType = "overlay",
Parameters = new List
{
- new IndicatorParamConfig {
+ new() {
DisplayName = "Max Price Change %",
ParamName = "maxPriceChangePercent",
DataType = "number",
@@ -882,7 +882,7 @@ public static IEnumerable IndicatorList(string baseUrl)
}
},
Results = new List{
- new IndicatorResultConfig {
+ new() {
TooltipTemplate = "DOJI([P1]%)",
DisplayName = "Doji",
DataName = "price",
@@ -908,7 +908,7 @@ public static IEnumerable IndicatorList(string baseUrl)
MinimumYAxis = 0
},
Results = new List{
- new IndicatorResultConfig {
+ new() {
DisplayName = "DC PERIODS",
TooltipTemplate = "DC PERIODS",
DataName = "dcPeriods",
@@ -931,7 +931,7 @@ public static IEnumerable IndicatorList(string baseUrl)
Order = Order.BehindPrice,
Parameters = new List
{
- new IndicatorParamConfig {
+ new() {
DisplayName = "Lookback Periods",
ParamName = "lookbackPeriods",
DataType = "int",
@@ -941,7 +941,7 @@ public static IEnumerable IndicatorList(string baseUrl)
}
},
Results = new List{
- new IndicatorResultConfig {
+ new() {
DisplayName = "Upper Band",
TooltipTemplate = "DONCHIAN([P1]) Upper Band",
DataName = "upperBand",
@@ -956,7 +956,7 @@ public static IEnumerable IndicatorList(string baseUrl)
ColorBelow = darkGrayTransparent
}
},
- new IndicatorResultConfig {
+ new() {
DisplayName = "Centerline",
TooltipTemplate = "DONCHIAN([P1]) Centerline",
DataName = "centerline",
@@ -965,7 +965,7 @@ public static IEnumerable IndicatorList(string baseUrl)
LineWidth = 1,
DefaultColor = standardOrange
},
- new IndicatorResultConfig {
+ new() {
DisplayName = "Lower Band",
TooltipTemplate = "DONCHIAN([P1]) Lower Band",
DataName = "lowerBand",
@@ -988,7 +988,7 @@ public static IEnumerable IndicatorList(string baseUrl)
ChartType = "overlay",
Parameters = new List
{
- new IndicatorParamConfig {
+ new() {
DisplayName = "Lookback Periods",
ParamName = "lookbackPeriods",
DataType = "int",
@@ -998,7 +998,7 @@ public static IEnumerable IndicatorList(string baseUrl)
}
},
Results = new List{
- new IndicatorResultConfig {
+ new() {
DisplayName = "Dynamic",
TooltipTemplate = "DYNAMIC([P1])",
DataName = "dynamic",
@@ -1020,7 +1020,7 @@ public static IEnumerable IndicatorList(string baseUrl)
ChartType = "oscillator",
Parameters = new List
{
- new IndicatorParamConfig {
+ new() {
DisplayName = "Lookback Periods",
ParamName = "lookbackPeriods",
DataType = "int",
@@ -1030,7 +1030,7 @@ public static IEnumerable IndicatorList(string baseUrl)
}
},
Results = new List{
- new IndicatorResultConfig {
+ new() {
DisplayName = "Bull Power",
TooltipTemplate = "Bull Power",
DataName = "bullPower",
@@ -1039,7 +1039,7 @@ public static IEnumerable IndicatorList(string baseUrl)
Stack = "eray",
DefaultColor = standardGreen
},
- new IndicatorResultConfig {
+ new() {
DisplayName = "Bear Power",
TooltipTemplate = "Bear Power",
DataName = "bearPower",
@@ -1062,7 +1062,7 @@ public static IEnumerable IndicatorList(string baseUrl)
ChartType = "overlay",
Parameters = new List
{
- new IndicatorParamConfig {
+ new() {
DisplayName = "Lookback Periods",
ParamName = "lookbackPeriods",
DataType = "int",
@@ -1072,7 +1072,7 @@ public static IEnumerable IndicatorList(string baseUrl)
}
},
Results = new List{
- new IndicatorResultConfig {
+ new() {
DisplayName = "EPMA",
TooltipTemplate = "EPMA([P1])",
DataName = "epma",
@@ -1094,7 +1094,7 @@ public static IEnumerable IndicatorList(string baseUrl)
ChartType = "overlay",
Parameters = new List
{
- new IndicatorParamConfig {
+ new() {
DisplayName = "Lookback Periods",
ParamName = "lookbackPeriods",
DataType = "int",
@@ -1104,7 +1104,7 @@ public static IEnumerable IndicatorList(string baseUrl)
}
},
Results = new List{
- new IndicatorResultConfig {
+ new() {
DisplayName = "EMA",
TooltipTemplate = "EMA([P1])",
DataName = "ema",
@@ -1126,7 +1126,7 @@ public static IEnumerable IndicatorList(string baseUrl)
ChartType = "oscillator",
Parameters = new List
{
- new IndicatorParamConfig {
+ new() {
DisplayName = "Lookback Periods",
ParamName = "lookbackPeriods",
DataType = "int",
@@ -1136,7 +1136,7 @@ public static IEnumerable IndicatorList(string baseUrl)
}
},
Results = new List{
- new IndicatorResultConfig {
+ new() {
DisplayName = "Fisher Transform",
TooltipTemplate = "Fisher Transform",
DataName = "fisher",
@@ -1144,7 +1144,7 @@ public static IEnumerable IndicatorList(string baseUrl)
LineType = "solid",
DefaultColor = standardBlue
},
- new IndicatorResultConfig {
+ new() {
DisplayName = "Trigger",
TooltipTemplate = "Trigger",
DataName = "trigger",
@@ -1166,7 +1166,7 @@ public static IEnumerable IndicatorList(string baseUrl)
ChartType = "overlay",
Parameters = new List
{
- new IndicatorParamConfig {
+ new() {
DisplayName = "Window Span",
ParamName = "windowSpan",
DataType = "int",
@@ -1176,7 +1176,7 @@ public static IEnumerable IndicatorList(string baseUrl)
}
},
Results = new List{
- new IndicatorResultConfig {
+ new() {
DisplayName = "Fractal Bull",
TooltipTemplate = "Fractal Bull ([P1])",
DataName = "fractalBull",
@@ -1185,7 +1185,7 @@ public static IEnumerable IndicatorList(string baseUrl)
LineWidth = 3,
DefaultColor = standardRed
},
- new IndicatorResultConfig {
+ new() {
DisplayName = "Fractal Bear",
TooltipTemplate = "Fractal Bear ([P1])",
DataName = "fractalBear",
@@ -1209,7 +1209,7 @@ public static IEnumerable IndicatorList(string baseUrl)
Order = Order.Front,
Parameters = new List
{
- new IndicatorParamConfig {
+ new() {
DisplayName = "Window Span",
ParamName = "windowSpan",
DataType = "int",
@@ -1219,7 +1219,7 @@ public static IEnumerable IndicatorList(string baseUrl)
}
},
Results = new List{
- new IndicatorResultConfig {
+ new() {
TooltipTemplate = "Upper Band",
DisplayName = "FCB([P1]) Upper Band",
DataName = "upperBand",
@@ -1227,7 +1227,7 @@ public static IEnumerable IndicatorList(string baseUrl)
LineType = "solid",
DefaultColor = standardGreen
},
- new IndicatorResultConfig {
+ new() {
DisplayName = "Lower Band",
TooltipTemplate = "FCB([P1]) Lower Band",
DataName = "lowerBand",
@@ -1248,7 +1248,7 @@ public static IEnumerable IndicatorList(string baseUrl)
Category = "moving-average",
ChartType = "overlay",
Results = new List{
- new IndicatorResultConfig {
+ new() {
DisplayName = "HT Trendline",
TooltipTemplate = "HT Trendline",
DataName = "trendline",
@@ -1256,7 +1256,7 @@ public static IEnumerable IndicatorList(string baseUrl)
LineType = "solid",
DefaultColor = standardBlue
},
- new IndicatorResultConfig {
+ new() {
DisplayName = "HT Smoothed Price",
TooltipTemplate = "HT Smooth Price",
DataName = "smoothPrice",
@@ -1279,7 +1279,7 @@ public static IEnumerable IndicatorList(string baseUrl)
Order = Order.BehindPrice,
Parameters = new List
{
- new IndicatorParamConfig {
+ new() {
DisplayName = "EMA Periods",
ParamName = "emaPeriods",
DataType = "int",
@@ -1287,7 +1287,7 @@ public static IEnumerable IndicatorList(string baseUrl)
Minimum = 2,
Maximum = 250
},
- new IndicatorParamConfig {
+ new() {
DisplayName = "Multiplier",
ParamName= "multiplier",
DataType = "number",
@@ -1295,7 +1295,7 @@ public static IEnumerable IndicatorList(string baseUrl)
Minimum = 0.01,
Maximum = 10
},
- new IndicatorParamConfig {
+ new() {
DisplayName = "ATR Periods",
ParamName= "atrPeriods",
DataType = "number",
@@ -1305,7 +1305,7 @@ public static IEnumerable IndicatorList(string baseUrl)
}
},
Results = new List{
- new IndicatorResultConfig {
+ new() {
DisplayName = "Upper Band",
TooltipTemplate = "KELTNER([P1],[P2],[P3]) Upper Band",
DataName = "upperBand",
@@ -1320,7 +1320,7 @@ public static IEnumerable IndicatorList(string baseUrl)
ColorBelow = darkGrayTransparent
}
},
- new IndicatorResultConfig {
+ new() {
DisplayName = "Centerline",
TooltipTemplate = "KELTNER([P1],[P2],[P3]) Centerline",
DataName = "centerline",
@@ -1329,7 +1329,7 @@ public static IEnumerable IndicatorList(string baseUrl)
LineWidth = 1,
DefaultColor = standardOrange
},
- new IndicatorResultConfig {
+ new() {
DisplayName = "Lower Band",
TooltipTemplate = "KELTNER([P1],[P2],[P3]) Lower Band",
DataName = "lowerBand",
@@ -1352,7 +1352,7 @@ public static IEnumerable IndicatorList(string baseUrl)
ChartType = "overlay",
Parameters = new List
{
- new IndicatorParamConfig {
+ new() {
DisplayName = "Min Body Percent %",
ParamName = "minBodyPercent",
DataType = "number",
@@ -1362,7 +1362,7 @@ public static IEnumerable IndicatorList(string baseUrl)
}
},
Results = new List{
- new IndicatorResultConfig {
+ new() {
DisplayName = "Marubozu",
TooltipTemplate = "MARUBOZU([P1]%)",
DataName = "price",
@@ -1390,7 +1390,7 @@ public static IEnumerable IndicatorList(string baseUrl)
Thresholds = new List
{
- new ChartThreshold {
+ new() {
Value = 80,
Color = thresholdRed,
Style = "dash",
@@ -1401,7 +1401,7 @@ public static IEnumerable IndicatorList(string baseUrl)
ColorBelow = thresholdGreen
}
},
- new ChartThreshold {
+ new() {
Value = 20,
Color = thresholdGreen,
Style = "dash",
@@ -1416,7 +1416,7 @@ public static IEnumerable IndicatorList(string baseUrl)
},
Parameters = new List
{
- new IndicatorParamConfig {
+ new() {
DisplayName = "Lookback Periods",
ParamName = "lookbackPeriods",
DataType = "int",
@@ -1426,7 +1426,7 @@ public static IEnumerable IndicatorList(string baseUrl)
}
},
Results = new List{
- new IndicatorResultConfig {
+ new() {
DisplayName = "MFI",
TooltipTemplate = "MFI([P1])",
DataName = "mfi",
@@ -1450,7 +1450,7 @@ public static IEnumerable IndicatorList(string baseUrl)
{
Thresholds = new List
{
- new ChartThreshold {
+ new() {
Value = 0,
Color = darkGrayTransparent,
Style = "dash"
@@ -1459,7 +1459,7 @@ public static IEnumerable IndicatorList(string baseUrl)
},
Parameters = new List
{
- new IndicatorParamConfig {
+ new() {
DisplayName = "Fast Periods",
ParamName = "fastPeriods",
DataType = "int",
@@ -1467,7 +1467,7 @@ public static IEnumerable IndicatorList(string baseUrl)
Minimum = 1,
Maximum = 200
},
- new IndicatorParamConfig {
+ new() {
DisplayName = "Slow Periods",
ParamName = "slowPeriods",
DataType = "int",
@@ -1475,7 +1475,7 @@ public static IEnumerable IndicatorList(string baseUrl)
Minimum = 1,
Maximum = 250
},
- new IndicatorParamConfig {
+ new() {
DisplayName = "Signal Periods",
ParamName = "signalPeriods",
DataType = "int",
@@ -1485,7 +1485,7 @@ public static IEnumerable IndicatorList(string baseUrl)
}
},
Results = new List{
- new IndicatorResultConfig {
+ new() {
DisplayName = "MACD",
TooltipTemplate = "MACD",
DataName = "macd",
@@ -1493,7 +1493,7 @@ public static IEnumerable IndicatorList(string baseUrl)
LineType = "solid",
DefaultColor = standardBlue
},
- new IndicatorResultConfig {
+ new() {
DisplayName = "Signal",
TooltipTemplate = "Signal",
DataName = "signal",
@@ -1501,7 +1501,7 @@ public static IEnumerable IndicatorList(string baseUrl)
LineType= "solid",
DefaultColor = standardRed
},
- new IndicatorResultConfig {
+ new() {
DisplayName = "Histogram",
TooltipTemplate = "Histogram",
DataName = "histogram",
@@ -1524,7 +1524,7 @@ public static IEnumerable IndicatorList(string baseUrl)
Parameters = new List
{
- new IndicatorParamConfig {
+ new() {
DisplayName = "Step Size",
ParamName= "accelerationStep",
DataType = "number",
@@ -1532,7 +1532,7 @@ public static IEnumerable IndicatorList(string baseUrl)
Minimum = 0.000001,
Maximum = 2500
},
- new IndicatorParamConfig {
+ new() {
DisplayName = "Max Factor",
ParamName= "maxAccelerationFactor",
DataType = "number",
@@ -1542,7 +1542,7 @@ public static IEnumerable IndicatorList(string baseUrl)
}
},
Results = new List{
- new IndicatorResultConfig {
+ new() {
DisplayName = "Parabolic SAR",
TooltipTemplate = "PSAR([P1],[P2])",
DataName = "sar",
@@ -1565,7 +1565,7 @@ public static IEnumerable IndicatorList(string baseUrl)
ChartType = "oscillator",
Parameters = new List
{
- new IndicatorParamConfig {
+ new() {
DisplayName = "Lookback Periods",
ParamName = "lookbackPeriods",
DataType = "int",
@@ -1573,7 +1573,7 @@ public static IEnumerable IndicatorList(string baseUrl)
Minimum = 1,
Maximum = 250
},
- new IndicatorParamConfig {
+ new() {
DisplayName = "SMA Periods",
ParamName = "smaPeriods",
DataType = "int",
@@ -1583,7 +1583,7 @@ public static IEnumerable IndicatorList(string baseUrl)
}
},
Results = new List{
- new IndicatorResultConfig {
+ new() {
DisplayName = "Rate of Change",
TooltipTemplate = "ROC([P1],[P2])",
DataName = "roc",
@@ -1591,7 +1591,7 @@ public static IEnumerable IndicatorList(string baseUrl)
LineType = "solid",
DefaultColor = standardBlue
},
- new IndicatorResultConfig {
+ new() {
DisplayName = "SMA of ROC",
TooltipTemplate = "STO %D([P2])",
DataName = "rocSma",
@@ -1618,7 +1618,7 @@ public static IEnumerable IndicatorList(string baseUrl)
Thresholds = new List
{
- new ChartThreshold {
+ new() {
Value = 70,
Color = thresholdRed,
Style = "dash",
@@ -1629,7 +1629,7 @@ public static IEnumerable IndicatorList(string baseUrl)
ColorBelow = thresholdGreen
}
},
- new ChartThreshold {
+ new() {
Value = 30,
Color = thresholdGreen,
Style = "dash",
@@ -1644,7 +1644,7 @@ public static IEnumerable IndicatorList(string baseUrl)
},
Parameters = new List
{
- new IndicatorParamConfig {
+ new() {
DisplayName = "Lookback Periods",
ParamName = "lookbackPeriods",
DataType = "int",
@@ -1654,7 +1654,7 @@ public static IEnumerable IndicatorList(string baseUrl)
}
},
Results = new List{
- new IndicatorResultConfig {
+ new() {
DisplayName = "RSI",
TooltipTemplate = "RSI([P1])",
DataName = "rsi",
@@ -1681,7 +1681,7 @@ public static IEnumerable IndicatorList(string baseUrl)
Thresholds = new List
{
- new ChartThreshold {
+ new() {
Value = 75,
Color = thresholdGreen,
Style = "solid",
@@ -1692,7 +1692,7 @@ public static IEnumerable IndicatorList(string baseUrl)
ColorBelow = thresholdGreen
}
},
- new ChartThreshold {
+ new() {
Value = 25,
Color = thresholdRed,
Style = "solid",
@@ -1707,7 +1707,7 @@ public static IEnumerable IndicatorList(string baseUrl)
},
Parameters = new List
{
- new IndicatorParamConfig {
+ new() {
DisplayName = "Cycle Periods",
ParamName = "cyclePeriods",
DataType = "int",
@@ -1715,7 +1715,7 @@ public static IEnumerable IndicatorList(string baseUrl)
Minimum = 1,
Maximum = 250
},
- new IndicatorParamConfig {
+ new() {
DisplayName = "Fast Periods",
ParamName = "fastPeriods",
DataType = "int",
@@ -1723,7 +1723,7 @@ public static IEnumerable IndicatorList(string baseUrl)
Minimum = 1,
Maximum = 250
},
- new IndicatorParamConfig {
+ new() {
DisplayName = "Slow Periods",
ParamName = "slowPeriods",
DataType = "int",
@@ -1733,7 +1733,7 @@ public static IEnumerable IndicatorList(string baseUrl)
}
},
Results = new List{
- new IndicatorResultConfig {
+ new() {
DisplayName = "Schaff Trend Cycle",
TooltipTemplate = "Schaff Trend Cycle",
DataName = "stc",
@@ -1755,7 +1755,7 @@ public static IEnumerable IndicatorList(string baseUrl)
ChartType = "oscillator",
Parameters = new List
{
- new IndicatorParamConfig {
+ new() {
DisplayName = "Lookback Periods",
ParamName = "lookbackPeriods",
DataType = "int",
@@ -1765,7 +1765,7 @@ public static IEnumerable IndicatorList(string baseUrl)
}
},
Results = new List{
- new IndicatorResultConfig {
+ new() {
DisplayName = "Slope",
TooltipTemplate = "SLOPE([P1])",
DataName = "slope",
@@ -1787,7 +1787,7 @@ public static IEnumerable IndicatorList(string baseUrl)
ChartType = "overlay",
Parameters = new List
{
- new IndicatorParamConfig {
+ new() {
DisplayName = "Lookback Periods",
ParamName = "lookbackPeriods",
DataType = "int",
@@ -1797,7 +1797,7 @@ public static IEnumerable IndicatorList(string baseUrl)
}
},
Results = new List{
- new IndicatorResultConfig {
+ new() {
DisplayName = "Linear Regression",
TooltipTemplate = "LINEAR([P1])",
DataName = "line",
@@ -1819,7 +1819,7 @@ public static IEnumerable IndicatorList(string baseUrl)
ChartType = "overlay",
Parameters = new List
{
- new IndicatorParamConfig {
+ new() {
DisplayName = "Lookback Periods",
ParamName = "lookbackPeriods",
DataType = "int",
@@ -1829,7 +1829,7 @@ public static IEnumerable IndicatorList(string baseUrl)
}
},
Results = new List{
- new IndicatorResultConfig {
+ new() {
DisplayName = "SMA",
TooltipTemplate = "SMA([P1])",
DataName = "sma",
@@ -1851,7 +1851,7 @@ public static IEnumerable IndicatorList(string baseUrl)
ChartType = "oscillator",
Parameters = new List
{
- new IndicatorParamConfig {
+ new() {
DisplayName = "Lookback Periods",
ParamName = "lookbackPeriods",
DataType = "int",
@@ -1859,7 +1859,7 @@ public static IEnumerable IndicatorList(string baseUrl)
Minimum = 1,
Maximum = 250
},
- new IndicatorParamConfig {
+ new() {
DisplayName = "SMA Periods",
ParamName = "smaPeriods",
DataType = "int",
@@ -1869,7 +1869,7 @@ public static IEnumerable IndicatorList(string baseUrl)
}
},
Results = new List{
- new IndicatorResultConfig {
+ new() {
DisplayName = "Standard Deviation",
TooltipTemplate = "STDEV([P1])",
DataName = "stdDev",
@@ -1877,7 +1877,7 @@ public static IEnumerable IndicatorList(string baseUrl)
LineType = "solid",
DefaultColor = standardBlue
},
- new IndicatorResultConfig {
+ new() {
DisplayName = "SMA of Standard Deviation",
TooltipTemplate = "STDEV([P1]) SMA",
DataName = "stdDevSma",
@@ -1899,7 +1899,7 @@ public static IEnumerable IndicatorList(string baseUrl)
ChartType = "oscillator",
Parameters = new List
{
- new IndicatorParamConfig {
+ new() {
DisplayName = "Lookback Periods",
ParamName = "lookbackPeriods",
DataType = "int",
@@ -1909,7 +1909,7 @@ public static IEnumerable IndicatorList(string baseUrl)
}
},
Results = new List{
- new IndicatorResultConfig {
+ new() {
DisplayName = "Z-Score",
TooltipTemplate = "Z-Score([P1])",
DataName = "zScore",
@@ -1932,7 +1932,7 @@ public static IEnumerable IndicatorList(string baseUrl)
Order = Order.BehindPrice,
Parameters = new List
{
- new IndicatorParamConfig {
+ new() {
DisplayName = "SMA Periods",
ParamName = "smaPeriods",
DataType = "int",
@@ -1940,7 +1940,7 @@ public static IEnumerable IndicatorList(string baseUrl)
Minimum = 1,
Maximum = 50
},
- new IndicatorParamConfig {
+ new() {
DisplayName = "Multiplier",
ParamName = "multiplier",
DataType = "number",
@@ -1948,7 +1948,7 @@ public static IEnumerable IndicatorList(string baseUrl)
Minimum = 1,
Maximum = 10
},
- new IndicatorParamConfig {
+ new() {
DisplayName = "ATR Periods",
ParamName = "atrPeriods",
DataType = "int",
@@ -1958,7 +1958,7 @@ public static IEnumerable IndicatorList(string baseUrl)
}
},
Results = new List{
- new IndicatorResultConfig {
+ new() {
DisplayName = "Upper Band",
TooltipTemplate = "STARC([P1],[P2],[P3]) Upper Band",
DataName = "upperBand",
@@ -1973,7 +1973,7 @@ public static IEnumerable IndicatorList(string baseUrl)
ColorBelow = darkGrayTransparent
}
},
- new IndicatorResultConfig {
+ new() {
DisplayName = "Centerline",
TooltipTemplate = "STARC([P1],[P2],[P3]) Centerline",
DataName = "centerline",
@@ -1982,7 +1982,7 @@ public static IEnumerable IndicatorList(string baseUrl)
LineWidth = 1,
DefaultColor = standardOrange
},
- new IndicatorResultConfig {
+ new() {
DisplayName = "Lower Band",
TooltipTemplate = "STARC([P1],[P2],[P3]) Lower Band",
DataName = "lowerBand",
@@ -2007,7 +2007,7 @@ public static IEnumerable IndicatorList(string baseUrl)
{
Thresholds = new List
{
- new ChartThreshold {
+ new() {
Value = 40,
Color = thresholdRed,
Style = "dash",
@@ -2018,7 +2018,7 @@ public static IEnumerable IndicatorList(string baseUrl)
ColorBelow = thresholdGreen
}
},
- new ChartThreshold {
+ new() {
Value = -40,
Color = thresholdGreen,
Style = "dash",
@@ -2033,7 +2033,7 @@ public static IEnumerable IndicatorList(string baseUrl)
},
Parameters = new List
{
- new IndicatorParamConfig {
+ new() {
DisplayName = "Lookback Periods",
ParamName = "lookbackPeriods",
DataType = "int",
@@ -2041,7 +2041,7 @@ public static IEnumerable IndicatorList(string baseUrl)
Minimum = 1,
Maximum = 300
},
- new IndicatorParamConfig {
+ new() {
DisplayName = "First Smooth Periods",
ParamName = "firstSmoothPeriods",
DataType = "int",
@@ -2049,7 +2049,7 @@ public static IEnumerable IndicatorList(string baseUrl)
Minimum = 1,
Maximum = 300
},
- new IndicatorParamConfig {
+ new() {
DisplayName = "Second Smooth Periods",
ParamName = "secondSmoothPeriods",
DataType = "int",
@@ -2057,7 +2057,7 @@ public static IEnumerable IndicatorList(string baseUrl)
Minimum = 1,
Maximum = 50
},
- new IndicatorParamConfig {
+ new() {
DisplayName = "Signal Periods",
ParamName = "signalPeriods",
DataType = "int",
@@ -2067,7 +2067,7 @@ public static IEnumerable IndicatorList(string baseUrl)
}
},
Results = new List{
- new IndicatorResultConfig {
+ new() {
DisplayName = "SMI",
TooltipTemplate = "SMI",
DataName = "smi",
@@ -2075,7 +2075,7 @@ public static IEnumerable