обновление стопов
test / deploy_trader_prod (push) Successful in 2m9s
Details
test / deploy_trader_prod (push) Successful in 2m9s
Details
parent
fa9661c2c5
commit
4dc37f4bbc
|
@ -706,37 +706,37 @@ INewPrice message, int windowMaxSize, decimal uptrendStartingDetectionMeanfullSt
|
|||
private (decimal stopLoss, decimal takeProfit) GetStops(INewPrice message, PositionType type)
|
||||
{
|
||||
var mode = TradingModes[message.Figi];
|
||||
decimal stopLossShift = 4;
|
||||
decimal takeProfitShift = 2;
|
||||
decimal stopLossShift = 10;
|
||||
decimal takeProfitShift = 5;
|
||||
if (mode == TradingMode.Growing && type == PositionType.Long)
|
||||
{
|
||||
stopLossShift = 5;
|
||||
stopLossShift = 10;
|
||||
takeProfitShift = 15;
|
||||
}
|
||||
if (mode == TradingMode.Growing && type == PositionType.Short)
|
||||
{
|
||||
stopLossShift = 2;
|
||||
stopLossShift = 10;
|
||||
takeProfitShift = 2;
|
||||
}
|
||||
if (mode == TradingMode.Stable && type == PositionType.Long)
|
||||
{
|
||||
stopLossShift = 8;
|
||||
takeProfitShift = 3;
|
||||
stopLossShift = 10;
|
||||
takeProfitShift = 2.5m;
|
||||
}
|
||||
if (mode == TradingMode.Stable && type == PositionType.Short)
|
||||
{
|
||||
stopLossShift = 5;
|
||||
takeProfitShift = 2;
|
||||
stopLossShift = 10;
|
||||
takeProfitShift = 2.5m;
|
||||
}
|
||||
if (mode == TradingMode.SlowDropping && type == PositionType.Short)
|
||||
{
|
||||
stopLossShift = 5;
|
||||
takeProfitShift = 2;
|
||||
stopLossShift = 10;
|
||||
takeProfitShift = 2.5m;
|
||||
}
|
||||
if (mode == TradingMode.SlowDropping && type == PositionType.Long)
|
||||
{
|
||||
stopLossShift = 6;
|
||||
takeProfitShift = 2;
|
||||
stopLossShift = 10;
|
||||
takeProfitShift = 1.5m;
|
||||
}
|
||||
if (mode == TradingMode.Dropping && type == PositionType.Short)
|
||||
{
|
||||
|
@ -745,8 +745,8 @@ INewPrice message, int windowMaxSize, decimal uptrendStartingDetectionMeanfullSt
|
|||
}
|
||||
if (mode == TradingMode.Dropping && type == PositionType.Long)
|
||||
{
|
||||
stopLossShift = 4;
|
||||
takeProfitShift = 2;
|
||||
stopLossShift = 10;
|
||||
takeProfitShift = 1.5m;
|
||||
}
|
||||
return (stopLossShift, takeProfitShift);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue