Compare commits
No commits in common. "42bc5780c1600bd09f38b9e534019edd18e3cf47" and "8b38421be4d7cb61750d090ceace2c9834bb5804" have entirely different histories.
42bc5780c1
...
8b38421be4
|
@ -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 dsell = (sells / su - 0.5m) * 2;
|
||||
|
||||
|
||||
var mavTask = CheckByWindowAverageMean(data, message, windowMaxSize, -1, 2m);
|
||||
|
|
|
@ -222,12 +222,9 @@ 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))
|
||||
{
|
||||
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 });
|
||||
}
|
||||
await AddDataTo1MinuteWindowCache(price.Figi, Constants._1minCacheKey, new CachedValue() { Time = price.Time, Value = (decimal)rel });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue