Errors, bugs, questions - page 877

 
Alex5757000: is it possible to know from an Expert Advisor that testing is running in visual mode?

MQL5_VISUAL_MODE

Sign of a running program in visual testing mode.

bool

 
Yedelkin:

MQL5_VISUAL_MODE

Sign of running program in visual testing mode.

bool

Thank you! This is exactly what I was looking for.
 
Yedelkin:

MQL5_VISUAL_MODE

Sign of a running program in visual testing mode.

bool

Is this parameter available in the standard library? I can't find it.
 
Alex5757000: Is this parameter available in the standard library? I can't find it...
Who knows :) It's definitely in the Reference Library. If you want to scour the Standard Library, open the editor, press Ctrl+Shift+F and search the whole catalogue.
 
Alex5757000:
Is this parameter available in the standard library? I can't find it...
No. There is no wrapper class for MQL-program properties in the standard library.
Документация по MQL5: Стандартная библиотека
Документация по MQL5: Стандартная библиотека
  • www.mql5.com
Стандартная библиотека - Документация по MQL5
 
Alex5757000:
Is this parameter available in the standard library? I can't find it.
if(MQL5InfoInteger(MQL5_TESTER)) Print(" TESTER");
 

Question: Can I get the Equity/Balance value of the trading account on the history from the EA? For example, do I need to know if in the last 2 days the balance was higher than the current one? I.e. is there a drawdown of the balance? How it can be done?

My comments and suggestions are very important.

 
Alex5757000:

Question: Can I get the Equity/Balance value of the trading account on the history from the EA? For example, do I need to know if in the last 2 days the balance was higher than the current one? I.e. is there a drawdown of the balance? How it can be done?

My comments and suggestions are very important.

What's not to calculate the total balance?
 
Vladon:
what's not the answer to calculating the overall balance?
What do you mean by "overall balance"?
 
Alex5757000:
what do you mean by "total balance"?

Well, let's say there is an array of trades, and it also has a balance of deposits and withdrawals. IMHO.