Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 443
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
Alexey! MT5 has become generally verbose today - duplicates TP in the commentary:
Thank you Alexey!!! Thought so too - but how do you check it ? and how do you know what it is? and why are there no real accounts. Maybe because it's old and the demo account is new?
The difference in tp price and closing price of the order divide by _Point and reconcile with the entry in the order comment. This is exactly how we have found out. Random coincidence cannot last indefinitely and stably. I guess there are no such slippages on the real account. Although I used to have them. I was calculating it on the real account. At first I noticed that the close was on tp and the close price was not highlighted in green.
Hello, can you help me, please?
I want, at any time, to know the number of the bar where the indicator arrow is.
In the example, tried to fill the buffer if the arrow is on the tenth bar.
Where is it wrong?
I want to know at any time the number of the bar where the indicator arrow is.
In the example, tried to fill the buffer if the arrow is on the tenth bar.
Where is it wrong?
Usually when I check it, I run it and see the result. This is just a part of the code. Everything is very small here, it's hard to see - in my editor it's bigger
Hello, could you advise how to make an indicator save data to a file
instead of RSI indicator Williams' Percent Range
//| expert start function |
//+------------------------------------------------------------------+
int start()
{
//----
int iRSI;
iRSI=FileOpen("File.txt", FILE_CSV|FILE_WRITE, '\t');
//------------------------------------------------//
//-------------------------------------------------//
if(iRSI>0)
{
FileWrite(iRSI, [0]);
FileClose(iRSI);
}
//----
return(0);
}
Everything is very small here,
There is an option in the browser to change the scale )
Unfortunately, this is not the only error.
The correct value is displayed in the comment, from the current bar, now num_buy 9
Why is there no condition in the history?
I checked it, the EA opens a position when the arrow is on bar 10
How do I place a point in the indicator when the arrow is on bar 10?
In the browser there is an option to change the scale )
Unfortunately, this is not the only error.
The comment displays the correct value, from the current bar, now num_buy 9
Why is there no condition in the history?
Checked in the EA, opens position when arrow is on bar 10
How do I place a point in the indicator when the arrow is on bar 10?
You interrupt the loop as soon as you see the first non-blank indicator value. That's why it doesn't reach 10.
So, you break the loop here as soon as you encounter the first non-empty indicator value. That's why it doesn't reach ten.
I removed a break from the indicator; as recommended by STARIJ
still no point on the chart, and in the comment writes the numbers of the third and fourth arrows, but the first and second (closest to the current date) does not see.
In the indicator I removed the break; as recommended by STARIJ
still no point on the chart
But you left it in the Expert Advisor. And what does it do? It finds the first point of the indicator and... break
But the councillor was left behind. So what does it do? It finds the first point of the indicator and... break
I made the Expert Advisor to check the possibility, it opens correctly, but in the indicator it does not see values of the nearest two indicator buffers "Arrow v.3" at all