
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
No custom object can check itself without a corresponding call. I.e. it must be written by the user in his code. If he has written it, then he does the processing himself.
The change_id mechanism is very simple: you run the Refresh method. After that you get the data, what and where was updated in the list of events you have created.
Your implementation is almost very similar to Observer, just you use all-in-one.
The only key difference I see is that now you have to check all events separately outside the Calendar class after Refresh, depending on the Calendar class.
If you unify the exchange format (in the example, the simplest CArrayObj) and stuff filtering inside the library to get a list of only current events.
and in general it is already quite a working tool for working with news.
The only key difference I see is that now it is necessary to write the check of all events separately outside the Calendar class after Refresh, while depending on the Calendar class.
At the output you will get an object with only refreshed events. You won't need to search for the updated ones.
On the output you will get an object with only updated events. You will not need to search for updated events.
I see, I just didn't see the Refresh method there.
then in general it is simple and concise, about refreshing Revised at any time - catching that is also solved I understand?
I see, I just didn't see a Refresh method in there.
It's not implemented yet. I'll do it when I'm free.
then in general it is simple and concise, about refreshing Revised at any time - catching that is also solved I understand?
Catching any changes should be, according to the Documentation.
A news item can arrive 23 seconds ahead of its time or 115 seconds behind.
This 115 seconds seems to be artificial, as the news on BRL and USD at different times has the same lag.
ZY There are few stats. But it seems that in the Tester we can confidently count on a two-minute lag.
Hi fxsaber.
Its possible to use this library with a reverse logic? Instead of backtest based on news time, make the Calendar Example.mq5 to allow orders only at days without high impact events.
Example: Buy USDJPY when RSI is below 30, only if there are no high impact news on the current day for the currencies USD and JPY.
If so, can you please modify it and attach the file here? That's all I need, let me know if you got it. Thank you.
Hi fxsaber.
Its possible to use this library with a reverse logic? Instead of backtest based on news time, make the Calendar Example.mq5 to allow orders only at days without high impact events.
Example: Buy USDJPY when RSI is below 30, only if there are no high impact news on the current day for the currencies USD and JPY.
If so, can you please modify it and attach the file here? That's all I need, let me know if you got it. Thank you.
You can do different logic. But I don't do it. Contact a specialist.
Você pode fazer uma lógica diferente. Mas eu não faço isso. Entre em contato com um especialista.
This is not done. Contact a specialist.