calculate position-performance

Forums ProRealTime English forum ProOrder support calculate position-performance

  • This topic has 3 replies, 2 voices, and was last updated 5 years ago by avatarPaul.
Viewing 4 posts - 1 through 4 (of 4 total)
  • #122330

    Hello,

    How do I calculate the position-performance for long & short, from the value I want to use.

    I don’t want position-performance to be calculated from the given price of the broker as in code below, but calculated from the “close” value before the market order is executed. This on the dji.

    entryprice is defined when a position is opened.

     

    Thank you.

     

    #122336

    fixed topic can be deleted.

    #122346

    Would be great to share your solution, that could help someone else in the future!

    #122349

    I was in the need for coffee when I asked. This is what I settled on.

     

     

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

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