I don't necessarily need anyone to do it for me. Just to let me know the code, and I can apply it myself. Thanks for the suggestion though.
I've tried to apply the code from i-Breakeven.mq4 - which is based off of the iExposure.mq4 indicator - (posted earlier in this thread). The i-Breakeven.mq4 indicator, when deleted, only deletes objects created by the i-Breakeven indicator, which is a perfect example. However, when I applied the code to the iExposure indicator, it hasn't worked. I've applied your hint, which was quite vague, but I still appreciate any help I can get. :)
I added this at the top:
string prefix = "capital_";
I changed this:
void deinit()
{
string name;
int obj_total = ObjectsTotal();
for (int i=obj_total-1; i>=0; i--)
{
name = ObjectName(i);
if (StringFind(name, prefix) == 0) ObjectDelete(name);
}
}
But it still didn't work. There is also another modification of the i-Breakeven.mq4 indicator, which is also based off of the iExposure.mq4 indicator. This FXPT_TradeConditionDashboard.mq4 indicator also deletes all the objects that have only been created by the indicator.
Could you please let me know whereabouts to apply the correct code, and I'll do it. I hope I'm not sounding rude, I mean no disrespect when asking this. Just some help.
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.
[...]It seems impossible.
so give it to someone else to do it
I'll give you a hint
name="Head_"+col;so give it to someone else to do it
I'll give you a hint
I don't necessarily need anyone to do it for me. Just to let me know the code, and I can apply it myself. Thanks for the suggestion though.
I've tried to apply the code from i-Breakeven.mq4 - which is based off of the iExposure.mq4 indicator - (posted earlier in this thread). The i-Breakeven.mq4 indicator, when deleted, only deletes objects created by the i-Breakeven indicator, which is a perfect example. However, when I applied the code to the iExposure indicator, it hasn't worked. I've applied your hint, which was quite vague, but I still appreciate any help I can get. :)
I added this at the top:
I changed this:And I applied your hint here:
I even applied that same format everywhere I saw:
But it still didn't work. There is also another modification of the i-Breakeven.mq4 indicator, which is also based off of the iExposure.mq4 indicator. This FXPT_TradeConditionDashboard.mq4 indicator also deletes all the objects that have only been created by the indicator.
Could you please let me know whereabouts to apply the correct code, and I'll do it. I hope I'm not sounding rude, I mean no disrespect when asking this. Just some help.
Thanks,
Elpidius
Nevermind. I fixed the problem. I had to change the deinitialization code.
Thank you for the hint qjol, despite the vagueness.