Compare commits
2 Commits
89f4ec6126
...
f8c83d40ab
Author | SHA1 | Date |
---|---|---|
|
f8c83d40ab | |
|
3a865a117a |
|
@ -965,7 +965,7 @@ INewPrice message, int windowMaxSize, decimal uptrendStartingDetectionMeanfullSt
|
||||||
if (mode == TradingMode.Stable && type == PositionType.Short)
|
if (mode == TradingMode.Stable && type == PositionType.Short)
|
||||||
{
|
{
|
||||||
takeProfitShift = 2.5m;
|
takeProfitShift = 2.5m;
|
||||||
stopLossShift = 5;
|
stopLossShift = 6;
|
||||||
}
|
}
|
||||||
if (mode == TradingMode.SlowDropping && type == PositionType.Short)
|
if (mode == TradingMode.SlowDropping && type == PositionType.Short)
|
||||||
{
|
{
|
||||||
|
@ -974,6 +974,7 @@ INewPrice message, int windowMaxSize, decimal uptrendStartingDetectionMeanfullSt
|
||||||
if (mode == TradingMode.SlowDropping && type == PositionType.Long)
|
if (mode == TradingMode.SlowDropping && type == PositionType.Long)
|
||||||
{
|
{
|
||||||
takeProfitShift = 1.5m;
|
takeProfitShift = 1.5m;
|
||||||
|
stopLossShift = 5;
|
||||||
}
|
}
|
||||||
if (mode == TradingMode.Dropping && type == PositionType.Short)
|
if (mode == TradingMode.Dropping && type == PositionType.Short)
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,17 +4,16 @@ namespace KLHZ.Trader.Core.Exchange.Utils
|
||||||
{
|
{
|
||||||
internal static class ExchangeScheduler
|
internal static class ExchangeScheduler
|
||||||
{
|
{
|
||||||
private readonly static TimeOnly _openTimeMain = new(6, 10);
|
private readonly static TimeOnly _openTimeMain = new(6, 15);
|
||||||
private readonly static TimeOnly _closeTimeMain = new(20, 45);
|
private readonly static TimeOnly _closeTimeMain = new(20, 00);
|
||||||
|
|
||||||
private readonly static TimeOnly _openTimeHoliday = new(7, 10);
|
private readonly static TimeOnly _openTimeHoliday = new(7, 10);
|
||||||
private readonly static TimeOnly _closeTimeHoliday = new(17, 45);
|
private readonly static TimeOnly _closeTimeHoliday = new(17, 45);
|
||||||
|
|
||||||
private readonly static TimeOnly _firstClearingStart = new(10, 45);
|
private readonly static TimeOnly _firstClearingStart = new(10, 40);
|
||||||
private readonly static TimeOnly _firstClearingEnd = new(11, 10);
|
private readonly static TimeOnly _firstClearingEnd = new(11, 20);
|
||||||
|
|
||||||
private readonly static TimeOnly _mainClearingStart = new(15, 45);
|
private readonly static TimeOnly _mainClearingStart = new(15, 40);
|
||||||
private readonly static TimeOnly _mainClearingEnd = new(16, 10);
|
private readonly static TimeOnly _mainClearingEnd = new(16, 20);
|
||||||
|
|
||||||
internal static ExchangeState GetCurrentState(DateTime? currentDt = null)
|
internal static ExchangeState GetCurrentState(DateTime? currentDt = null)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue