QuantCoder:
I am trying to use my variable switch_action which is computed in the zmq code (InterpretZmqMessage) and use it in my second function (secondfunction)
I am trying to use my variable switch_action which is computed in the zmq code (InterpretZmqMessage) and use it in my second function (secondfunction)
I have tried global variables by creating them in the zmq function and using them in the second function but aside from being poor coding practice, they led to further issues such as my other functions not working.
For this problem, I was researching into pointers and tried to implement them but to my avail, they did not work. I apologize, I am relatively new to this language so it is difficult for me to solve this problem on my own.
I don't think you have enough threads open to discuss this topic. Perhaps you'd get a better answer if you open more...

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 have tried global variables by creating them in the zmq function and using them in the second function but aside from being poor coding practice, they led to further issues such as my other functions not working.
For this problem, I was researching into pointers and tried to implement them but to my avail, they did not work. I apologize, I am relatively new to this language so it is difficult for me to solve this problem on my own.