Zorro knows whether or not it is forex based on the asset name. "EUR/USD" has seven characters and a slash in the middle.
g is defined in the headers. Pretty much everything in Zorro is defined in the headers.
On structs and pointers:
https://zorro-project.com/manual/en/structs.htmhttps://zorro-project.com/manual/en/apointer.htm