[Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2. - page 304

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
Shaitan-idiot!!! :)))...
Is it possible to know if an object (e.g. a rectangle) is selected or not?
Thank you!
Is it possible to know if an object (e.g. a rectangle) is selected or not?
Thank you!
No
Shaitan-idle!!! :))) It shows that the author of the indicator did not think about you, when he wrote the code to delete all objects of a specified type. You should have written code to find your objects by their name and only delete them.
That's the thing: the names of my lines are written in the code, but they are standard: HorizontLine and TrendLine, and I try to give my lines their own names, but the result is the same. Or maybe I got it wrong and they are the names of my lines: ObjectsDeleteAll();
// for (int i=1;i<=10;i++)
// {
// ObjectDelete("HHL_"+i);ObjectDelete("HL_"+i);
// ObjectDelete("HLL_"+i);ObjectDelete("LL_"+i);
// ObjectDelete("HC1_"+i);
and they are in unmentioned string.
Is it possible to know if an object (e.g. a rectangle) is selected or not?
Thank you!
No
DhP
granit77
artmedia70
It's nice to see some quite natural animation on the faces of manly programmers...
I was just asking to liven things up. I remember in the first part of Any Novice Question - 1, there was an option to add emoticons, or my female memory fails me. That's it, that's it, don't bother answering, and please don't ban me.
DhP
granit77
artmedia70
It is nice to see on the faces of courageous programmers quite natural animation ...
I was just asking to liven things up. I remember in the first part of Any Novice Question - 1, there was an option to add emoticons, or my female memory fails me. That's it, that's it, don't bother answering, and please don't ban me.
It's a pity to send such a nice avatar to the ban... :) Our moderators, in fact, are courageous programmers, so that they courageously understand ...
ZS. Take a look in my personal profile.
If it's not a secret - why? Search for an object by name and do with it as you wish. Or are there some mysteries of handling objects unknown to common people?
I want to manually "draw" entry points on a chart (the code cannot describe them accurately enough yet) and then select the best values of Stop Loss, Profit, Breakeven and Trailing (for semi-automatic trading) through Expert Advisor optimization. And repeat this for different timeframes and currencies.
The easiest variant is probably to draw rectangles - to highlight them for purchases, and to use unselected ones for shorts. But since it won't work, the other option is to use two colours - it's more bothersome, though quite possible.