Download MetaTrader 5

Function call in ObjectSetText possible or not?New comment

To add comments, please log in or register
sakibco
107
sakibco  

Halo fellow coder, I'm trying to use function call DoubleToStr(f0_8(), 0) in this way for my chartinfo panelbut the function is not working. This code only showing "Total Orders = 0 ". The function value is freeze.Any other way that can works perfectly  with applying font, color and position of the text and function.

<< decompiled code removed by moderator >>

honest_knave
Moderator
2342
honest_knave  

Unfortunately your code is decompiled.

You cannot post it on the forums.

sakibco
107
sakibco  

Why my code decompiled? I recently created this code by my own. Please advice me I am a new coder.

honest_knave
Moderator
2342
honest_knave  

I highly doubt that, but I am happy to be proven wrong.

Please post up some more of your code and it should either confirm or deny the code was decompiled.

sakibco
107
sakibco  
Its a very simple code I just made.
honest_knave
Moderator
2342
honest_knave  

Yes, but it is clear (to me) the code you are modifying is most likely decompiled.

That cannot be posted on the forums, sorry.

sakibco
107
sakibco  

Here it is all my info panel code

sakibco
107
sakibco  

Still are you thinking its a decompiled code?

honest_knave
Moderator
2342
honest_knave  

OK the problem is here:

DoubleToStr(f0_8(), 0)

Humans do not give functions names like that. But decompilers do.

So at least part of the code is decompiled... unless you can give me a plausible reason why you named a function f0_8()

sakibco
107
sakibco  
Would you please tell me how to use font in Comment() ?
honest_knave
Moderator
2342
honest_knave  
sakibco:
Would you please tell me how to use font in Comment() ?

You can't. You can only do that on objects (OBJ_TEXT, OBJ_LABEL etc).
12
To add comments, please log in or register