Bar (Time) lag in CopyRates on symbol other then current chart in open prices only mode. - page 2

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 get that too , on H1 as well
i'll do a programer's shot in the dark here .They have coded the ticks to come sequentially from each symbol and since open prices has one tick event it has no time to fire the rest of the symbols .
Thank you for testing. It is clear the issue is not with the code, but with the tester.
The lag is proportionally to the timeframe.
Even with M1 timeframe
The lag is a whopping 19 minutes. Granted the M1 is most prone to mismatched timestamp bars during slow hours.
By the way, testing on 1 minute OHLC data yields exactly the same results.
I am starting to think this is a bug. As it is now, it is useless to test/optimize any EA that accesses price data from any symbol other then the current chart in open prices only and 1 minute OHLC mode.
I still have not analysed you code yet, so I don't know if the following situation has been considered or not, but here is one more thought...
Have you considered the delay between the closing and opening of bar?
For example...
... at exactly 12:00:00 a new tick arrives for EURUSD, causing the previous M1 bar to close and a new bar to form, so that the current bar's opening time is 12:00(:00).
However, no tick has arrived yet for GBPUSD, so it's current M1 bar's opening time is still 11:59(:00), meaning a lag of 1 minute.
... at exactly 12:00:09 a new tick arrives for GBPUSD, causing the previous M1 bar to close and a new bar to form, so that the current bar's opening time is 12:00(:00).
Only now are the two symbols is sync where both the current bars have the same opening time of 12:00(:00)
No worries Fernando.
Test with every tick based on real ticks
While there are less bars with a difference vs 1 Minute OHLC and open prices, the average lag is relative consistant with the other modes.
Maybe the NewBar test is part of the "lag creation" as per your suggestion/example.
Honestly i do not want to waste anyone's time. I have to retract the bug feeling. It always annoys me people blaming their incompetence to an external source like a bug.
The current state is i fail to understand.
Another possibility is the the "Open prices only" modelling is applied only to the current symbol, while for other symbols real-time modelling is applied, causing a discrepancy on the synchronisation of open times.
There is no mention of bar states generating on the non-chart symbol so perhaps you are right.
Maybe the NewBar test is part of the "lag creation" as per your suggestion/example. Honestly i do not want to waste anyone's time. I have to retract the bug feeling. It always annoys me people blaming their incompetence to an external source like a bug. The current state is i fail to understand.
For me there is no bug or a problem. The dependencies are due to the bars time of opening not being accurate enough.
The first tick can arrive at any time, even a millisecond just before closing, yet the opening time only reflects the "ideal" time opening and not the true time.
In my multi symbol EAs, to compensate, I always align bar data as I described in posts a made previously on other threads:
For me there is no bug or a problem. The dependencies are due to the bars time of opening not being accurate enough.
The first tick can arrive at any time, even a millisecond just before closing, yet the opening time only reflects the "ideal" time opening and not the true time.
In my multi symbol EAs, to compensate, I always align bar data as I described in posts a made previously on other threads:
I will study your posts, as at a quick glance i already realize i need to switch to a state machine approach.
I do see some challenges regarding test/optimization. The open prices / 1 min OHLC modes seem out of the question because it will seriously deteriorate the states vs what actually happens in a real environment - real ticks. Even when the model recalculates only once a minute.
For me there is no bug or a problem. The dependencies are due to the bars time of opening not being accurate enough.
The first tick can arrive at any time, even a millisecond just before closing, yet the opening time only reflects the "ideal" time opening and not the true time.
In my multi symbol EAs, to compensate, I always align bar data as I described in posts a made previously on other threads:
Interesting .
@EnriqueDangeroux if it shows up on other test modes too i would not trust the average that much as you have to consider that the leading event is the tick of the asset you chose on the tester.
So , i would expect some gaps there .
I believe the issue in the open prices may be the tester stacks up ticks (from the other symbols) to be "distributed" on the OnTick event , but , being only open prices it allots 1 tick and they have no time for the distro . This is an assumption and also "why would they" distribute other symbol ticks in ontick , and if the would not where would they distribute them ?
So if we have a multisymbol ea right ? does that mean you have access to the other symbol ticks from the previous bar only and you'll get those of the current on the next one ?