It's very strange that it works correctly in the tester, but after installing it on a real account it reverses trades. The code is simple, only 2 indicator buffers
Thank you very much for your help. I have redesigned this part of the code and with the price filter enabled, the pending orders are now set without errors. Only those signals are skipped when the pending order is still hanging. As intended. Thank you very much once again))) I just have a question - there are some places where there was a signal but the pending one was not set and there were no errors. So, there were no suitable conditions in this place and it's OK, you can live with confidence?))) And there were no pending orders in this place either...
DanilaMactep: Thank you very much for your help. I have redesigned this part of the code and with the price filter enabled, the pending orders are now set without errors. Only those signals are skipped when the pending order is still hanging. As intended. Thank you very much once again))) I just have a question - there are some places where there was a signal but the pending one was not set and there were no errors. So, there were no suitable conditions in this place and it's OK, you can live without worry?)))) And there were no pending orders in this place, either...
If there weren't suitable conditions and it's normal, you can live with it.
Then I don't know - it's been a long time since I opened a quad
Wrong, the data from the other instruments the tester takes is current. Just from here (from other instruments) you can calculate the difference from the current time. If it's close to the current time, and the history is loaded, you can make a shift to the tester time. It's a crutch).
int ChartHigh=(ChartGetDouble(0,CHART_PRICE_MAX,0)-ChartGetDouble(0,CHART_PRICE_MIN,0))/Point; //высота графика в пунктах
if(ChartHigh>500)
ExtDialog.Create(0,"Spread",0,12,12,250,200)
else
ExtDialog.Create(0,"Spread",0,12,12,250,370)
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Try it.
Trying it. First impression is that 3 or 4 tools are loading, but I need 10
I don't know then - it's been a long time since I opened a quad
I opened mt4 to check the algorithm quickly.
It's very strange that it works correctly in the tester, but after installing it on a real account it reverses trades. The code is simple, only 2 indicator buffers
Thank you very much for your help. I have redesigned this part of the code and with the price filter enabled, the pending orders are now set without errors. Only those signals are skipped when the pending order is still hanging. As intended. Thank you very much once again))) I just have a question - there are some places where there was a signal but the pending one was not set and there were no errors. So, there were no suitable conditions in this place and it's OK, you can live without worry?)))) And there were no pending orders in this place, either...
Then I don't know - it's been a long time since I opened a quad
Wrong, the data from the other instruments the tester takes is current. Just from here (from other instruments) you can calculate the difference from the current time. If it's close to the current time, and the history is loaded, you can make a shift to the tester time. It's a crutch).
Question: a panel is created with a size of 370, how do I resize to 200 when compressing the graph ?
Question: a panel is created with a size of 370, how do I resize to 200 when compressing the graph ?
And how do you define graph compression?
If compression in height
if compression across the width
in width you can also CHART_VISIBLE_BARS