Skip to content

Commit

Permalink
Chart reversing removed;
Browse files Browse the repository at this point in the history
  • Loading branch information
przemyslawbak committed Dec 8, 2024
1 parent 27d56d0 commit 0804f5f
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 16 deletions.
11 changes: 0 additions & 11 deletions Candlestick_Patterns/Formations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -794,17 +794,6 @@ public int GetFormationsSignalsCount(string formationName)
return GetFormationsSignalsList(methodName).Where(x => x.Signal == true).Count();
}

private List<ZigZagObject> GetCloseAndSignalsData(List<OhlcvObject> data)
{
var dataToShapeZigZag = data.Select(x => new ZigZagObject()
{
Signal = x.Signal,
Close = x.Close,
}).Reverse().ToList();

return dataToShapeZigZag;
}

public List<string> GetAllMethodNames()
{
List<string> methods = new List<string>();
Expand Down
2 changes: 1 addition & 1 deletion Candlestick_Patterns/SetPeaksVallyes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ internal static List<ZigZagObject> GetCloseAndSignalsData(List<OhlcvObject> data
{
Signal = x.Signal,
Close = x.Close,
}).Reverse().ToList();
}).ToList();

return dataToShapeZigZag;
}
Expand Down
2 changes: 1 addition & 1 deletion Examples_Patterns/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ static async Task Main(string[] args)
dataOhlcv = dataOhlcv.Where(x => x.Open != 0 && x.High != 0 && x.Low != 0 && x.Close != 0).ToList();

//ACCURACY TRIALS
var best = _accuracy.GetBestAccuracyFibo(dataOhlcv, 100, 300);
var best = _accuracy.GetBestAccuracyPatterns(dataOhlcv, 100, 450);

var accuracyPercentageSummary = _accuracy.GetAverPercentPatternAccuracy(dataOhlcv, "Bullish 3 Inside Up");
Console.WriteLine("Accuracy percentage summary comparing to end of data set result: {0}", accuracyPercentageSummary.AccuracyToEndClose);
Expand Down
2 changes: 1 addition & 1 deletion GraphMaker/FiboTester.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public async Task<List<ZigZagObject>> GetPoints(string patternName)
Low = x.Low,
Close = x.Close,
Volume = x.Volume,
}).Reverse().ToList();
}).ToList();


_fibonacci = new Fibonacci(dataOhlcv);
Expand Down
2 changes: 1 addition & 1 deletion GraphMaker/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
Low = x.Low,
Close = x.Close,
Volume = x.Volume,
}).Reverse().ToList();
}).ToList();

_fiboTester.ShowOnGraph(dataOhlcv, "BullishButterfly");

Expand Down
2 changes: 1 addition & 1 deletion README_NuGet.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ var dataOhlcv = JsonConvert.DeserializeObject<List<OhlcvObject>>(json).Select(x
Low = x.Low,
Close = x.Close,
Volume = x.Volume,
}).Reverse().ToList();
}).ToList();

var bullishCount = _signals.GetBullishSignalsCount(dataOhlcv);
Console.WriteLine("Bullish signals count: {0}", bullishCount);
Expand Down

0 comments on commit 0804f5f

Please sign in to comment.