Questions from Beginners MQL5 MT5 MetaTrader 5 - page 1049
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. Please tell me what the hell is going on.
I'm writing code in mql5, I want to use the PositionClose function, but it says "Man! PositionClose' - the function can be declared only in the global scope".
I was like, I mean this same function is in #include <Trade\Trade.mqh> by default.
Checked. It's there.
Why is it showing off, what does it need, how to close the position?
The code itself
Rename your function.
Can you please tell me how to write a set-file after optimization in MT5, in order to load it into an EA later on?
THANK YOU.
What value does iTickVolume(NULL, 0,0) return when a new bar appears?
1
This is if the ticks didn't come in batches.1
This is if the ticks are not in a batch.Is a batch of ticks from more than one event? Price, volume...
A new bar doesn't start until there is a tick during that new bar. Batch is a bit of a mouthful. I did not observe that, but I read that the determination of a new bar by volume is not reliable precisely because more than one tick may occur at once.
Help clarify a couple of questions about CTRADE:
1. Why is it necessary to specify a price in PositionOpen, since it is essentially a market order. What will happen if the price specified there is several pips different from the current price, i.e. in fact is non-market? So far, the only explanation I have found is that it is used to calculate the deviation and compare it with the value specified in SetDeviationInPoints.
Is it true?
Does SetDeviationInPoints limit the slippage in both directions or only in the negative direction? For some reason, I can specify the deviation in PositionClose but cannot do it in PositionOpen .
Hello all.
There is a problem with the Print(); function in mt5.
And supposedly the digits should appear in the Logs in order. Attention in the Logs, not in the logs.
This is the kind of crap I'm seeing in the logs.
Numbers are random. Not in order.
What is the error and how to fix it.
Once again, this is a screenshot from the logs, not the Tester\Logs
Hello all.
There is a problem with Print(); function displaying in mt5.
And supposedly the digits should appear in the Logs in order. Attention in the Logs, not in the logs.
This is the kind of crap I'm seeing in the logs.
Numbers are random. Not in order.
What is the error, how to fix it.
Once again, this is a screenshot from the logs, not the Tester\Logs
If you try to type on every tick, terminal simply bans you as a spammer - automatically protects itself and does not show all comments.