Questions from Beginners MQL5 MT5 MetaTrader 5 - page 182

 
TheXpert:
Hmm, what's "highlighting user functions"? I think it's all there...
User-defined function names are recognised and highlighted as "text" rather than "function".
 
LDA:
Good afternoon, dear friends. I am having a hard time understanding the EA's optimisation parameters. I am trying to change any of the parameters in the EA properties, for example, Max drawdown, but after changing the parameter it comes back to the default value of 70. How can I change it to, for example, 30?
Enter a value, press Enter
 

Please tell me what I'm doing wrong.

I am making a function to change an open order under a certain condition.

I am trying to find out the current ask and bid.

В начало советника добавил

#include <Trade\SymbolInfo.mqh>

 

Внутри функции вписал:

CSymbolInfo       m_symbol;

m_symbol.Name(_Symbol);

 

Вставляю свои аск и бид через m_symbol.Bid() и m_symbol.Ask()

Но в них не текущие значения, а что-то типа «2.122011975567699 e-314»

Please tell me how to do it right.

 
vortex_vt:

Please tell me what I'm doing wrong.

I am making a function to change an open order under a certain condition.

I am trying to find out the current ask and bid.

Please tell me how to do it right.

double BidPrice=SymbolInfoDouble(_Symbol,SYMBOL_BID);
double AskPrice=SymbolInfoDouble(_Symbol,SYMBOL_ASK);
 
vortex_vt:

Please tell me what I'm doing wrong.

I am making a function to change an open order under a certain condition.

I am trying to find out the current ask and bid.

Please tell me how to do it right.

Before retrieving the bid and/or ask values in the function, you must call
m_symbol.RefreshRates();
 
Hello. I can't figure out how the tick indicator works. It just draws dice and then candles. Thank you
Files:
 
Stanislavsky:
Hello. I can't figure out how the tick indicator works. It just draws dice and then candles. Thank you

You are writing to the wrong forum. You should be on this one.

MQL4: форум по механическим торговым системам и тестированию стратегий
  • www.mql5.com
MQL4: форум по механическим торговым системам и тестированию стратегий
 
Good day all, Could you please tell me where on the site FAQ for dummies, and if not, how to put the EA on the chart window MT-4. Thanks
 
Egorka:
Good day all, Can you please tell me where on the site is the FAQ for dummies, and if not, how to put the EA on the MT-4 chart window. Thanks

Dear and you to another forum.

MQL4: форум по механическим торговым системам и тестированию стратегий
  • www.mql5.com
MQL4: форум по механическим торговым системам и тестированию стратегий
 
Egorka:


... How to put an EA on an MT-4 chart window. Thank you

Regardless of the terminal version, drag and drop to the chart window.
Reason: