Target Profit
This commit is contained in:
parent
c76aa34790
commit
929fb27f3e
|
@ -206,6 +206,8 @@
|
|||
<td>@Html.Raw(buyStrategyText)</td>
|
||||
<td>@Html.Raw(sellStrategyText)</td>
|
||||
|
||||
@if (!sellStrategyText.Contains("WATCHMODE"))
|
||||
{
|
||||
@if (sellStrategyText.Contains("CROSSED"))
|
||||
// if leverage, recalculate profit target
|
||||
{
|
||||
|
@ -228,6 +230,10 @@
|
|||
double leverageTargetGain = leverageValue * dcaLogEntry.TargetGainValue.Value;
|
||||
<td class="@Html.Raw((dcaLogEntry.TargetGainValue.HasValue && (dcaLogEntry.ProfitPercent > dcaLogEntry.TargetGainValue.Value)) ? "text-success" : "text-danger")">@Html.Raw(dcaLogEntry.TargetGainValue.HasValue ? leverageTargetGain.ToString("#,#0.00", new System.Globalization.CultureInfo("en-US")) + "%" : " ")</td>
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@if (!@lostValue)
|
||||
{
|
||||
<td class="text-autocolor">@dcaLogEntry.ProfitPercent.ToString("#,#0.00", new System.Globalization.CultureInfo("en-US"))%</td>
|
||||
|
|
Loading…
Reference in New Issue