DataProcessor Add Green for K and L bands
Some checks failed
Build .NET Project / build (push) Has been cancelled

This commit is contained in:
2026-03-12 09:06:00 -04:00
parent 1b2bcf678c
commit 355a3b8580
2 changed files with 12 additions and 5 deletions

View File

@@ -9,7 +9,8 @@
export DOTNET_ROOT=/opt/dotnet export DOTNET_ROOT=/opt/dotnet
CNNDAYCOUNT=90 CNNDAYCOUNT=90
VERSION=05 #VERSION=05
VERSION=06
USEMAXPOSITIONBUCKETWEIGHT=TRUE USEMAXPOSITIONBUCKETWEIGHT=TRUE
USEMAXPOSITIONBUCKETWEIGHTMAXWEIGHT=.65 USEMAXPOSITIONBUCKETWEIGHTMAXWEIGHT=.65
USEOVEREXTENDEDINDICATOR=TRUE USEOVEREXTENDEDINDICATOR=TRUE

View File

@@ -13,6 +13,7 @@ namespace MarketData.CNNProcessing
private readonly SKColor colorBlack = new SKColor(0,0,0); private readonly SKColor colorBlack = new SKColor(0,0,0);
private readonly SKColor colorWhite = new SKColor(255,255,255); private readonly SKColor colorWhite = new SKColor(255,255,255);
private readonly SKColor colorRed = new SKColor(255,0,0); private readonly SKColor colorRed = new SKColor(255,0,0);
private readonly SKColor colorGreen = new SKColor(0,255,0);
public DataProcessor(int width=640,int height=480) public DataProcessor(int width=640,int height=480)
{ {
@@ -21,6 +22,7 @@ namespace MarketData.CNNProcessing
PenWidth=2f; PenWidth=2f;
DrawingBrush = colorBlack; DrawingBrush = colorBlack;
DrawingBrushRed = colorRed; DrawingBrushRed = colorRed;
DrawingBrushGreen = colorGreen;
FillBrush = colorWhite; FillBrush = colorWhite;
DrawPrice=true; DrawPrice=true;
UseGrayScale=false; UseGrayScale=false;
@@ -66,6 +68,12 @@ namespace MarketData.CNNProcessing
///<param name="value">Gets/Sets the drawing brush brush</param> ///<param name="value">Gets/Sets the drawing brush brush</param>
public SKColor DrawingBrushRed{get;set;} public SKColor DrawingBrushRed{get;set;}
/// <summary>
/// DrawingBrushGreen
/// </summary>
///<param name="value">Gets/Sets the drawing brush brush</param>
public SKColor DrawingBrushGreen{get;set;}
/// <summary> /// <summary>
/// DrawBlack /// DrawBlack
/// </summary> /// </summary>
@@ -323,8 +331,6 @@ namespace MarketData.CNNProcessing
float maxX=close.Length; float maxX=close.Length;
float minX=0.00f; float minX=0.00f;
// Pen pen=new Pen(DrawingBrush,penWidth);
// Pen redPen=new Pen(DrawingBrushRed,penWidth);
ImageHelper imageHelper=new ImageHelper(); ImageHelper imageHelper=new ImageHelper();
PointMapping pointMapping=new PointMapping(Width,Height,maxX,minX,maxY,minY); PointMapping pointMapping=new PointMapping(Width,Height,maxX,minX,maxY,minY);
@@ -338,10 +344,10 @@ namespace MarketData.CNNProcessing
if(DrawPrice)imageHelper.DrawSeries(DrawingBrush,penWidth,close); if(DrawPrice)imageHelper.DrawSeries(DrawingBrush,penWidth,close);
// draw k // draw k
imageHelper.DrawSeries(DrawingBrush,penWidth,k); imageHelper.DrawSeries(DrawingBrushGreen,penWidth,k);
// draw l // draw l
imageHelper.DrawSeries(DrawingBrush,penWidth,l); imageHelper.DrawSeries(DrawingBrushGreen,penWidth,l);
if(0.00!=noise)imageHelper.AddNoise(NoiseColor,noise); if(0.00!=noise)imageHelper.AddNoise(NoiseColor,noise);
if(testCase.TypeOutput.Equals(TestCase.OutputType.OutputFile)) if(testCase.TypeOutput.Equals(TestCase.OutputType.OutputFile))