Change iExposure indicator view from sub window to chart window

Back to topics list  | 1 2 To post a new topic, please log in or register
qjol 2014.03.03 02:04 #

[...]It seems impossible.

so give it to someone else to do it

I'll give you a hint


Elpidius 2014.03.03 04:10 #

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:

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);

And I applied your hint here:

         if(ObjectFind(name) == -1) {

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.



Attached files:
  fxpt_tradeconditiondashboard.mq4  (8.42 KB)
Elpidius 2014.03.03 05:30 #

Nevermind. I fixed the problem. I had to change the deinitialization code.

Thank you for the hint qjol, despite the vagueness.

Back to topics list   | 1 2  

To add comments, please log in or register