Disliked{quote} {quote} Hello Severus, please specify exactly where to place this code and/or what code must be replaced. Thank you!Ignored
double equityDifference = max_equity - AccountEquity();
if (max_equity != 0) {
double equityPercentage = equityDifference / max_equity * 100;
string panelText1 = "DD: -" + DoubleToString(equityDifference, 2) + " " + ter_currencySymbol + " (-" + DoubleToString(equityPercentage, 2) + " %)";
Write("panel_1_10", panelText1, 5, 190, "Roboto Condensed", 14, clrGold);
string panelText2 = "Max: " + DoubleToString(max_float, 2) + " " + ter_currencySymbol + " (" + DoubleToString(max_float / max_equity * 100, 2) + " %)";
Write("panel_1_11", panelText2, 5, 213, "Roboto Condensed", 11, clrDarkGoldenrod);
} else {
string panelText1 = "DD: -" + DoubleToString(equityDifference, 2) + " " + ter_currencySymbol + " (-100.00 %)";
Write("panel_1_10", panelText1, 5, 190, "Roboto Condensed", 14, clrGold);
string panelText2 = "Max: " + DoubleToString(max_float, 2) + " " + ter_currencySymbol + " (100.00 %)";
Write("panel_1_11", panelText2, 5, 213, "Roboto Condensed", 11, clrDarkGoldenrod);
}