Compare commits

..

No commits in common. "42bc5780c1600bd09f38b9e534019edd18e3cf47" and "8b38421be4d7cb61750d090ceace2c9834bb5804" have entirely different histories.

2 changed files with 3 additions and 10 deletions

View File

@ -445,11 +445,7 @@ namespace KLHZ.Trader.Core.Exchange.Services
var sells = sberSells.Sum(s => s.Value);
var buys = sberBuys.Sum(s => s.Value);
var su = sells + buys;
if (su!=0)
{
var dsell = (sells / su - 0.5m) * 2;
}
var mavTask = CheckByWindowAverageMean(data, message, windowMaxSize, -1, 2m);

View File

@ -222,15 +222,12 @@ namespace KLHZ.Trader.Core.Exchange.Services
await AddData(price);
var cachedData = await GetData(price.Figi);
if ((DateTime.UtcNow - price.Time).TotalMinutes < 5)
{
if (ShapeAreaCalculator.TryGetAreasRelation(cachedData.timestamps, cachedData.prices, price.Value, Constants.AreasRelationWindow, out var rel))
{
await AddDataTo1MinuteWindowCache(price.Figi, Constants._1minCacheKey, new CachedValue() { Time = price.Time, Value = (decimal)rel });
}
}
}
}
_ = SyncPortfolioWorker();
_ = WritePricesTask();