mrwick:
(CurrentPrice - OpenPrice) / OpenPrice * 100
Hello, does anyone have a formula to calculate the change percentage as shown below? thanks
Ehsan Tarakemeh:
(CurrentPrice - OpenPrice) / OpenPrice * 100
(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.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello, does anyone have a formula to calculate the change percentage as shown below? thanks