Need Help to create an Custom Indicator

i just want to create a Indicator which calculates the pip difference between open and High and open and low for the previous bar.
Can any one help me Please…

Like a bar by bar pivot?

yes can you help me?

You May Visit ant Tech Forum for Help Its a [Forex Trading Forum.

Which program are you using?