Skip to content

Commit 0a2f3b3

Browse files
committed
Fix indicator doc paths, drop net6.0 targets, add compat shims
- Fix [Doc] attribute paths for 9 indicators to match new doc structure - Remove net6.0 from all target frameworks (keep net10.0 only) - Add IndicatorCompat and Strategy_Compat compatibility shims - Update .gitignore
1 parent caa5400 commit 0a2f3b3

16 files changed

Lines changed: 101 additions & 15 deletions

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,5 +197,8 @@ Documentation.shfbproj_Ivan
197197

198198
.vs/
199199

200+
.claude
200201
CLAUDE.md
202+
AGENTS.md
201203
/reviewResults
204+
nul

Algo.Indicators/ElderForceIndex.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace StockSharp.Algo.Indicators;
88
Name = LocalizedStrings.ElderForceIndexKey,
99
Description = LocalizedStrings.ElderForceIndexDescriptionKey)]
1010
[IndicatorIn(typeof(CandleIndicatorValue))]
11-
[Doc("topics/indicators/elder_force_index.html")]
11+
[Doc("topics/api/indicators/list_of_indicators/elder_force_index.html")]
1212
public class ElderForceIndex : ExponentialMovingAverage
1313
{
1414
private decimal _prevClose;

Algo.Indicators/IndicatorCompat.cs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
namespace StockSharp.Algo.Indicators;
2+
3+
using System;
4+
5+
/// <summary>
6+
/// Compatibility extension methods for indicators.
7+
/// </summary>
8+
public static class IndicatorCompatExtensions
9+
{
10+
/// <summary>
11+
/// Process a decimal value through the indicator.
12+
/// </summary>
13+
public static IIndicatorValue Process(this IIndicator indicator, decimal value)
14+
=> indicator.Process(new DecimalIndicatorValue(indicator, value, DateTime.UtcNow));
15+
16+
/// <summary>
17+
/// Process a decimal value through the indicator with a specific time.
18+
/// </summary>
19+
public static IIndicatorValue Process(this IIndicator indicator, decimal value, DateTime time)
20+
=> indicator.Process(new DecimalIndicatorValue(indicator, value, time));
21+
}

Algo.Indicators/LinearRegressionForecast.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace StockSharp.Algo.Indicators;
77
ResourceType = typeof(LocalizedStrings),
88
Name = LocalizedStrings.LinearRegressionForecastKey,
99
Description = LocalizedStrings.LinearRegressionForecastDescriptionKey)]
10-
[Doc("topics/indicators/linear_regression_forecast.html")]
10+
[Doc("topics/api/indicators/list_of_indicators/linear_regression_forecast.html")]
1111
public class LinearRegressionForecast : DecimalLengthIndicator
1212
{
1313
/// <summary>

Algo.Indicators/PositiveVolumeIndex.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace StockSharp.Algo.Indicators;
88
Name = LocalizedStrings.PVIKey,
99
Description = LocalizedStrings.PositiveVolumeIndexKey)]
1010
[IndicatorIn(typeof(CandleIndicatorValue))]
11-
[Doc("topics/indicators/positive_volume_index.html")]
11+
[Doc("topics/api/indicators/list_of_indicators/positive_volume_index.html")]
1212
public class PositiveVolumeIndex : BaseIndicator
1313
{
1414
private decimal _prevClose;

Algo.Indicators/PriceChannels.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace StockSharp.Algo.Indicators;
88
Name = LocalizedStrings.PriceChannelsKey,
99
Description = LocalizedStrings.PriceChannelsDescriptionKey)]
1010
[IndicatorIn(typeof(CandleIndicatorValue))]
11-
[Doc("topics/indicators/price_channels.html")]
11+
[Doc("topics/api/indicators/list_of_indicators/price_channels.html")]
1212
[IndicatorOut(typeof(IPriceChannelsValue))]
1313
public class PriceChannels : BaseComplexIndicator<IPriceChannelsValue>
1414
{

Algo.Indicators/PriceVolumeTrend.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ namespace StockSharp.Algo.Indicators;
44
/// Price Volume Trend (PVT).
55
/// </summary>
66
/// <remarks>
7-
/// https://doc.stocksharp.com/topics/api/indicators/list_of_indicators/pvt.html
7+
/// https://doc.stocksharp.com/topics/api/indicators/list_of_indicators/price_volume_trend.html
88
/// </remarks>
99
[Display(
1010
ResourceType = typeof(LocalizedStrings),
1111
Name = LocalizedStrings.PVTKey,
1212
Description = LocalizedStrings.PriceVolumeTrendKey)]
1313
[IndicatorIn(typeof(CandleIndicatorValue))]
14-
[Doc("topics/api/indicators/list_of_indicators/pvt.html")]
14+
[Doc("topics/api/indicators/list_of_indicators/price_volume_trend.html")]
1515
public class PriceVolumeTrend : BaseIndicator
1616
{
1717
private decimal _pvt;

Algo.Indicators/TypicalPrice.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace StockSharp.Algo.Indicators;
88
Name = LocalizedStrings.TypicalPriceKey,
99
Description = LocalizedStrings.TypicalPriceDescriptionKey)]
1010
[IndicatorIn(typeof(CandleIndicatorValue))]
11-
[Doc("topics/indicators/typical_price.html")]
11+
[Doc("topics/api/indicators/list_of_indicators/typical_price.html")]
1212
public class TypicalPrice : BaseIndicator
1313
{
1414
/// <summary>

Algo.Indicators/VariableMovingAverage.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ namespace StockSharp.Algo.Indicators;
44
/// Variable Moving Average (VMA).
55
/// </summary>
66
/// <remarks>
7-
/// https://doc.stocksharp.com/topics/api/indicators/list_of_indicators/vma.html
7+
/// https://doc.stocksharp.com/topics/api/indicators/list_of_indicators/variable_moving_average.html
88
/// </remarks>
99
[Display(
1010
ResourceType = typeof(LocalizedStrings),
1111
Name = LocalizedStrings.VMAKey,
1212
Description = LocalizedStrings.VariableMovingAverageKey)]
13-
[Doc("topics/api/indicators/list_of_indicators/vma.html")]
13+
[Doc("topics/api/indicators/list_of_indicators/variable_moving_average.html")]
1414
public class VariableMovingAverage : DecimalLengthIndicator
1515
{
1616
private readonly StandardDeviation _stdDev;

Algo.Indicators/VolumeWeightedAveragePrice.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace StockSharp.Algo.Indicators;
88
Name = LocalizedStrings.VWAPKey,
99
Description = LocalizedStrings.VolumeWeightedAveragePriceKey)]
1010
[IndicatorIn(typeof(CandleIndicatorValue))]
11-
[Doc("topics/indicators/volume_weighted_average_price.html")]
11+
[Doc("topics/api/indicators/list_of_indicators/volume_weighted_average_price.html")]
1212
public class VolumeWeightedAveragePrice : BaseIndicator
1313
{
1414
private decimal _cumulativePriceVolume;

0 commit comments

Comments
 (0)