Skip to content

Commit

Permalink
q
Browse files Browse the repository at this point in the history
  • Loading branch information
mihakralj committed Sep 23, 2024
1 parent d4a6c4b commit a794fc8
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Tests/test_Trady.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Trady.Analysis.Indicator;
using Trady.Core;
using Trady.Core.Infrastructure;
using QuanTAlib;
namespace QuanTAlib;

public class TradyTests
{
Expand Down
2 changes: 1 addition & 1 deletion Tests/test_Tulip.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Xunit;
using Tulip;
using QuanTAlib;
namespace QuanTAlib;

public class TulipTests
{
Expand Down
2 changes: 1 addition & 1 deletion Tests/test_consistency.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Xunit;
using QuanTAlib;
namespace QuanTAlib;

public class Consistency
{
Expand Down
2 changes: 1 addition & 1 deletion Tests/test_skender.stock.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Xunit;
using Skender.Stock.Indicators;
using QuanTAlib;
namespace QuanTAlib;

public class SkenderTests
{
Expand Down
2 changes: 1 addition & 1 deletion Tests/test_talib.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Xunit;
using TALib;
using QuanTAlib;
namespace QuanTAlib;

public class TAlibTests
{
Expand Down
2 changes: 1 addition & 1 deletion lib/averages/Jma.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public Jma(int period, double phase = 0, int vshort = 10)
_phase = Math.Clamp((phase * 0.01) + 1.5, 0.5, 2.5);

_values = new CircularBuffer(period);
_voltyShort = new CircularBuffer(vshort);
_voltyShort = new CircularBuffer(_vshort);
_vsumBuff = new CircularBuffer(_vlong);

Name = "JMA";
Expand Down
6 changes: 3 additions & 3 deletions quantower/Averages/_IndicatorBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ private void DrawSmoothCombinedCurve(Graphics gr, List<Point> allPoints, int hot
}
}
}
private DashStyle ConvertLineStyleToDashStyle(LineStyle lineStyle)
private static DashStyle ConvertLineStyleToDashStyle(LineStyle lineStyle)
{
return lineStyle switch
{
Expand All @@ -154,7 +154,7 @@ private DashStyle ConvertLineStyleToDashStyle(LineStyle lineStyle)
_ => DashStyle.Solid,
};
}
protected void DrawText(Graphics gr, string text, Rectangle clientRect)
protected static void DrawText(Graphics gr, string text, Rectangle clientRect)
{
Font font = new Font("Inter", 8);
SizeF textSize = gr.MeasureString(text, font);
Expand All @@ -164,7 +164,7 @@ protected void DrawText(Graphics gr, string text, Rectangle clientRect)
gr.FillRectangle(SystemBrushes.ControlDarkDark, textRect);
gr.DrawString(text, font, Brushes.White, new PointF(textRect.X + 6, textRect.Y + 5));
}
protected string GetName(int pType)
protected static string GetName(int pType)
{
return pType switch
{
Expand Down
6 changes: 3 additions & 3 deletions quantower/Statistics/_IndicatorBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ private void DrawSmoothCombinedCurve(Graphics gr, List<Point> allPoints, int hot
}
}
}
private DashStyle ConvertLineStyleToDashStyle(LineStyle lineStyle)
private static DashStyle ConvertLineStyleToDashStyle(LineStyle lineStyle)
{
return lineStyle switch
{
Expand All @@ -156,7 +156,7 @@ private DashStyle ConvertLineStyleToDashStyle(LineStyle lineStyle)
_ => DashStyle.Solid,
};
}
protected void DrawText(Graphics gr, string text, Rectangle clientRect)
protected static void DrawText(Graphics gr, string text, Rectangle clientRect)
{
Font font = new Font("Inter", 8);
SizeF textSize = gr.MeasureString(text, font);
Expand All @@ -166,7 +166,7 @@ protected void DrawText(Graphics gr, string text, Rectangle clientRect)
gr.FillRectangle(SystemBrushes.ControlDarkDark, textRect);
gr.DrawString(text, font, Brushes.White, new PointF(textRect.X + 6, textRect.Y + 5));
}
protected string GetName(int pType)
protected static string GetName(int pType)
{
return pType switch
{
Expand Down

0 comments on commit a794fc8

Please sign in to comment.