|
1 | 1 | //+------------------------------------------------------------------+ |
2 | 2 | //| Account Protector.mqh | |
3 | | -//| Copyright © 2017-2022, EarnForex.com | |
| 3 | +//| Copyright © 2017-2023, EarnForex.com | |
4 | 4 | //| https://www.earnforex.com/ | |
5 | 5 | //+------------------------------------------------------------------+ |
6 | 6 | #include "Defines.mqh" |
@@ -624,7 +624,7 @@ bool CAccountProtector::CreateObjects() |
624 | 624 | y += element_height + v_spacing; |
625 | 625 | if (!ButtonCreate(m_BtnNewSnapEquity, first_column_start, y, first_column_start + snap_button_width, y + element_height, "m_BtnNewSnapEquity", "New snapshot of equity")) return false; |
626 | 626 | if (!ButtonCreate(m_BtnNewSnapMargin, first_column_start + snap_button_width + h_spacing, y, panel_farther_end, y + element_height, "m_BtnNewSnapMargin", "New snapshot of free margin")) return false; |
627 | | - if (EnableEmergencyButton == Yes) |
| 627 | + if (EnableEmergencyButton) |
628 | 628 | { |
629 | 629 | y += element_height + 3 * v_spacing; |
630 | 630 | if (!ButtonCreate(m_BtnEmergency, first_column_start, y, panel_farther_end, y + (int)(element_height * 2.5), "m_BtnEmergency", "Emergency button")) return false; |
@@ -988,7 +988,7 @@ void CAccountProtector::MoveAndResize() |
988 | 988 | m_LblSnapMargin.Move(m_LblSnapMargin.Left(), ref_point + 2 * col_height); |
989 | 989 | m_BtnNewSnapEquity.Move(m_BtnNewSnapEquity.Left(), ref_point + 3 * col_height); |
990 | 990 | m_BtnNewSnapMargin.Move(m_BtnNewSnapMargin.Left(), ref_point + 3 * col_height); |
991 | | - if (EnableEmergencyButton == Yes) |
| 991 | + if (EnableEmergencyButton) |
992 | 992 | { |
993 | 993 | m_BtnEmergency.Move(m_BtnEmergency.Left(), ref_point + 4 * col_height); |
994 | 994 | ref_point = m_BtnEmergency.Top() + (int)MathRound(30 * m_DPIScale); |
@@ -4215,7 +4215,7 @@ void CAccountProtector::Logging_Current_Settings() |
4215 | 4215 | { |
4216 | 4216 | SilentLogging = true; |
4217 | 4217 | Logging("Logging Current Parameters:"); |
4218 | | - Logging("EnableEmergencyButton = " + EnumToString((Enable)EnableEmergencyButton)); |
| 4218 | + Logging("EnableEmergencyButton = " + IntegerToString(EnableEmergencyButton)); |
4219 | 4219 | Logging("sets.CountCommSwaps = " + (string)sets.CountCommSwaps); |
4220 | 4220 | Logging("sets.UseTimer = " + (string)sets.UseTimer); |
4221 | 4221 | Logging("sets.Timer = " + sets.Timer); |
|
0 commit comments