Problem with Time Filter
-
Hi,
I have made a cut down version of some blocks I'm having problems with getting them to work nice with each other.
Can you please run this for a 24 hour period on a MT platform (not backtesting)
You will see that it places a line at the start of each session.It works fine for me until the first session of the next calendar day after the app was started - it will no longer place any bar / do any more work.
If I recompile or adjust EA properties it starts working again until the next calendar day after the app was started.
https://fxdreema.com/shared/1J0Pu7MKc
Thanks
-
The problem is probably here: http://prntscr.com/7i2bn0
The thing is, these blocks are still under "on Tick" so they depend on the ticks flow as you can imagine. You have 1 minute time window to react, but if there is not a single tick in this time period, there will be no chance for block 8 to run that day. You can also have connection problems at that time, who knows. So I will suggest to extend this time a little bit, just in case.
-
Hi,
I have adjusted to 5 minutes & still after the 24 hours passes the code stops running. Until the broker does a MT4 refresh at 00:00 GMT.
Any other ideas - I have put trace blocks on but it seems to get thrown off at some point in time.
Thanks
-
There is a block named "Comment" that does something very cool. It prints information on the chart and then the information stays there. The last state of it stays on the chart. Also, you can put multiple "Comment" blocks and make each of them to print it's own information at different place on the chart
-
Yes - I meant to say I have put Print() custom mql4 but after some time they stop getting run.
I will try with the comment blocks and see what I can figure out