How to Calculate Profit/Loss percentage change

 

Hello, does anyone have a formula to calculate the change percentage as shown below? thanks


Files:
Capture.PNG  22 kb
 
mrwick:

Hello, does anyone have a formula to calculate the change percentage as shown below? thanks


(CurrentPrice - OpenPrice) / OpenPrice * 100
 
Ehsan Tarakemeh:
(CurrentPrice - OpenPrice) / OpenPrice * 100
DoubleToString((((SymbolInfoDouble(_Symbol,SYMBOL_BID)-PositionGetDouble(POSITION_PRICE_OPEN)) / PositionGetDouble(POSITION_PRICE_OPEN)) *100), 2)

Thanks. Sample code above for anyone looking for this.