charts for Quantower
This commit is contained in:
Miha Kralj
2024-11-06 20:56:32 -08:00
parent 0bae9ce15b
commit 582a0256ec
75 changed files with 652 additions and 281 deletions
+6 -5
View File
@@ -16,6 +16,12 @@ public enum MaType
public static class IndicatorExtensions
{
public static readonly Color Averages = Color.FromArgb(255, 255, 128); // #FFFF80 - Yellow
public static readonly Color Volume = Color.FromArgb(128, 255, 128); // #80FF80 - Green
public static readonly Color Volatility = Color.FromArgb(255, 128, 128); // #FF8080 - Red
public static readonly Color Statistics = Color.FromArgb(128, 128, 255); // #8080FF - Blue
public static readonly Color Oscillators = Color.FromArgb(255, 128, 255); // #FF80FF - Magenta
public static readonly Color Momentum = Color.FromArgb(128, 255, 255); // #80FFFF - Cyan
public static TValue GetInputValue(this Indicator indicator, UpdateArgs args, SourceType source)
{
var historicalData = indicator.HistoricalData;
@@ -179,7 +185,6 @@ public static class IndicatorExtensions
}
}
public static void DrawText(this Indicator indicator, PaintChartEventArgs args, string text)
{
if (indicator.CurrentChart == null)
@@ -210,7 +215,3 @@ public static class IndicatorExtensions
};
}
}