Compare commits

..

No commits in common. "f8c83d40ab1b713e930ed6098ec85350269c1288" and "89f4ec6126571ebf2a83fd759d57b6c7a551d9e4" have entirely different histories.

2 changed files with 8 additions and 8 deletions

View File

@ -965,7 +965,7 @@ INewPrice message, int windowMaxSize, decimal uptrendStartingDetectionMeanfullSt
if (mode == TradingMode.Stable && type == PositionType.Short)
{
takeProfitShift = 2.5m;
stopLossShift = 6;
stopLossShift = 5;
}
if (mode == TradingMode.SlowDropping && type == PositionType.Short)
{
@ -974,7 +974,6 @@ INewPrice message, int windowMaxSize, decimal uptrendStartingDetectionMeanfullSt
if (mode == TradingMode.SlowDropping && type == PositionType.Long)
{
takeProfitShift = 1.5m;
stopLossShift = 5;
}
if (mode == TradingMode.Dropping && type == PositionType.Short)
{

View File

@ -4,16 +4,17 @@ namespace KLHZ.Trader.Core.Exchange.Utils
{
internal static class ExchangeScheduler
{
private readonly static TimeOnly _openTimeMain = new(6, 15);
private readonly static TimeOnly _closeTimeMain = new(20, 00);
private readonly static TimeOnly _openTimeMain = new(6, 10);
private readonly static TimeOnly _closeTimeMain = new(20, 45);
private readonly static TimeOnly _openTimeHoliday = new(7, 10);
private readonly static TimeOnly _closeTimeHoliday = new(17, 45);
private readonly static TimeOnly _firstClearingStart = new(10, 40);
private readonly static TimeOnly _firstClearingEnd = new(11, 20);
private readonly static TimeOnly _firstClearingStart = new(10, 45);
private readonly static TimeOnly _firstClearingEnd = new(11, 10);
private readonly static TimeOnly _mainClearingStart = new(15, 40);
private readonly static TimeOnly _mainClearingEnd = new(16, 20);
private readonly static TimeOnly _mainClearingStart = new(15, 45);
private readonly static TimeOnly _mainClearingEnd = new(16, 10);
internal static ExchangeState GetCurrentState(DateTime? currentDt = null)
{