Compare commits

..

2 Commits

Author SHA1 Message Date
vlad zverzhkhovskiy f8c83d40ab стопы
test / deploy_trader_prod (push) Successful in 2m11s Details
2025-09-29 14:53:15 +03:00
vlad zverzhkhovskiy 3a865a117a обновление расписания торгов 2025-09-29 14:15:53 +03:00
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 = 5;
stopLossShift = 6;
}
if (mode == TradingMode.SlowDropping && type == PositionType.Short)
{
@ -974,6 +974,7 @@ 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,17 +4,16 @@ namespace KLHZ.Trader.Core.Exchange.Utils
{
internal static class ExchangeScheduler
{
private readonly static TimeOnly _openTimeMain = new(6, 10);
private readonly static TimeOnly _closeTimeMain = new(20, 45);
private readonly static TimeOnly _openTimeMain = new(6, 15);
private readonly static TimeOnly _closeTimeMain = new(20, 00);
private readonly static TimeOnly _openTimeHoliday = new(7, 10);
private readonly static TimeOnly _closeTimeHoliday = new(17, 45);
private readonly static TimeOnly _firstClearingStart = new(10, 45);
private readonly static TimeOnly _firstClearingEnd = new(11, 10);
private readonly static TimeOnly _firstClearingStart = new(10, 40);
private readonly static TimeOnly _firstClearingEnd = new(11, 20);
private readonly static TimeOnly _mainClearingStart = new(15, 45);
private readonly static TimeOnly _mainClearingEnd = new(16, 10);
private readonly static TimeOnly _mainClearingStart = new(15, 40);
private readonly static TimeOnly _mainClearingEnd = new(16, 20);
internal static ExchangeState GetCurrentState(DateTime? currentDt = null)
{