Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1275

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
Thank you very much, I'll have a look.)
Yeah, it's a cool gimmick that I've spent almost a week on) My ass is on fire)
Well why would it be a hindrance. There's an indicator that uses triangles to draw. It all turns out beautifully, the colours have been picked up, and now you've noticed such a bug.
The indicator is not for personal use and it is nonsense to release it with this bug. I have to either change the entire drawing, which is rather complicated because I'm a beginner, or fix the bug.
Change the colour grid does not help, as you have noticed, I have come to this myself) Initially, some colour combinations seemed to help
Changing the grid colour (if it would help) is an unacceptable crutch, since the user may have an influence on it, in case they want to change the colour.
The option to block this function for the user is also not suitable, I think it's clear why)))
The task: to make a user see the grid, if it is enabled, in the same colour all the time. Taking into account bugs of MT4 with vertical grid + filled object. I don't know what else to add)
Basically the varic you wrote above is fine. I can polish it. You are a golden man!!! There are simply no words to express my gratitude. I'll give you five bucks for your help.
Just a couple of little questions:
How much lag will I get on weak PCs? I know it's an abstract question, but I would be happy to hear from you.
"It'll just eat up 8 MB of memory" - I guess you're not talking about RAM?)) If so, 8MB is nothing like
iCanvas is a must, a regular one won't do? It's just another user saying "this file here, this file there". They are so dumb, they won't know where to put it.)
Put this file in the folder Include
In the indicator or in the Expert Advisor in the beginning insert the line
#include <GridBug.mqh>
Everything will work with maximum performance. But in RAM will eat 8 MB (in the case of 4K monitor 32MB) from each window, where there will be this feature.
And also in case someone changes grid colour or background of the window, it is necessary to insert a line in the body of OnChartEvent function:
There is a situation. It is a netting account. One and the same robot, but with different mages, is located on one symbol on different charts. If one of them opens and the other one fills, the magik of the position will be from the second robot? Is there any way to determine which piece is opened by the first robot and which piece is opened by the second robot?
You can. You need to get the position ID history and go through the orders and/or trades. You can tell from the magik which volume was opened by which Expert Advisor.
Good afternoon...
In Tester, when using WindowScreenShot, the terminal hangs.
Can you tell me how to fix it.
void Main()
{
string st=TimeToStr(TimeCurrent(), TIME_DATE|TIME_SECONDS);
st=StrTran(st, ":", ".");
if(FolderForTF)
st=TimeToStr(Period())+"\\"+st;
if(FolderSymbol)
st=Symbol()+"\\"+st;
WindowScreenShot(st+".gif", size_x, size_y);
}
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
string StrTran(string str, string strfrom, string strto)
{
int n;
string outstr="", tempstr;
for(n=0; n<StringLen(str); n++)
{
tempstr=StringSubstr(str, n, StringLen(strfrom));
if(tempstr==strfrom)
{
outstr=outstr+strto;
n=n+StringLen(strfrom)-1;
}
else
outstr=outstr+StringSubstr(str, n, 1);
}
return(outstr);
}
You can. You need to get the position ID history and go through the orders and/or trades. You can tell from the magik which volume was opened by which Expert Advisor.
Good evening. I registered in MQL5, but I can't download free indicators for android client. What could be the problem?
Have you worked it out? I don't either and haven't found an answer yet.
Only windows computer . No android or ios .