Simple Coding (Help)

 

Hello i want to ask how to coding pips value from body candle? such example is when i retrieve some value from bullish candle (Close-Open) it will be different from pair to pair such as EUR/USD or AUD/JPY

thank you for anyone who try to help here

Reason: