Leverage Shortcut

This commit is contained in:
HojouFotytu 2020-01-02 00:33:31 +09:00
parent e3fa7470b7
commit d77923ae04
1 changed files with 7 additions and 0 deletions

View File

@ -224,6 +224,7 @@ namespace Core.ProfitTrailer
{
string result = strategyName;
string time = "";
string leverage = "";
string strategyLetter = "";
string strategyNameOnly = strategyName;
@ -244,6 +245,12 @@ namespace Core.ProfitTrailer
{
result = "CHANGE";
}
if (result.Contains("LEVERAGE"))
{
leverage = strategyName.Remove(0,10);
leverage = leverage.Remove(leverage.Length -1, 1);
result = leverage + " X";
}
// buy/sell strategies beginning with PT 2.3.3 contain the stragegy designation letter followed by a colon and space.
// remove the letter and colon, change to shortcut, then reapply the letter and colon