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
It looks like you let your script time out. Your endless loop should contain condition like below. Does it?
No it has a loop like below
while(true)
{
.... Open the File, Read the content and delete the file
}
Thanks SDC. your approach works fine for my requirement. Only one issue left now..
My script is never ending script. there is a while loop there..so I will not be able to delete GV before script unloads..
In this case, I am unable to attach script after restarting MetaTrader. Please help.
Awesome guys. I was able to solve my requirement. You all are real life-saver. Here is my code.
Thanks a Ton.
Janak
Thanks SDC. your approach works fine for my requirement. Only one issue left now..
My script is never ending script. there is a while loop there..so I will not be able to delete GV before script unloads..
In this case, I am unable to attach script after restarting MetaTrader. Please help.
Thanks SDC. your approach works fine for my requirement. Only one issue left now..
My script is never ending script. there is a while loop there..so I will not be able to delete GV before script unloads..
In this case, I am unable to attach script after restarting MetaTrader. Please help.
Awesome guys. I was able to solve my requirement. You all are real life-saver. Here is my code.
<SRC by Moderator: Ubzen>
Thanks a Ton.
Janak
As I said, my script is never ending script. It has never ending while loop in it. It attaches to a chart like an EA or Indicator.
So with your solution I am unable to run it on a chart on which it is already running. (Though this will happen rarely...by mistake).
As I said, my script is never ending script. It has never ending while loop in it. It attaches to a chart like an EA or Indicator.
So with your solution I am unable to run it on a chart on which it is already running. (Though this will happen rarely...by mistake).
Following code works fine to solve that issue.
My only issue left now is, I want to reset or delete my Global Variables when I close the MT4 / MT5 or when it crashes.
Any help w'd be great.
Thanks,
Janak
glad to hear you got it working janak, I was going to suggest you add a deinit() function to your script too.