Fix High/Low price zero in the YahooLatestPrice feed.

This commit is contained in:
2024-03-20 06:53:21 -04:00
parent 9ff7b7b1b8
commit 5c0ee93e6c
15 changed files with 75 additions and 11 deletions

View File

@@ -4926,6 +4926,14 @@ namespace MarketData.Helper
if(double.IsNaN(price.Open))price.Open=0.00;
if(double.IsNaN(price.Low))price.Low=0.00;
if(double.IsNaN(price.High))price.High=0.00;
if(0==price.High && !double.IsNaN(price.Close) && 0!=price.Close)
{
price.High=price.Close;
}
if(0==price.Low && !double.IsNaN(price.Close) && 0!=price.Close)
{
price.Low=price.Close;
}
if(0!=price.Close&&0==price.Open&&0==price.High&&0==price.Low)
{
price.Open=price.High=price.Low=price.Close;