Gain Today and Latent Gain

Forums ProRealTime English forum ProOrder support Gain Today and Latent Gain

Viewing 3 posts - 1 through 3 (of 3 total)
  • #26822

    Hi Nicolas,

    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.

    Many thanks

    #26827

    For daily gain or loss, see code snippet below. For total gain, just use strategyprofit. Adapt the code to your needs (exiting strategy for example.)

     

    1 user thanked author for this post.
    #26828

    Hi Wing,

    Many thanks for your speedy response to my question. This gives me the information I need.

    Regards

Viewing 3 posts - 1 through 3 (of 3 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login