Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 584
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Help me solve the problem with deleting graphical objects. I have graphical objects with code 251 and have ObjectsDeleteAll (0,OBJ_ARROW); can I somehow make objects with code 251 only be deleted?
You can try it this way: when forming an object with code 251, give it a name like "Setka"+DoubleToStr(Sprice,Digits); or "Setka"+Time[r]; and when you want to delete all these objects, do the following
for(int i=ObjectsTotal()-1; i>=0 ; i--)
{if(StringFind(ObjectName(i), "Setka") >= 0) ObjectDelete(ObjectName(i)) ;}
All objects containing Setka in the name will be deleted .
You can try it this way: when forming an object with code 251, give it a name like "Setka"+DoubleToStr(Sprice,Digits); or "Setka"+Time[r]; and when you want to delete all these objects, do the following
for(int i=ObjectsTotal()-1; i>=0 ; i--)
{if(StringFind(ObjectName(i), "Setka") >= 0) ObjectDelete(ObjectName(i)) ;}
All objects containing Setka in the name will be deleted .
I'll have to give it a try. Thank you.
Hello, could you please tell me if there is a function for an indicator that can change the colour of bars when conditions are met. for MT4
I want to make a trend indicator which will change the colour of bars when the trend changes
Hello, everyone. Straight to the point.
Here's the array :
I want it to be like this:
It's saying it's wrong. I know it's the right way to write it in C:
but it doesn't work here.
Please advise what can be done to enable an Expert Advisor to search the size of an array by extern, in the tester.
Thanks
Please advise why the arrows are deleted in this variant
int deinit()
{
//----ObjectsDeleteAll(0,OBJ_ARROW);
}
...
...
{
ObjectCreate(arrowName,OBJ_ARROW,0,;)
ObjectSet(arrowName,OBJPROP_ARROWCODE,251);
ObjectSet(arrowName,OBJPROP_COLOR,Red);
}
but not in this one ?
int deinit()
{
//----
ObjectsDeleteAll(0,OBJ_ARROW_STOP);
}
...
...
{ObjectCreate(arrowName,OBJ_ARROW_STOP,0,...);
ObjectSet(arrowName,OBJPROP_COLOR,Red);
}
Friends. How do I place graphical objects on a chart that is not current? If multicurrency works on EURUSD, but it needs to draw something on AUDUSD chart (assuming it's open).
I can't seem to understand the new functions. I am getting old...
Dudes. How do I place graphical objects on a non current chart? If multicurrency works on EURUSD, but it needs to draw something on AUDUSD chart (if it's open).
I can't seem to make sense of the new functions. Getting old...
I can do this, except for drawing orders from the main window....
Druggies. How do I place graphical objects on a non current chart? If multicurrency works on EURUSD, but it needs to draw something on AUDUSD chart (if it's open).
I can't seem to make sense of the new functions. Getting old...
If it helped, please help me draw orders from the main window.... please