Hi,
Setup: Two 5 minute charts set a global variable (both give the variable the same name) via setGlobalValue(). This global is called by one 500T chart. If one of the 5 minute charts is closed, eSignal shuts down immediately if the 500T chart is still open.
On two different 5 min charts (only difference in time template in one is 9:30 to 16:00 and on the other chart it is dynamic to plot after-hours data) I have the same efs that sets globals (via setGlobalValue()) for say a moving average value. Both efs use the same name for the globals since there is only one lower interval chart (500 tick) that uses these globals.
On a 500 tick chart I have a simple efs that calls the globals (via getGlobalValue()) and plots them on the price chart pane.
At the beginning of the day, from about 8:30 am to 10:00 am I have both 5 minute charts running at the same time (both set the same global variable) but after 10:00 I only need the 9:30-16:00 chart so I close the chart with the dynamic time template.
If I close one of the 5 minute charts it causes eSignal to shut down immediately. I’ve tried “if(vGlobal == null)” in the 500T chart but it doesn’t stop eSignal from shutting down.
1- How does eSignal handle the variable with the same name that is set in two different charts at the same time.
2- How does the calling efs in the lower interval chart handle the call (getGlobalsValue()) of this global variable when there are two charts with efs setting the same global variable especially when only one of the charts that set the global is closed?
3- Is there a way to check for the existence of a particular global variable set via setGlobalValue() in an efs study? Or some way to stop execution if one of the chart that sets the global value is closed?
I thought of naming the variable differently in the 5 min charts but I still have to check for their existence in the 500T chart to find out which global variable still exists once I close one of the 5 min charts.
Thanks,
Wayne
Setup: Two 5 minute charts set a global variable (both give the variable the same name) via setGlobalValue(). This global is called by one 500T chart. If one of the 5 minute charts is closed, eSignal shuts down immediately if the 500T chart is still open.
On two different 5 min charts (only difference in time template in one is 9:30 to 16:00 and on the other chart it is dynamic to plot after-hours data) I have the same efs that sets globals (via setGlobalValue()) for say a moving average value. Both efs use the same name for the globals since there is only one lower interval chart (500 tick) that uses these globals.
On a 500 tick chart I have a simple efs that calls the globals (via getGlobalValue()) and plots them on the price chart pane.
At the beginning of the day, from about 8:30 am to 10:00 am I have both 5 minute charts running at the same time (both set the same global variable) but after 10:00 I only need the 9:30-16:00 chart so I close the chart with the dynamic time template.
If I close one of the 5 minute charts it causes eSignal to shut down immediately. I’ve tried “if(vGlobal == null)” in the 500T chart but it doesn’t stop eSignal from shutting down.
1- How does eSignal handle the variable with the same name that is set in two different charts at the same time.
2- How does the calling efs in the lower interval chart handle the call (getGlobalsValue()) of this global variable when there are two charts with efs setting the same global variable especially when only one of the charts that set the global is closed?
3- Is there a way to check for the existence of a particular global variable set via setGlobalValue() in an efs study? Or some way to stop execution if one of the chart that sets the global value is closed?
I thought of naming the variable differently in the 5 min charts but I still have to check for their existence in the 500T chart to find out which global variable still exists once I close one of the 5 min charts.
Thanks,
Wayne
Comment