Leverage Shortcut
This commit is contained in:
parent
e3fa7470b7
commit
d77923ae04
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue