Ways to get "profit" from a position (advantages and disadvantages)

 

Dear experts, i know that i can get the profit from a position by: 1.difference between PriceCurrent and PriceOpen 2.PositionGetDouble(POSITION_PROFIT) What are the advantages and disadvantages for each case? Thanks

 
Tiofelo Da Olga Gilbert Teles:

Dear experts, i know that i can get the profit from a position by: 1.difference between PriceCurrent and PriceOpen 2.PositionGetDouble(POSITION_PROFIT) What are the advantages and disadvantages for each case? Thanks

pcurrent - popen is not the position profit. you have to divide by tick size and multiply by tick value to get the profit in money, otherwise it is only quotes difference.

 
Samuel Manoel De Souza #:

pcurrent - popen is not the position profit. you have to divide by tick size and multiply by tick value to get the profit in money, otherwise it is only quotes difference.

Thank you so much for your answer.

Reason: