Questions from Beginners MQL4 MT4 MetaTrader 4 - page 258

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
Hi all!
Can someone tell me how to get the value for tick price and tick size correctly
When getting this for the symbol
Sometimes the received values differ from the actual values.
Does anyone know what this has to do with?
On 4 it might not work correctly if the deposit currency is not USD and there are no required conversions in the market overview. Point price in deposit currency and deposit volumes simply can't be calculated, there is no data.
To be good and correct - if deposit for example in RUB, then ALL available ruble pairs should be included. And it is better to keep deposits in major currencies, USD/EUR/JPY. Minors are just for the sake of despair.
PS/ If the deposit is not in USD: The instrument has properties SYMBOL_CURRENCY_PROFIT,BASE,MARGIN - before you trade/analyse it, add the appropriate pairs with ACCOUNT_CURRENCY, through SymbolSelect(). In advance !
PPS/ I had such a situation only in 4... I just didn't have exotic accounts in 5 yet :-) I won't say anything about it
I don't understand why trading levels are not displayed on some symbols and there is no possibility to set one-click trading.
Good afternoon!!!!
Please help me to change a function which calculates only losses of unprofitable orders in a grid of orders
We need to change the function which calculates only minimum lot size from each order in the net of orders. Min Lot=0.01
Thanks!!!!
Good day! I just started to learn MQL4 and am trying to write an EA based on renko bricks v2 indicator data. The problem is that EA with simple calculations seems to be very slow in the tester. It works but runs very slowly. I think I may have inexperienced enough to write nonsense so I am asking for help from elder guys).
Bottom line. Expert Advisor scalper, trades on m1, waits for the colour change of the brick and opens a deal in the direction of a new movement. I attach below source code itself advisor, and turndown. Thanks in advance!
Hello, question about MT4 terminal. I've been working with MT4 for a few years now, but I've never seen such a thing. I've never seen such a mess before.
Weird, what's the build?
Hello. Question for coding experts, as I can't find an answer to my question anywhere. I am using the for function to search for candles, find the right candle and get the data from it, but in an enumeration of candles there are several, how do I get the closest of them? I can't find it.
Hello. Question for coding experts, as I can't find an answer to my question anywhere. I am using the for function to search for candles, find the right candle and get the data from it, but in an enumeration of candles there are several, how do I get the closest of them? I can't get it.
If you start the cycle from the last candle, the last "needed candle" will be with the closest index.
Hello. Question for coding experts, as I can't find an answer to my question anywhere. I am using the for function to search for candles, find the right candle and get the data from it, but in an enumeration of candles there are several, how do I get the closest of them? I can't find it.
You can do it like this:
The function returns the index of the candle you need,
0 is the closest, 1 is the next one.
You can do it like this:
The function returns the index of the candle you want,
0 is the closest, 1 the next.