Hi Glen,
I did not run this or look at the code in detail, but based on your descriptions to date, and my cursory review of the efs you posted, I believe it is highly likely that that it has to do with the 'true global variables' that are used in this application. I can go into the reasons for this, but it is described here http://kb.esignalcentral.com/article...ticle=1112&p=4 and here http://kb.esignalcentral.com/article...ticle=1077&p=4.
The efs uses setGlobalValue(...) and getGlobalValue(...) commands to trade positions. These global values are shared across charts but are differentiated between charts by the function 'getInvokerID()' which is unique to the window. This will ensure that the global values are unique to the chart that is open. Even when you close the efs, these 'true global variables' continue to exist until you specifically delete them.
I believe what is happening is that you are grabbing pre-existing globalValues. As I said before, they will remain in existance until you specifically delete them (or close eSignal)
My recommendation is that you check this. Use debugPrintln or any other tool to determine the status of these variables before you set them or press a button.
If you find this to be the case, there are viable solutions.
I did not run this or look at the code in detail, but based on your descriptions to date, and my cursory review of the efs you posted, I believe it is highly likely that that it has to do with the 'true global variables' that are used in this application. I can go into the reasons for this, but it is described here http://kb.esignalcentral.com/article...ticle=1112&p=4 and here http://kb.esignalcentral.com/article...ticle=1077&p=4.
The efs uses setGlobalValue(...) and getGlobalValue(...) commands to trade positions. These global values are shared across charts but are differentiated between charts by the function 'getInvokerID()' which is unique to the window. This will ensure that the global values are unique to the chart that is open. Even when you close the efs, these 'true global variables' continue to exist until you specifically delete them.
I believe what is happening is that you are grabbing pre-existing globalValues. As I said before, they will remain in existance until you specifically delete them (or close eSignal)
My recommendation is that you check this. Use debugPrintln or any other tool to determine the status of these variables before you set them or press a button.
If you find this to be the case, there are viable solutions.
Comment