Questions from Beginners MQL5 MT5 MetaTrader 5 - page 1000
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Where can I find an option in the terminal to start creating, auxiliary indicators that are not linked to the open chart?
All you need to do when creating a HANDLE indicator is to specify the desired timeframe and symbol. For exampleiRSI indicator:
All you need to do when creating a HANDLE indicator is to specify the desired timeframe and symbol. For exampleiRSI indicator:
No, I mean it. I think Renat said in some post about creating auxiliary, not tied to chart EAs or something like that.
No, that's what I mean. I think Renat said in some post about creating auxiliary, non-charted EAs or something like that.
It's called Services. We don't have them yet.
I have a working function under MT4 which checks server availability before placing order (parameter bool refreshrates - refresh quotes and int count - number of checks with pause if server is not available, result returns false - can trade, true server is not available. i.e. it is convenient to use if(ServerDisable() return;):
Help me to rewrite correctly this construction for MT5, it's calledTerminalInfoInteger() request parameters in MT5 help (i.e. I'm looking for analogy in MT5 to standard MT4 functions IsConnected(), IsTradeAllowed()... ) and how to execute RefreshRates() ?
I have a working function under MT4 which checks server availability before placing order (parameter bool refreshrates - refresh quotes and int count - number of checks with pause if server is not available, result returns false - can trade, true server is not available. i.e. it is convenient to use if(ServerDisable() return;):
Help me to rewrite correctly this construction for MT5, it's called TerminalInfoInteger() request parameters in MT5 help (i.e. I'm looking for analogy in MT5 to standard MT4 functions IsConnected(), IsTradeAllowed()... ) and how to execute RefreshRates() ?
I only use this one and it seems to be enough.
TerminalInfoInteger(TERMINAL_CONNECTED)
I only use this one, it seems to suffice
TerminalInfoInteger(TERMINAL_CONNECTED)
I don't want to discuss tricky brokers, the construction I showed above provides placing of an order, as well as exit from OnTick() when a tick comes, if on that tick there is no possibility to work with orders
I need exact analogues for MT5 fts: IsConnected()(TerminalInfoInteger(TERMINAL_CONNECTED) - confirmed ), IsTradeAllowed() , IsTradeContextBusy() , RefreshRates()
I don't want to discuss tricky brokers, the construction I showed above provides placing orders, as well as on tick to exit OnTick() if on this tick there is no possibility to work with orders
I need exact analogues for the MT5 functions: IsConnected()(TerminalInfoInteger(TERMINAL_CONNECTED) - confirmed), IsTradeAllowed() , IsTradeContextBusy() , RefreshRates()
IsTradeContextBusy() can be excluded, the fifth thread is always free
RefreshRates() is updating of predefined Ask/Bid variables.
then prices will always be up-to-date
I don't want to discuss tricky brokers, the construction I showed above provides placing orders, as well as on tick to exit OnTick() if on this tick there is no possibility to work with orders
I need exact analogues for MT5 fts: IsConnected()(TerminalInfoInteger(TERMINAL_CONNECTED) - confirmed), IsTradeAllowed() , IsTradeContextBusy() , RefreshRates()
I take it you mean that the ticks are running but trading is disabled?
If so, I would like to have such a check too but no one has offered anything so far.
IsTradeContextBusy() can be excluded, the fifth thread is always free
https://www.mql5.com/ru/articles/4332
IsConnected() TerminalInfoInteger(TERMINAL_CONNECTED)
IsTradeAllowed() MQLInfoInteger(MQL_TRADE_ALLOWED)
RefreshRates() SymbolInfoDouble(_Symbol, ::SYMBOL_BID)
IsTradeContextBusy() need analog or justify why the same is not possible
I need an analog and nothing more , I rewrote the above function yesterday based on the help but there is uncertainty about the correct interpretation (different words described ), now I want to confirm the correctness on the forum: