Can you tell me if it’s possible to get access to the fields “Gain Today” and “Latent Gain” from the Order Book area.
I’m trying to build into my system a piece of code which will allow me to set a profit level for the strategy so when “Gain Today” or “Latent Gain” reach a certain level all trades for the strategy are closed and the system stopped. Am I thinking along the correct lines here or is there another way to code this.