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 a cTrader version of Trailing Stop on Profit.
2. Added chart corner selection for the panel.
3. Added font size selection for the panel.
4. Added automatic scaling for Hi-DPI screens.
5. Fixed a compilation error in newer builds of MT5.
6. Changed how autotrading status is detected and reported. The EA will now be more specific.
MessageBox("Automated trading is disabled in the platform's options! Please enable it via Tools->Options->Expert Advisors.", "WARNING", MB_OK);
300
+
return;
301
+
}
302
+
if (!MQLInfoInteger(MQL_TRADE_ALLOWED))
285
303
{
286
-
MessageBox("You need to first enable Autotrading in your MetaTrader options", "WARNING", MB_OK);
304
+
MessageBox("Live Trading is disabled in the expert advisors's settings! Please tick the Allow Live Trading checkbox on the Common tab.", "WARNING", MB_OK);
if (MQLInfoInteger(MQL_TRADE_ALLOWED)) EnableTrailing = true;
300
-
else
313
+
if (!TerminalInfoInteger(TERMINAL_TRADE_ALLOWED))
314
+
{
315
+
MessageBox("Algorithmic trading is disabled in the platform's options! Please enable it via Tools->Options->Expert Advisors.", "WARNING", MB_OK);
316
+
return;
317
+
}
318
+
if (!MQLInfoInteger(MQL_TRADE_ALLOWED))
301
319
{
302
-
MessageBox("You need to first enable Autotrading in your MetaTrader options", "WARNING", MB_OK);
320
+
MessageBox("Algo Trading is disabled in the Position Sizer's settings! Please tick the Allow Algo Trading checkbox on the Common tab.", "WARNING", MB_OK);
0 commit comments