I am trying to pass indicator values from a workspace to another workspace and another chart.
How can I be assured my GVGet calls are getting the latest GVSet data since they are both firing off at the Close of the bar with the same bar interval ?
In other words if the GVGet fires before the GVSet, it will be retrieving stale data.
It would be great if I could delay the GVGet calls by 100 milliseconds or so.
Global Variables - timing issue [SOLVED]
- TJ
- Posts: 7740
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2221 times
Re: Global Variables - timing issue
GVs are sent in one bar and retrieved in the next bar.I am trying to pass indicator values from a workspace to another workspace and another chart.
How can I be assured my GVGet calls are getting the latest GVSet data since they are both firing off at the Close of the bar with the same bar interval ?
In other words if the GVGet fires before the GVSet, it will be retrieving stale data.
It would be great if I could delay the GVGet calls by 100 milliseconds or so.
There is always a one bar delay.
You can try the BARSTATUS=0 condition.
Re: Global Variables - timing issue
Thanks for that TJ....so always a one bar delay. I think I can live with that.
So one very important issue is to insure the receiving chart has the exact same time/tick interval.....
Or the receiving chart must be equal to or LOWER than the sending chart in terms of interval.
So one very important issue is to insure the receiving chart has the exact same time/tick interval.....
Or the receiving chart must be equal to or LOWER than the sending chart in terms of interval.
- TJ
- Posts: 7740
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2221 times
Re: Global Variables - timing issue [SOLVED]
Timing-based analysis on multi-data . . . works best with time-based charts.Thanks for that TJ....so always a one bar delay. I think I can live with that.
So one very important issue is to insure the receiving chart has the exact same time/tick interval.....
Or the receiving chart must be equal to or LOWER than the sending chart in terms of interval.
The two charts can be of the same time interval,
or, if they are not the same fractal, the sending chart should have the finer resolution.