You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Added an input parameter StartPanelMinimized.
2. Added ATRCandle input parameter.
3. Fixed a compatibility bug with other panels.
4. Fixed a bug in portfolio risk calculation.
5. Fixed a bug that caused very large values in extra TP edit fields.
6. Fixed a minor glitch with extra TP lines.
7. Fixed a bug that caused the PSC-Trader script (version 1.14) to open a trade without stop-loss.
8. Fixed a bug in the PSC-Trader script that caused opening trades with random volume.
9. Renamed input parameters UseFixedSLDistance and UseFixedTPDistance to SLDistanceInPoints and TPDistanceInPoints.
MathSrand(GetTickCount() + 293029); // Used by CreateInstanceId() in Dialog.mqh (standard library). Keep the second number unique across other panel indicators/EAs.
// No ini file - move the panel according to the inputs.
215
+
// No ini file - move the panel according to the inputs.
218
216
if (!FileIsExist(filename)) Dont_Move_the_Panel_to_Default_Corner_X_Y = false;
219
217
220
218
ExtDialog.IniFileLoad();
221
219
ExtDialog.Run();
222
220
223
221
Initialization();
224
222
225
-
// Brings panel on top of other objects without actual maximization of the panel.
223
+
// Brings panel on top of other objects without actual maximization of the panel.
226
224
ExtDialog.HideShowMaximize();
227
225
228
226
if (!Dont_Move_the_Panel_to_Default_Corner_X_Y)
@@ -253,6 +251,19 @@ int OnInit()
253
251
ExtDialog.FixatePanelPosition(); // Remember the panel's new position for the INI file.
254
252
}
255
253
254
+
if ((StartPanelMinimized) && (!ExtDialog.IsMinimized()) && (!Dont_Move_the_Panel_to_Default_Corner_X_Y)) // Minimize only if needs minimization. We check Dont_Move_the_Panel_to_Default_Corner_X_Y to make sure we didn't load an INI-file. An INI-file already contains a more preferred state for the panel.
255
+
{
256
+
// No access to the minmax button, no way to edit the chart height.
257
+
// Dummy variables for passing as references.
258
+
longlparam = 0;
259
+
doubledparam = 0;
260
+
stringsparam = "";
261
+
// Increasing the height of the panel beyond that of the chart will trigger its minimization.
0 commit comments