
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
I don't know which version of MT4 you are using, but on v616 on my computer, WindowFind() returns -1 during OnInit(). The documentation has always said "WindowFind() returns -1 if custom indicator searches itself when init() function works."
my version is 610.
oh my God.. every updates seem to be more bad and more bad.. not getting better.
i had an FFcalendar indicator.
i had repaired it with version 604.. and working well.
when i update to 610.. and i compiled it again.. it became error again..
so i give up.. and compiled again with version 509... hahaha ( because my version 604 has gone)
oops sorry.. you are right about WindowsFind retun -1 .
it only show when after i attach that indi.. then i change TF.. but the resulst is still unique
I know this post is VERY old, but here's how I accomplish the unique instance name problem. I use a combination of GetTickCount() along with global terminal variable storage. This also works across instance loads.
And then simply call it in OnInit() as follows:
So far, appears to work properly.
Thank you soo much. This funcion solved a really big problem to me.
I know this post is VERY old, but here's how I accomplish the unique instance name problem. I use a combination of GetTickCount() along with global terminal variable storage. This also works across instance loads.
And then simply call it in OnInit() as follows:
So far, appears to work properly.