Why code blocks get executed on on Tick tab but not on on Timer tab
-
It's really anoying! I'm searching and searching for the issue why my code is not executed. So I placed it on the on Tick tab and it worked fine. What do I have to configure that it works on on Timer tab?

Are there any secrets I'm missing?
-
@trader-philipps I didn't look at your project, but last weekend I noticed that some blocks in" on timer " tab don't work in baktest but in demo/real yes, does this help you?
Do closed and/or open markets influence? Brokers server on/off? -
Please look at the final post of this thread:
https://fxdreema.com/forum/topic/3009/I-want-to-create-a-simple-EA/3
-
@l-andorrà @ambrogio Thanks for your answers. Good to know that it works on demo/real, but I am working to make news available on tester

Need more investigation, but will go with the on tick tab for now.
-
@trader-philipps Oh it would be good, so far no expert is able to recreate the news in the tester (AFAIK), good luck and good work

-
@ambrogio Well, so far I am struggling with it as well. The icefx offers a solution to do this. And (if nit in tester) the approach really works. The manual says ...
The program provides an opportunity to display news in the appropriate moment in “Backtest
mode”. To use this feature Expert Advisor (EA) running in “Backtest mode” has to be able to pass
directly the current time in backtest (backtest time) to the indicator. To do this, any Expert Advisor
(EA) has to put the current time to global variable called ”NEWS_EURUSD_TIMEOVERRIDE”
before calling the indicator (EURUSD indicates the currency pair in the test). The program will read
this value and displays the news accordingly.So, if you do so in normal mode, it really works. Set a global variable with a unix timestamp of your choice and than drag the indicator on the chart and it displays the comming up news according the the indi settings. But if I set the global variables in tester with fxdreema, the indicator doesn't seem to realize the global variable.
Next approach I might use mql code instead of the blocks and check if they make a difference. -
@trader-philipps Okay, I digged deeper into this. It looks like the time is interpreted correctly, but the news are downloaded each day from the current week. So it seems to be an issue with NewsInfo and/or the data provider. I opened a ticket at blackmoonfx or however they are called now. Let's see if there'll be an answer.
If someone uses this indicator already in live account, he might check the cache folder if there are some news files and provide them. So I think I could do some more testing and development. -
Thank you for your impressive effort trader.philipps.
